--- layout: fc_discuss_archives title: Message 6 from Frama-C-discuss on March 2020 ---
Hello, Le 13/03/2020 à 08:15, Virgile Prevosto a écrit : > > I haven't checked in detail, hence the answer below should be taken with a grain of salt, but I tend > to think that this is due to the way loops are represented internally by Frama-C. Namely, the Loop > AST node does not contain directly the test. To make the test appear outside the loop you can use syntactic unrolling, which is handy but doesn't scale well. You can play with `-ulevel n` or loop specific pragma in order to obtain the slice you wanted. int f() { int x = 1; /*@ loop pragma UNROLL_LOOP 1; @*/ while (x > 0) { x--; } return x; } /* Generated by Frama-C */ int f(void) { int x = 1; x --; return x; } Best, -- François