Skip to content

Commit e76c70c

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 b3b7f83 commit e76c70c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/goto-symex/goto_symex_state.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ bool goto_symex_statet::constant_propagation_reference(const exprt &expr) const
209209
return false;
210210
}
211211

212-
/// write to a variable
212+
#if 0
213213
static bool check_renaming(const exprt &expr);
214214

215215
static bool check_renaming(const typet &type)
@@ -290,10 +290,11 @@ static bool check_renaming(const exprt &expr)
290290

291291
return false;
292292
}
293+
#endif
293294

294295
static void assert_l1_renaming(const exprt &expr)
295296
{
296-
#if 1
297+
#if 0
297298
if(check_renaming_l1(expr))
298299
{
299300
std::cerr << expr.pretty() << '\n';
@@ -306,7 +307,7 @@ static void assert_l1_renaming(const exprt &expr)
306307

307308
static void assert_l2_renaming(const exprt &expr)
308309
{
309-
#if 1
310+
#if 0
310311
if(check_renaming(expr))
311312
{
312313
std::cerr << expr.pretty() << '\n';
@@ -317,6 +318,7 @@ static void assert_l2_renaming(const exprt &expr)
317318
#endif
318319
}
319320

321+
/// write to a variable
320322
void goto_symex_statet::assignment(
321323
ssa_exprt &lhs, // L0/L1
322324
const exprt &rhs, // L2

0 commit comments

Comments
 (0)