File tree 1 file changed +1
-24
lines changed 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ literalt prop_conv_solvert::convert(const exprt &expr)
182
182
literalt literal = convert_bool (expr);
183
183
184
184
// insert into cache
185
-
186
185
result.first ->second = literal;
186
+
187
187
if (freeze_all && !literal.is_constant ())
188
188
prop.set_frozen (literal);
189
189
@@ -305,29 +305,6 @@ literalt prop_conv_solvert::convert_bool(const exprt &expr)
305
305
return equal ? prop.lequal (tmp1, tmp2) : prop.lxor (tmp1, tmp2);
306
306
}
307
307
}
308
- else if (expr.id () == ID_let)
309
- {
310
- const let_exprt &let_expr = to_let_expr (expr);
311
-
312
- // first check whether this is all boolean
313
- if (
314
- let_expr.value ().type ().id () == ID_bool &&
315
- let_expr.where ().type ().id () == ID_bool)
316
- {
317
- literalt value = convert (let_expr.value ());
318
-
319
- // We expect the identifier of the bound symbols to be unique,
320
- // and thus, these can go straight into the symbol map.
321
- // This property also allows us to cache any subexpressions.
322
- const irep_idt &id = let_expr.symbol ().get_identifier ();
323
- symbols[id] = value;
324
- literalt result = convert (let_expr.where ());
325
-
326
- // remove again
327
- symbols.erase (id);
328
- return result;
329
- }
330
- }
331
308
332
309
return convert_rest (expr);
333
310
}
You can’t perform that action at this time.
0 commit comments