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 ade3057 commit 8b3bfaaCopy full SHA for 8b3bfaa
src/goto-programs/interpreter_evaluate.cpp
@@ -339,11 +339,19 @@ 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
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 == 0)
352
+ {
353
+ dest.push_back(i);
354
+ }
355
356
else if(expr.type().id()==ID_floatbv)
357
0 commit comments