#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
int test1(int);
int test2(int);
int test3(int);
int test4(int);
int test5(int);
int test6(int);
int main() {
  if (test1(19) != 0)
    abort();
  if (test1(20) != 1)
    abort();
  if (test1(29) != 1)
    abort();
  if (test1(30) != 0)
    abort();
  if (test2(-10) != 0)
    abort();
  if (test2(-9) != 1)
    abort();
  if (test2(9) != 1)
    abort();
  if (test2(10) != 0)
    abort();
  if (test3(-30) != 0)
    abort();
  if (test3(-29) != 1)
    abort();
  if (test3(-20) != 1)
    abort();
  if (test3(-19) != 0)
    abort();
  if (test4(-30) != 0)
    abort();
  if (test4(-29) != 1)
    abort();
  if (test4(-20) != 1)
    abort();
  if (test4(-19) != 0)
    abort();
  if (test5(-10) != 0)
    abort();
  if (test5(-9) != 1)
    abort();
  if (test5(9) != 1)
    abort();
  if (test5(10) != 0)
    abort();
  if (test6(19) != 0)
    abort();
  if (test6(20) != 1)
    abort();
  if (test6(29) != 1)
    abort();
  if (test6(30) != 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x13,%edi
call   1060 <test1@plt>
cmp    $0x0,%eax
je     1199 <main+0x29>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x14,%edi
call   1060 <test1@plt>
cmp    $0x1,%eax
je     11b3 <main+0x43>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x1d,%edi
call   1060 <test1@plt>
cmp    $0x1,%eax
je     11cd <main+0x5d>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x1e,%edi
call   1060 <test1@plt>
cmp    $0x0,%eax
je     11e7 <main+0x77>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xfffffff6,%edi
call   1090 <test2@plt>
cmp    $0x0,%eax
je     1201 <main+0x91>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xfffffff7,%edi
call   1090 <test2@plt>
cmp    $0x1,%eax
je     121b <main+0xab>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x9,%edi
call   1090 <test2@plt>
cmp    $0x1,%eax
je     1235 <main+0xc5>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xa,%edi
call   1090 <test2@plt>
cmp    $0x0,%eax
je     124f <main+0xdf>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffe2,%edi
call   1050 <test3@plt>
cmp    $0x0,%eax
je     1269 <main+0xf9>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffe3,%edi
call   1050 <test3@plt>
cmp    $0x1,%eax
je     1283 <main+0x113>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffec,%edi
call   1050 <test3@plt>
cmp    $0x1,%eax
je     129d <main+0x12d>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffed,%edi
call   1050 <test3@plt>
cmp    $0x0,%eax
je     12b7 <main+0x147>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffe2,%edi
call   1080 <test4@plt>
cmp    $0x0,%eax
je     12d1 <main+0x161>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffe3,%edi
call   1080 <test4@plt>
cmp    $0x1,%eax
je     12eb <main+0x17b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffec,%edi
call   1080 <test4@plt>
cmp    $0x1,%eax
je     1305 <main+0x195>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xffffffed,%edi
call   1080 <test4@plt>
cmp    $0x0,%eax
je     131f <main+0x1af>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xfffffff6,%edi
call   1040 <test5@plt>
cmp    $0x0,%eax
je     1339 <main+0x1c9>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xfffffff7,%edi
call   1040 <test5@plt>
cmp    $0x1,%eax
je     1353 <main+0x1e3>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x9,%edi
call   1040 <test5@plt>
cmp    $0x1,%eax
je     136d <main+0x1fd>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0xa,%edi
call   1040 <test5@plt>
cmp    $0x0,%eax
je     1387 <main+0x217>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x13,%edi
call   1070 <test6@plt>
cmp    $0x0,%eax
je     13a1 <main+0x231>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x14,%edi
call   1070 <test6@plt>
cmp    $0x1,%eax
je     13bb <main+0x24b>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x1d,%edi
call   1070 <test6@plt>
cmp    $0x1,%eax
je     13d5 <main+0x265>
mov    $0x0,%al
call   1030 <abort@plt>
mov    $0x1e,%edi
call   1070 <test6@plt>
cmp    $0x0,%eax
je     13ef <main+0x27f>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x13,%edi
call   1060 <test1@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0x14,%edi
call   1060 <test1@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x1d,%edi
call   1060 <test1@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x1e,%edi
call   1060 <test1@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xfffffff6,%edi
call   1090 <test2@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xfffffff7,%edi
call   1090 <test2@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x9,%edi
call   1090 <test2@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xa,%edi
call   1090 <test2@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xffffffe2,%edi
call   1050 <test3@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xffffffe3,%edi
call   1050 <test3@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xffffffec,%edi
call   1050 <test3@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xffffffed,%edi
call   1050 <test3@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xffffffe2,%edi
call   1080 <test4@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xffffffe3,%edi
call   1080 <test4@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xffffffec,%edi
call   1080 <test4@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xffffffed,%edi
call   1080 <test4@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xfffffff6,%edi
call   1040 <test5@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0xfffffff7,%edi
call   1040 <test5@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x9,%edi
call   1040 <test5@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0xa,%edi
call   1040 <test5@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0x13,%edi
call   1070 <test6@plt>
test   %eax,%eax
jne    130d <main+0x19d>
mov    $0x14,%edi
call   1070 <test6@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x1d,%edi
call   1070 <test6@plt>
cmp    $0x1,%eax
jne    130d <main+0x19d>
mov    $0x1e,%edi
call   1070 <test6@plt>
test   %eax,%eax
jne    130d <main+0x19d>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test1(i32 19)
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort()
unreachable
6: ; preds = %0
%7 = call i32 @test1(i32 20)
%8 = icmp ne i32 %7, 1
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 (...) @abort()
unreachable
11: ; preds = %6
%12 = call i32 @test1(i32 29)
%13 = icmp ne i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (...) @abort()
unreachable
16: ; preds = %11
%17 = call i32 @test1(i32 30)
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @abort()
unreachable
21: ; preds = %16
%22 = call i32 @test2(i32 -10)
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (...) @abort()
unreachable
26: ; preds = %21
%27 = call i32 @test2(i32 -9)
%28 = icmp ne i32 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @abort()
unreachable
31: ; preds = %26
%32 = call i32 @test2(i32 9)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 (...) @abort()
unreachable
36: ; preds = %31
%37 = call i32 @test2(i32 10)
%38 = icmp ne i32 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 (...) @abort()
unreachable
41: ; preds = %36
%42 = call i32 @test3(i32 -30)
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 (...) @abort()
unreachable
46: ; preds = %41
%47 = call i32 @test3(i32 -29)
%48 = icmp ne i32 %47, 1
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 (...) @abort()
unreachable
51: ; preds = %46
%52 = call i32 @test3(i32 -20)
%53 = icmp ne i32 %52, 1
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (...) @abort()
unreachable
56: ; preds = %51
%57 = call i32 @test3(i32 -19)
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 (...) @abort()
unreachable
61: ; preds = %56
%62 = call i32 @test4(i32 -30)
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i32 (...) @abort()
unreachable
66: ; preds = %61
%67 = call i32 @test4(i32 -29)
%68 = icmp ne i32 %67, 1
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 (...) @abort()
unreachable
71: ; preds = %66
%72 = call i32 @test4(i32 -20)
%73 = icmp ne i32 %72, 1
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 (...) @abort()
unreachable
76: ; preds = %71
%77 = call i32 @test4(i32 -19)
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (...) @abort()
unreachable
81: ; preds = %76
%82 = call i32 @test5(i32 -10)
%83 = icmp ne i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = call i32 (...) @abort()
unreachable
86: ; preds = %81
%87 = call i32 @test5(i32 -9)
%88 = icmp ne i32 %87, 1
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = call i32 (...) @abort()
unreachable
91: ; preds = %86
%92 = call i32 @test5(i32 9)
%93 = icmp ne i32 %92, 1
br i1 %93, label %94, label %96
94: ; preds = %91
%95 = call i32 (...) @abort()
unreachable
96: ; preds = %91
%97 = call i32 @test5(i32 10)
%98 = icmp ne i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %96
%100 = call i32 (...) @abort()
unreachable
101: ; preds = %96
%102 = call i32 @test6(i32 19)
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %101
%105 = call i32 (...) @abort()
unreachable
106: ; preds = %101
%107 = call i32 @test6(i32 20)
%108 = icmp ne i32 %107, 1
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = call i32 (...) @abort()
unreachable
111: ; preds = %106
%112 = call i32 @test6(i32 29)
%113 = icmp ne i32 %112, 1
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = call i32 (...) @abort()
unreachable
116: ; preds = %111
%117 = call i32 @test6(i32 30)
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = call i32 (...) @abort()
unreachable
121: ; preds = %116
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test1(i32 19)
%2 = icmp eq i32 %1, 0
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @test1(i32 20)
%7 = icmp eq i32 %6, 1
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %5
%11 = tail call i32 @test1(i32 29)
%12 = icmp eq i32 %11, 1
br i1 %12, label %15, label %13
13: ; preds = %10
%14 = tail call i32 (...) @abort()
unreachable
15: ; preds = %10
%16 = tail call i32 @test1(i32 30)
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %15
%19 = tail call i32 (...) @abort()
unreachable
20: ; preds = %15
%21 = tail call i32 @test2(i32 -10)
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %20
%24 = tail call i32 (...) @abort()
unreachable
25: ; preds = %20
%26 = tail call i32 @test2(i32 -9)
%27 = icmp eq i32 %26, 1
br i1 %27, label %30, label %28
28: ; preds = %25
%29 = tail call i32 (...) @abort()
unreachable
30: ; preds = %25
%31 = tail call i32 @test2(i32 9)
%32 = icmp eq i32 %31, 1
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i32 (...) @abort()
unreachable
35: ; preds = %30
%36 = tail call i32 @test2(i32 10)
%37 = icmp eq i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = tail call i32 (...) @abort()
unreachable
40: ; preds = %35
%41 = tail call i32 @test3(i32 -30)
%42 = icmp eq i32 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %40
%44 = tail call i32 (...) @abort()
unreachable
45: ; preds = %40
%46 = tail call i32 @test3(i32 -29)
%47 = icmp eq i32 %46, 1
br i1 %47, label %50, label %48
48: ; preds = %45
%49 = tail call i32 (...) @abort()
unreachable
50: ; preds = %45
%51 = tail call i32 @test3(i32 -20)
%52 = icmp eq i32 %51, 1
br i1 %52, label %55, label %53
53: ; preds = %50
%54 = tail call i32 (...) @abort()
unreachable
55: ; preds = %50
%56 = tail call i32 @test3(i32 -19)
%57 = icmp eq i32 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = tail call i32 (...) @abort()
unreachable
60: ; preds = %55
%61 = tail call i32 @test4(i32 -30)
%62 = icmp eq i32 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = tail call i32 (...) @abort()
unreachable
65: ; preds = %60
%66 = tail call i32 @test4(i32 -29)
%67 = icmp eq i32 %66, 1
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = tail call i32 (...) @abort()
unreachable
70: ; preds = %65
%71 = tail call i32 @test4(i32 -20)
%72 = icmp eq i32 %71, 1
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = tail call i32 (...) @abort()
unreachable
75: ; preds = %70
%76 = tail call i32 @test4(i32 -19)
%77 = icmp eq i32 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = tail call i32 (...) @abort()
unreachable
80: ; preds = %75
%81 = tail call i32 @test5(i32 -10)
%82 = icmp eq i32 %81, 0
br i1 %82, label %85, label %83
83: ; preds = %80
%84 = tail call i32 (...) @abort()
unreachable
85: ; preds = %80
%86 = tail call i32 @test5(i32 -9)
%87 = icmp eq i32 %86, 1
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = tail call i32 (...) @abort()
unreachable
90: ; preds = %85
%91 = tail call i32 @test5(i32 9)
%92 = icmp eq i32 %91, 1
br i1 %92, label %95, label %93
93: ; preds = %90
%94 = tail call i32 (...) @abort()
unreachable
95: ; preds = %90
%96 = tail call i32 @test5(i32 10)
%97 = icmp eq i32 %96, 0
br i1 %97, label %100, label %98
98: ; preds = %95
%99 = tail call i32 (...) @abort()
unreachable
100: ; preds = %95
%101 = tail call i32 @test6(i32 19)
%102 = icmp eq i32 %101, 0
br i1 %102, label %105, label %103
103: ; preds = %100
%104 = tail call i32 (...) @abort()
unreachable
105: ; preds = %100
%106 = tail call i32 @test6(i32 20)
%107 = icmp eq i32 %106, 1
br i1 %107, label %110, label %108
108: ; preds = %105
%109 = tail call i32 (...) @abort()
unreachable
110: ; preds = %105
%111 = tail call i32 @test6(i32 29)
%112 = icmp eq i32 %111, 1
br i1 %112, label %115, label %113
113: ; preds = %110
%114 = tail call i32 (...) @abort()
unreachable
115: ; preds = %110
%116 = tail call i32 @test6(i32 30)
%117 = icmp eq i32 %116, 0
br i1 %117, label %120, label %118
118: ; preds = %115
%119 = tail call i32 (...) @abort()
unreachable
120: ; preds = %115
ret i32 0
}