We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37741f commit b0352f9Copy full SHA for b0352f9
regression/cbmc/Pointer_Arithmetic15/test.desc
@@ -1,4 +1,4 @@
1
-KNOWNBUG
+CORE
2
main.c
3
4
^EXIT=10$
@@ -7,5 +7,5 @@ main.c
7
--
8
^warning: ignoring
9
10
-Symbolic execution currently messes up the typing in "p = a + b + p;" making the
+The simplifier previously messed up the typing in "p = a + b + p;" making the
11
right-hand side signed long rather than a pointer.
src/util/simplify_expr_int.cpp
@@ -479,6 +479,7 @@ bool simplify_exprt::simplify_plus(exprt &expr)
479
if(expr.type().id()==ID_pointer &&
480
expr.operands().size()==2 &&
481
expr.op0().id()==ID_plus &&
482
+ expr.op0().type().id() == ID_pointer &&
483
expr.op0().operands().size()==2)
484
{
485
exprt op0=expr.op0();
0 commit comments