implied: use a time based timeout instead of counting ->nr_children
[smatch.git] / validation / sm_implied17.c
blob588f63aae3af28811a7f184f32f3506c97839ca8
1 #include "check_debug.h"
3 int frob(void);
5 int a;
6 int func (char *input)
8 int x = frob();
10 if (a == 1) {
11 if (x != -5)
12 return;
13 } else if (a == 2) {
14 if (x < 0 || x > 10)
15 return;
16 } else {
17 return;
20 if (x)
23 if (x == -5)
24 __smatch_implied(a);
26 return 0;
30 * check-name: smatch implied #17
31 * check-command: smatch -I.. sm_implied17.c
33 * check-output-start
34 sm_implied17.c:24 func() implied: a = '1'
35 * check-output-end