We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4cfc2f commit bd2558bCopy full SHA for bd2558b
src/util/simplify_expr_int.cpp
@@ -446,6 +446,8 @@ bool simplify_exprt::simplify_mod(exprt &expr)
446
447
bool simplify_exprt::simplify_plus(exprt &expr)
448
{
449
+ // only used to check structural invariants
450
+ (void)to_plus_expr(expr);
451
if(!is_number(expr.type()) &&
452
expr.type().id()!=ID_pointer)
453
return true;
@@ -454,8 +456,6 @@ bool simplify_exprt::simplify_plus(exprt &expr)
454
456
455
457
exprt::operandst &operands=expr.operands();
458
- assert(expr.id()==ID_plus);
-
459
// floating-point addition is _NOT_ associative; thus,
460
// there is special case for float
461
0 commit comments