#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*/ printf(char *, int);
int main() {
  int local = 54;
  int test1 = 1, test2 = 2, test3 = 3;
  if (local == 54)
    printf("%d\n", local);
  else {
    local += 1;
  }
  printf("%d\n", local);
  if (local < 60)
    printf("%d\n", test1);
  if (local < 55)
    printf("%d\n", test2);
  else
    printf("%d\n", test3);
  if (local > 60)
    printf("%d\n", test1);
  if (local > 55)
    printf("%d\n", test2);
  else
    printf("%d\n", test3);
  if (local -= local) {
    int a = 123;
    printf("%d\n", a);
    a + 2;
  }
  if (!local) {
    if (test3 == 3)
      printf("%d\n", test3);
    else
      printf("%d\n", test2);
    if (test1 == test3 - test2) {
      printf("%d\n", test1);
      printf("%d\n", local);
    } else {
      int tmp = test1 - 2;
      printf("%d\n", tmp);
    }
  } else {
    local += test1 * test2 * test3;
    printf("%d\n", local);
  }
  local = !local;
  if (!local) {
    if (test3 == 3)
      printf("%d\n", test3);
    else
      printf("%d\n", test2);
    if (test1 == test3 - test2) {
      printf("%d\n", test1);
      printf("%d\n", local);
    } else {
      int tmp = test1 - 2;
      printf("%d\n", tmp);
    }
  } else {
    local += test1 * test2 * test3;
    printf("%d\n", local);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x36,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
movl   $0x2,-0x10(%rbp)
movl   $0x3,-0x14(%rbp)
cmpl   $0x36,-0x8(%rbp)
jne    1159 <main+0x49>
mov    -0x8(%rbp),%esi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    1162 <main+0x52>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3c,-0x8(%rbp)
jge    118a <main+0x7a>
mov    -0xc(%rbp),%esi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x37,-0x8(%rbp)
jge    11a8 <main+0x98>
mov    -0x10(%rbp),%esi
lea    0xe62(%rip),%rdi
call   1030 <printf@plt>
jmp    11b7 <main+0xa7>
mov    -0x14(%rbp),%esi
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3c,-0x8(%rbp)
jle    11d0 <main+0xc0>
mov    -0xc(%rbp),%esi
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x37,-0x8(%rbp)
jle    11ee <main+0xde>
mov    -0x10(%rbp),%esi
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    11fd <main+0xed>
mov    -0x14(%rbp),%esi
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%ecx
mov    -0x8(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
je     1227 <main+0x117>
movl   $0x7b,-0x18(%rbp)
mov    -0x18(%rbp),%esi
lea    0xdde(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    12af <main+0x19f>
cmpl   $0x3,-0x14(%rbp)
jne    124f <main+0x13f>
mov    -0x14(%rbp),%esi
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
jmp    125e <main+0x14e>
mov    -0x10(%rbp),%esi
lea    0xda7(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jne    1292 <main+0x182>
mov    -0xc(%rbp),%esi
lea    0xd87(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd78(%rip),%rdi
call   1030 <printf@plt>
jmp    12aa <main+0x19a>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xd5b(%rip),%rdi
call   1030 <printf@plt>
jmp    12cf <main+0x1bf>
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xd36(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1368 <main+0x258>
cmpl   $0x3,-0x14(%rbp)
jne    1308 <main+0x1f8>
mov    -0x14(%rbp),%esi
lea    0xd02(%rip),%rdi
call   1030 <printf@plt>
jmp    1317 <main+0x207>
mov    -0x10(%rbp),%esi
lea    0xcee(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    -0x10(%rbp),%ecx
cmp    %ecx,%eax
jne    134b <main+0x23b>
mov    -0xc(%rbp),%esi
lea    0xcce(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xcbf(%rip),%rdi
call   1030 <printf@plt>
jmp    1363 <main+0x253>
mov    -0xc(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%esi
lea    0xca2(%rip),%rdi
call   1030 <printf@plt>
jmp    1388 <main+0x278>
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x14(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xc7d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x36,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x36,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 54, i32* %2
store i32 1, i32* %3
store i32 2, i32* %4
store i32 3, i32* %5
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 54
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, i32* %2
%13 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %17
14: ; preds = %0
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %17
17: ; preds = %14, %11
%18 = load i32, i32* %2
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %2
%21 = icmp slt i32 %20, 60
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, i32* %3
%24 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %23)
br label %25
25: ; preds = %22, %17
%26 = load i32, i32* %2
%27 = icmp slt i32 %26, 55
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* %4
%30 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %29)
br label %34
31: ; preds = %25
%32 = load i32, i32* %5
%33 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %32)
br label %34
34: ; preds = %31, %28
%35 = load i32, i32* %2
%36 = icmp sgt i32 %35, 60
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, i32* %3
%39 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %37, %34
%41 = load i32, i32* %2
%42 = icmp sgt i32 %41, 55
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load i32, i32* %4
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %44)
br label %49
46: ; preds = %40
%47 = load i32, i32* %5
%48 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %46, %43
%50 = load i32, i32* %2
%51 = load i32, i32* %2
%52 = sub nsw i32 %51, %50
store i32 %52, i32* %2
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %59
54: ; preds = %49
store i32 123, i32* %6
%55 = load i32, i32* %6
%56 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %55)
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 2
br label %59
59: ; preds = %54, %49
%60 = load i32, i32* %2
%61 = icmp ne i32 %60, 0
br i1 %61, label %88, label %62
62: ; preds = %59
%63 = load i32, i32* %5
%64 = icmp eq i32 %63, 3
br i1 %64, label %65, label %68
65: ; preds = %62
%66 = load i32, i32* %5
%67 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %66)
br label %71
68: ; preds = %62
%69 = load i32, i32* %4
%70 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %69)
br label %71
71: ; preds = %68, %65
%72 = load i32, i32* %3
%73 = load i32, i32* %5
%74 = load i32, i32* %4
%75 = sub nsw i32 %73, %74
%76 = icmp eq i32 %72, %75
br i1 %76, label %77, label %82
77: ; preds = %71
%78 = load i32, i32* %3
%79 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %78)
%80 = load i32, i32* %2
%81 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %80)
br label %87
82: ; preds = %71
%83 = load i32, i32* %3
%84 = sub nsw i32 %83, 2
store i32 %84, i32* %7
%85 = load i32, i32* %7
%86 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %85)
br label %87
87: ; preds = %82, %77
br label %98
88: ; preds = %59
%89 = load i32, i32* %3
%90 = load i32, i32* %4
%91 = mul nsw i32 %89, %90
%92 = load i32, i32* %5
%93 = mul nsw i32 %91, %92
%94 = load i32, i32* %2
%95 = add nsw i32 %94, %93
store i32 %95, i32* %2
%96 = load i32, i32* %2
%97 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %88, %87
%99 = load i32, i32* %2
%100 = icmp ne i32 %99, 0
%101 = xor i1 %100, true
%102 = zext i1 %101 to i32
store i32 %102, i32* %2
%103 = load i32, i32* %2
%104 = icmp ne i32 %103, 0
br i1 %104, label %131, label %105
105: ; preds = %98
%106 = load i32, i32* %5
%107 = icmp eq i32 %106, 3
br i1 %107, label %108, label %111
108: ; preds = %105
%109 = load i32, i32* %5
%110 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %109)
br label %114
111: ; preds = %105
%112 = load i32, i32* %4
%113 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %112)
br label %114
114: ; preds = %111, %108
%115 = load i32, i32* %3
%116 = load i32, i32* %5
%117 = load i32, i32* %4
%118 = sub nsw i32 %116, %117
%119 = icmp eq i32 %115, %118
br i1 %119, label %120, label %125
120: ; preds = %114
%121 = load i32, i32* %3
%122 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %2
%124 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %123)
br label %130
125: ; preds = %114
%126 = load i32, i32* %3
%127 = sub nsw i32 %126, 2
store i32 %127, i32* %8
%128 = load i32, i32* %8
%129 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %128)
br label %130
130: ; preds = %125, %120
br label %141
131: ; preds = %98
%132 = load i32, i32* %3
%133 = load i32, i32* %4
%134 = mul nsw i32 %132, %133
%135 = load i32, i32* %5
%136 = mul nsw i32 %134, %135
%137 = load i32, i32* %2
%138 = add nsw i32 %137, %136
store i32 %138, i32* %2
%139 = load i32, i32* %2
%140 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %139)
br label %141
141: ; preds = %131, %130
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 54)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 54)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 1)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 0)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 7)
ret i32 0
}