#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 test1(int);
int test2(int);
int test3(int);
int test4(int);
int test5(int);
int test6(int);
int test7(int);
int test8(int);
int test9(int);
int main() {
  if (test1(0x12345678u) != 0x00340078u)
    return 1;
  if (test2(0x12345678u) != 0x00120056u)
    return 1;
  if (test3(0x12345678u) != 0x00120056u)
    return 1;
  if (test4(0x12345678u) != 0x00120056u)
    return 1;
  if (test5(0x12345678u) != 0x00120056u)
    return 1;
  if (test6(0x12345678u) != 0x00780034u)
    return 1;
  if (test7(0x12345678u) != 0x00780034u)
    return 1;
  if (test8(0x12345678u) != 0x00560012u)
    return 1;
  if (test9(0x12345678u) != 0x00560012u)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x12345678,%edi
call   1060 <test1@plt>
cmp    $0x340078,%eax
je     11c0 <main+0x30>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   10a0 <test2@plt>
cmp    $0x120056,%eax
je     11e1 <main+0x51>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1050 <test3@plt>
cmp    $0x120056,%eax
je     1202 <main+0x72>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1090 <test4@plt>
cmp    $0x120056,%eax
je     1223 <main+0x93>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1040 <test5@plt>
cmp    $0x120056,%eax
je     1244 <main+0xb4>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1080 <test6@plt>
cmp    $0x780034,%eax
je     1265 <main+0xd5>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1030 <test7@plt>
cmp    $0x780034,%eax
je     1286 <main+0xf6>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   10b0 <test8@plt>
cmp    $0x560012,%eax
je     12a7 <main+0x117>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
mov    $0x12345678,%edi
call   1070 <test9@plt>
cmp    $0x560012,%eax
je     12c8 <main+0x138>
movl   $0x1,-0x4(%rbp)
jmp    12cf <main+0x13f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x12345678,%edi
call   1060 <test1@plt>
mov    $0x1,%ebx
cmp    $0x340078,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   10a0 <test2@plt>
cmp    $0x120056,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1050 <test3@plt>
cmp    $0x120056,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1090 <test4@plt>
cmp    $0x120056,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1040 <test5@plt>
cmp    $0x120056,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1080 <test6@plt>
cmp    $0x780034,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1030 <test7@plt>
cmp    $0x780034,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   10b0 <test8@plt>
cmp    $0x560012,%eax
jne    1236 <main+0xa6>
mov    $0x12345678,%edi
call   1070 <test9@plt>
xor    %ebx,%ebx
cmp    $0x560012,%eax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @test1(i32 305419896)
%3 = icmp ne i32 %2, 3407992
br i1 %3, label %4, label %5
4: ; preds = %0
store i32 1, i32* %1
br label %38
5: ; preds = %0
%6 = call i32 @test2(i32 305419896)
%7 = icmp ne i32 %6, 1179734
br i1 %7, label %8, label %9
8: ; preds = %5
store i32 1, i32* %1
br label %38
9: ; preds = %5
%10 = call i32 @test3(i32 305419896)
%11 = icmp ne i32 %10, 1179734
br i1 %11, label %12, label %13
12: ; preds = %9
store i32 1, i32* %1
br label %38
13: ; preds = %9
%14 = call i32 @test4(i32 305419896)
%15 = icmp ne i32 %14, 1179734
br i1 %15, label %16, label %17
16: ; preds = %13
store i32 1, i32* %1
br label %38
17: ; preds = %13
%18 = call i32 @test5(i32 305419896)
%19 = icmp ne i32 %18, 1179734
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 1, i32* %1
br label %38
21: ; preds = %17
%22 = call i32 @test6(i32 305419896)
%23 = icmp ne i32 %22, 7864372
br i1 %23, label %24, label %25
24: ; preds = %21
store i32 1, i32* %1
br label %38
25: ; preds = %21
%26 = call i32 @test7(i32 305419896)
%27 = icmp ne i32 %26, 7864372
br i1 %27, label %28, label %29
28: ; preds = %25
store i32 1, i32* %1
br label %38
29: ; preds = %25
%30 = call i32 @test8(i32 305419896)
%31 = icmp ne i32 %30, 5636114
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 1, i32* %1
br label %38
33: ; preds = %29
%34 = call i32 @test9(i32 305419896)
%35 = icmp ne i32 %34, 5636114
br i1 %35, label %36, label %37
36: ; preds = %33
store i32 1, i32* %1
br label %38
37: ; preds = %33
store i32 0, i32* %1
br label %38
38: ; preds = %37, %36, %32, %28, %24, %20, %16, %12, %8, %4
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @test1(i32 305419896)
%2 = icmp eq i32 %1, 3407992
br i1 %2, label %3, label %28
3: ; preds = %0
%4 = tail call i32 @test2(i32 305419896)
%5 = icmp eq i32 %4, 1179734
br i1 %5, label %6, label %28
6: ; preds = %3
%7 = tail call i32 @test3(i32 305419896)
%8 = icmp eq i32 %7, 1179734
br i1 %8, label %9, label %28
9: ; preds = %6
%10 = tail call i32 @test4(i32 305419896)
%11 = icmp eq i32 %10, 1179734
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = tail call i32 @test5(i32 305419896)
%14 = icmp eq i32 %13, 1179734
br i1 %14, label %15, label %28
15: ; preds = %12
%16 = tail call i32 @test6(i32 305419896)
%17 = icmp eq i32 %16, 7864372
br i1 %17, label %18, label %28
18: ; preds = %15
%19 = tail call i32 @test7(i32 305419896)
%20 = icmp eq i32 %19, 7864372
br i1 %20, label %21, label %28
21: ; preds = %18
%22 = tail call i32 @test8(i32 305419896)
%23 = icmp eq i32 %22, 5636114
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = tail call i32 @test9(i32 305419896)
%26 = icmp ne i32 %25, 5636114
%27 = zext i1 %26 to i32
br label %28
28: ; preds = %24, %21, %18, %15, %12, %9, %6, %3, %0
%29 = phi i32 [ 1, %0 ], [ 1, %3 ], [ 1, %6 ], [ 1, %9 ], [ 1, %12 ], [ 1, %15 ], [ 1, %18 ], [ 1, %21 ], [ %27, %24 ]
ret i32 %29
}