Skip to content

Commit 37aa2de

Browse files
smowtonpeterschrammel
authored andcommitted
Record number of static analysis steps taken
1 parent 32fd50f commit 37aa2de

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/analyses/static_analysis.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ bool static_analysis_baset::fixedpoint(
323323

324324
while(!working_set.empty())
325325
{
326+
++nsteps;
326327
locationt l=get_next(working_set);
327328

328329
if(visit(l, working_set, goto_program, goto_functions))

src/analyses/static_analysis.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ class static_analysis_baset
9595
typedef goto_programt::const_targett locationt;
9696

9797
explicit static_analysis_baset(const namespacet &_ns):
98+
nsteps(0),
9899
ns(_ns),
99100
initialized(false)
100101
{
@@ -166,6 +167,8 @@ class static_analysis_baset
166167
// for an edge that returns from a function
167168
static exprt get_return_lhs(locationt to);
168169

170+
size_t nsteps;
171+
169172
protected:
170173
const namespacet &ns;
171174

0 commit comments

Comments
 (0)