xref: /illumos-gate/usr/src/tools/smatch/src/validation/linear/phi-order02.c (revision a61ed2ce7a86a4d6428f2a83eb4739fae945447e)
1 int fun(void);
2 
3 static int foo(int a) { return 0 || fun(); }
4 static int bar(int a) { return 1 || fun(); }
5 static int baz(int a) { return 0 && fun(); }
6 static int qux(int a) { return 1 && fun(); }
7 
8 static int oof(int a) { return fun() || 1; }
9 static int rab(int a) { return fun() || 0; }
10 static int zab(int a) { return fun() && 1; }
11 static int xuq(int a) { return fun() && 0; }
12 
13 /*
14  * check-name: phi-order02
15  * check-command: sparse -vir -flinearize=last $file
16  */
17