smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git] / validation / linear / logical-phi0.c
blob96a47dba41165ab529cc8c974260ffbab0a9d33e
1 int a(void);
2 int b(void);
3 int c(void);
5 static int laa(void)
7 return (a() && b()) && c();
10 static int lao(void)
12 return (a() && b()) || c();
15 static int loa(void)
17 return (a() || b()) && c();
20 static int loo(void)
22 return (a() || b()) || c();
25 static int raa(void)
27 return a() && (b() && c());
30 static int rao(void)
32 return a() && (b() || c());
35 static int roa(void)
37 return a() || (b() && c());
40 static int roo(void)
42 return a() || (b() || c());
46 * check-name: bad-logical-phi0
47 * check-command: sparse -vir -flinearize=last $file