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 ec1844e commit 7118858Copy full SHA for 7118858
src/goto-programs/interpreter_evaluate.cpp
@@ -339,7 +339,16 @@ void interpretert::evaluate(
339
evaluate(expr.op0(), dest);
340
return;
341
}
342
- if(expr.has_operands() && !to_integer(expr.op0(), i))
+ else if(
343
+ expr.has_operands() && !to_integer(to_constant_expr(expr.op0()), i))
344
+ {
345
+ dest.push_back(i);
346
+ return;
347
+ }
348
+ // check if expression is constant null pointer without operands
349
350
+ !expr.has_operands() && !to_integer(to_constant_expr(expr), i) &&
351
+ i.is_zero())
352
{
353
dest.push_back(i);
354
0 commit comments