From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B600C3857C70; Fri, 12 Mar 2021 21:52:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B600C3857C70 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/96894] State explosion on gdb's fibheap.c Date: Fri, 12 Mar 2021 21:52:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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: blocked Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2021 21:52:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96894 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |99390 --- Comment #4 from David Malcolm --- The warnings from -Wanalyzer-too-complex show some deeply nested callstrings e.g.: ./xgcc -B. -S -fanalyzer ../../src/pr96894.c -Wanalyzer-too-complex --par= am analyzer-bb-explosion-factor=3D50 ../../src/pr96894.c: In function =E2=80=98fibheap_consolidate=E2=80=99: ../../src/pr96894.c:3011:23: warning: terminating analysis for this program point: callstring: [(SN: 89 -> SN: 97 in fibheap_delete), (SN: 59 -> SN: 86= in fibheap_extr_min_node)] before (SN: 56 stmt: 0): i_34 =3D i_16 + 1;EN: 200= 4, EN: 2014, EN: 2143, EN: 2157, EN: 2275, EN: 2363, EN: 2424, EN: 2697 [-Wanalyzer-too-complex] 3011 | for (i =3D 0; i < D; i++) | ~^~ ../../src/pr96894.c:3011:23: warning: terminating analysis for this program point: callstring: [(SN: 89 -> SN: 97 in fibheap_delete), (SN: 59 -> SN: 86= in fibheap_extr_min_node)] before (SN: 56 stmt: 0): i_34 =3D i_16 + 1;EN: 200= 4, EN: 2014, EN: 2143, EN: 2157, EN: 2275, EN: 2363, EN: 2424, EN: 2697 [-Wanalyzer-too-complex] ../../src/pr96894.c:3011:23: warning: terminating analysis for this program point: callstring: [(SN: 144 -> SN: 106 in fibheap_delete_node), (SN: 89 ->= SN: 141 in fibheap_extract_min), (SN: 59 -> SN: 86 in fibheap_extr_min_node)] before (SN: 56 stmt: 0): i_34 =3D i_16 + 1;EN: 4777, EN: 4787, EN: 4916, E= N: 4930, EN: 5048, EN: 5136, EN: 5197, EN: 6058 [-Wanalyzer-too-complex] ../../src/pr96894.c:3011:23: warning: terminating analysis for this program point: callstring: [(SN: 144 -> SN: 106 in fibheap_delete_node), (SN: 89 ->= SN: 141 in fibheap_extract_min), (SN: 59 -> SN: 86 in fibheap_extr_min_node)] before (SN: 56 stmt: 0): i_34 =3D i_16 + 1;EN: 4777, EN: 4787, EN: 4916, E= N: 4930, EN: 5048, EN: 5136, EN: 5197, EN: 6058 [-Wanalyzer-too-complex] so this is likely an issue with call summarization failing. Adding to call summaries tracker. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99390 [Bug 99390] [meta-bug] tracker bug for call summaries in -fanalyzer=