From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 793CC3858436; Fri, 3 Mar 2023 19:13:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 793CC3858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677870803; bh=ADS4JCujHyvM54GhIs/PUWDlY6Q5XbFpM8MFjwHRj/E=; h=From:To:Subject:Date:From; b=i700wk3BW31dn2p+WE0rqi1r+hvMBLB5B1bSPKz1JiXjb74NrZmTh2XKzbkLHR06F TWoJj/KNzPj2vKZfFhx1VqCDLqxa168vlQqUKYEh66kzBVaYwyuRsmEoNdYPxoMwvW mtuvKw0DWI7XO6udVPvdo4gSV+XnjmUkjggahUfw= From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/109016] New: Analyzer doesn't know about OMP builtins Date: Fri, 03 Mar 2023 19:13:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109016 Bug ID: 109016 Summary: Analyzer doesn't know about OMP builtins Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Created attachment 54581 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54581&action=3Dedit Work in progress patch Currently the analyzer doesn't recognize omp builtins, and falls back to the "anything could happen" handler when it sees them. Am attaching a work-in-progress patch I tried which terminates the analysis path if it sees one of them, on the grounds that the analyzer currently has= no knowledge of e.g. OpenMP. Unfortunately, as-is, this regresses the integration tests (all in ImageMagick-7.1.0-57); presumably due to spending its analysis budget on ot= her execution paths: Comparison: 10.91% -> 10.77% GOOD: 67 BAD: 547 -> 555 (+8) -Wanalyzer-use-of-uninitialized-value: 0.00% GOOD: 0 BAD: 80 -> 87 (+7) -Wanalyzer-deref-before-check: 5.00% -> 4.76% GOOD: 1 BAD: 19 -> 20 (+1)=