#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 main() {
  int inp = 0;
  if (inp == 0)
    inp = 1;
  else
    inp = 2;
  if (inp == 0) {
    inp = 2;
    inp = 3;
  }
  if (inp == 0) {
    inp = 1;
  } else
    inp = 2;
  if (0 == inp) {
    if (1 == inp)
      ;
    else if (2 == inp)
      ;
    else if (3 == inp) {
      if (3 == inp) {
        ;
      } else if (4 == inp)
        ;
      else
        ;
    }
  } else if (1 == inp) {
  } else if (2 == inp) {
  } else if (3 == inp) {
    printf("inp=3\n");
  } else if (4 == inp) {
  } else if (5 == inp) {
  } else if (6 == inp) {
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    113c <main+0x2c>
movl   $0x1,-0x8(%rbp)
jmp    1143 <main+0x33>
movl   $0x2,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    115b <main+0x4b>
movl   $0x2,-0x8(%rbp)
movl   $0x3,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1171 <main+0x61>
movl   $0x1,-0x8(%rbp)
jmp    1178 <main+0x68>
movl   $0x2,-0x8(%rbp)
xor    %eax,%eax
cmp    -0x8(%rbp),%eax
jne    11fb <main+0xeb>
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
jne    1196 <main+0x86>
jmp    11f6 <main+0xe6>
mov    $0x2,%eax
cmp    -0x8(%rbp),%eax
jne    11a9 <main+0x99>
jmp    11f1 <main+0xe1>
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
jne    11ec <main+0xdc>
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
jne    11ca <main+0xba>
jmp    11e7 <main+0xd7>
mov    $0x4,%eax
cmp    -0x8(%rbp),%eax
jne    11dd <main+0xcd>
jmp    11e2 <main+0xd2>
jmp    11e2 <main+0xd2>
jmp    11e7 <main+0xd7>
jmp    11ec <main+0xdc>
jmp    11f1 <main+0xe1>
jmp    11f6 <main+0xe6>
jmp    1297 <main+0x187>
mov    $0x1,%eax
cmp    -0x8(%rbp),%eax
jne    120e <main+0xfe>
jmp    1292 <main+0x182>
mov    $0x2,%eax
cmp    -0x8(%rbp),%eax
jne    1221 <main+0x111>
jmp    128d <main+0x17d>
mov    $0x3,%eax
cmp    -0x8(%rbp),%eax
jne    1240 <main+0x130>
lea    0xdca(%rip),%rdi
call   1030 <printf@plt>
jmp    1288 <main+0x178>
mov    $0x4,%eax
cmp    -0x8(%rbp),%eax
jne    1253 <main+0x143>
jmp    1283 <main+0x173>
mov    $0x5,%eax
cmp    -0x8(%rbp),%eax
jne    1266 <main+0x156>
jmp    127e <main+0x16e>
mov    $0x6,%eax
cmp    -0x8(%rbp),%eax
jne    1279 <main+0x169>
jmp    1279 <main+0x169>
jmp    127e <main+0x16e>
jmp    1283 <main+0x173>
jmp    1288 <main+0x178>
jmp    128d <main+0x17d>
jmp    1292 <main+0x182>
jmp    1297 <main+0x187>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [7 x i8] c"inp=3\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %0
store i32 1, i32* %2
br label %7
6: ; preds = %0
store i32 2, i32* %2
br label %7
7: ; preds = %6, %5
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 2, i32* %2
store i32 3, i32* %2
br label %11
11: ; preds = %10, %7
%12 = load i32, i32* %2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 1, i32* %2
br label %16
15: ; preds = %11
store i32 2, i32* %2
br label %16
16: ; preds = %15, %14
%17 = load i32, i32* %2
%18 = icmp eq i32 0, %17
br i1 %18, label %19, label %44
19: ; preds = %16
%20 = load i32, i32* %2
%21 = icmp eq i32 1, %20
br i1 %21, label %22, label %23
22: ; preds = %19
br label %43
23: ; preds = %19
%24 = load i32, i32* %2
%25 = icmp eq i32 2, %24
br i1 %25, label %26, label %27
26: ; preds = %23
br label %42
27: ; preds = %23
%28 = load i32, i32* %2
%29 = icmp eq i32 3, %28
br i1 %29, label %30, label %41
30: ; preds = %27
%31 = load i32, i32* %2
%32 = icmp eq i32 3, %31
br i1 %32, label %33, label %34
33: ; preds = %30
br label %40
34: ; preds = %30
%35 = load i32, i32* %2
%36 = icmp eq i32 4, %35
br i1 %36, label %37, label %38
37: ; preds = %34
br label %39
38: ; preds = %34
br label %39
39: ; preds = %38, %37
br label %40
40: ; preds = %39, %33
br label %41
41: ; preds = %40, %27
br label %42
42: ; preds = %41, %26
br label %43
43: ; preds = %42, %22
br label %75
44: ; preds = %16
%45 = load i32, i32* %2
%46 = icmp eq i32 1, %45
br i1 %46, label %47, label %48
47: ; preds = %44
br label %74
48: ; preds = %44
%49 = load i32, i32* %2
%50 = icmp eq i32 2, %49
br i1 %50, label %51, label %52
51: ; preds = %48
br label %73
52: ; preds = %48
%53 = load i32, i32* %2
%54 = icmp eq i32 3, %53
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
br label %72
57: ; preds = %52
%58 = load i32, i32* %2
%59 = icmp eq i32 4, %58
br i1 %59, label %60, label %61
60: ; preds = %57
br label %71
61: ; preds = %57
%62 = load i32, i32* %2
%63 = icmp eq i32 5, %62
br i1 %63, label %64, label %65
64: ; preds = %61
br label %70
65: ; preds = %61
%66 = load i32, i32* %2
%67 = icmp eq i32 6, %66
br i1 %67, label %68, label %69
68: ; preds = %65
br label %69
69: ; preds = %68, %65
br label %70
70: ; preds = %69, %64
br label %71
71: ; preds = %70, %60
br label %72
72: ; preds = %71, %55
br label %73
73: ; preds = %72, %51
br label %74
74: ; preds = %73, %47
br label %75
75: ; preds = %74, %43
%76 = load i32, i32* %1
ret i32 %76
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}