Skip to content

Commit c93dd78

Browse files
committed
Remove too tight precondition in evaluator that was causing an invariant violation in some cases.
1 parent 538eef6 commit c93dd78

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/goto-programs/interpreter_evaluate.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,6 @@ mp_integer interpretert::evaluate_address(
11961196
if(expr.operands().size()!=1)
11971197
throw "typecast expects one operand";
11981198

1199-
PRECONDITION(expr.type().id()==ID_pointer);
1200-
12011199
return evaluate_address(expr.op0(), fail_quietly);
12021200
}
12031201
if(!fail_quietly)

0 commit comments

Comments
 (0)