Re: [CIL users] Different CFG for similar test cases

2011-05-04 Thread Christoph Spiel
Hello! On Wed, May 04, 2011 at 02:29:32PM +0800, haihao shen wrote: > I found CIL treats the following two functions differently. > void loop_test1() > while((get_a()<1) && (get_b()<1)) > void loop_test2() > while(!(get_a()<1) && !(get_b()<1)) Your conditions that control the `w

[CIL users] Different CFG for similar test cases

2011-05-03 Thread haihao shen
Hi, I found CIL treats the following two functions differently. int a; int b; int get_a() { return a; } int get_b() { return b; } void loop_test1() { while((get_a()<1) && (get_b()<1)) { a++; b++; } } void loop_test2() { while(!(get_a()<1) && !(get_b()<1))