Skip to content

Commit 6c3ad1b

Browse files
committed
Do not perform SSA sanity checks
Iterating over all expression tress has considerable performance cost, seemingly accounting for up to 10% of runtime (on SV-COMP benchmarks, with profiling enabled).
1 parent 1893fdb commit 6c3ad1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/goto-symex/goto_symex_state.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ goto_symex_statet::goto_symex_statet()
3838

3939
goto_symex_statet::~goto_symex_statet()=default;
4040

41+
#if 0
4142
/// write to a variable
4243
static bool check_renaming(const exprt &expr);
4344

@@ -120,10 +121,11 @@ static bool check_renaming(const exprt &expr)
120121

121122
return false;
122123
}
124+
#endif
123125

124126
static void assert_l1_renaming(const exprt &expr)
125127
{
126-
#if 1
128+
#if 0
127129
if(check_renaming_l1(expr))
128130
{
129131
std::cerr << expr.pretty() << '\n';
@@ -136,7 +138,7 @@ static void assert_l1_renaming(const exprt &expr)
136138

137139
static void assert_l2_renaming(const exprt &expr)
138140
{
139-
#if 1
141+
#if 0
140142
if(check_renaming(expr))
141143
{
142144
std::cerr << expr.pretty() << '\n';

0 commit comments

Comments
 (0)