1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp-details" } */
13 /* This should be folded to if (1) because of the parent 'if
14 (p)'. But the dereference of p above does not need an
23 /* This should be folded to if (0), because p has just been
24 dereferenced. But we were not inserting enough ASSERT_EXPRs
33 /* { dg-final { scan-tree-dump-times "Folding predicate p_.*to 1" 1 "vrp" } } */
34 /* { dg-final { scan-tree-dump-times "Folding predicate p_.*to 0" 1 "vrp" } } */
35 /* { dg-final { scan-tree-dump-times "PREDICATE: p_\[0-9\] ne_expr 0B" 2 "vrp" } } */
36 /* { dg-final { cleanup-tree-dump "vrp" } } */