#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 /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int a, b, c, d, e, f;
  printf(">: ");
  scanf("%i", &a);
  {
    while (a != 4)
      printf(" System failure        ");
  }
  scanf("%i", &b);
  {
    while (b != 8)
      printf(" System failure        ");
  }
  scanf("%i", &c);
  {
    while (c != 15)
      printf(" System failure        ");
  }
  scanf("%i", &d);
  {
    while (d != 16)
      printf(" System failure        ");
  }
  scanf("%i", &e);
  {
    while (b != 23)
      printf(" System failure        ");
  }
  scanf("%i", &f);
  {
    while (f != 42)
      printf(" System failure        ");
  }
  {
    if (a == 4)
      if (b == 8)
        if (c == 15)
          if (d == 16)
            if (e == 23)
              if (f == 42)
                printf("Code accepted");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x4,-0x8(%rbp)
je     1166 <main+0x46>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
jmp    114b <main+0x2b>
lea    0xe97(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x8,-0xc(%rbp)
je     1191 <main+0x71>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
jmp    1176 <main+0x56>
lea    0xe6c(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xf,-0x10(%rbp)
je     11bc <main+0x9c>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    11a1 <main+0x81>
lea    0xe41(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x10,-0x14(%rbp)
je     11e7 <main+0xc7>
lea    0xe2a(%rip),%rdi
call   1030 <printf@plt>
jmp    11cc <main+0xac>
lea    0xe16(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x17,-0xc(%rbp)
je     1212 <main+0xf2>
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
jmp    11f7 <main+0xd7>
lea    0xdeb(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x2a,-0x1c(%rbp)
je     123d <main+0x11d>
lea    0xdd4(%rip),%rdi
call   1030 <printf@plt>
jmp    1222 <main+0x102>
cmpl   $0x4,-0x8(%rbp)
jne    129e <main+0x17e>
cmpl   $0x8,-0xc(%rbp)
jne    1299 <main+0x179>
cmpl   $0xf,-0x10(%rbp)
jne    1294 <main+0x174>
cmpl   $0x10,-0x14(%rbp)
jne    128f <main+0x16f>
cmpl   $0x17,-0x18(%rbp)
jne    128a <main+0x16a>
cmpl   $0x2a,-0x1c(%rbp)
jne    1285 <main+0x165>
lea    0xd9f(%rip),%rdi
call   1030 <printf@plt>
jmp    128a <main+0x16a>
jmp    128f <main+0x16f>
jmp    1294 <main+0x174>
jmp    1299 <main+0x179>
jmp    129e <main+0x17e>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
lea    0x14(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x4,0x14(%rsp)
je     115f <main+0x3f>
lea    0xeb7(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0x4,0x14(%rsp)
jne    1150 <main+0x30>
lea    0xe9e(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x8,0x8(%rsp)
je     118f <main+0x6f>
lea    0xe89(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0x8,0x8(%rsp)
jne    1180 <main+0x60>
lea    0xe6e(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0xf,0x10(%rsp)
je     11bf <main+0x9f>
lea    0xe59(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0xf,0x10(%rsp)
jne    11b0 <main+0x90>
lea    0xe3e(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x10,0xc(%rsp)
je     11ef <main+0xcf>
lea    0xe29(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0x10,0xc(%rsp)
jne    11e0 <main+0xc0>
lea    0xe0e(%rip),%rdi
lea    0x1c(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x17,0x8(%rsp)
je     121f <main+0xff>
lea    0xdf9(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0x17,0x8(%rsp)
jne    1210 <main+0xf0>
lea    0xdde(%rip),%rdi
lea    0x18(%rsp),%rsi
call   1040 <scanf@plt>
cmpl   $0x2a,0x18(%rsp)
je     124f <main+0x12f>
lea    0xdc9(%rip),%rbx
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <printf@plt>
cmpl   $0x2a,0x18(%rsp)
jne    1240 <main+0x120>
cmpl   $0x4,0x14(%rsp)
jne    127e <main+0x15e>
cmpl   $0x8,0x8(%rsp)
jne    127e <main+0x15e>
cmpl   $0xf,0x10(%rsp)
jne    127e <main+0x15e>
cmpl   $0x10,0xc(%rsp)
jne    127e <main+0x15e>
cmpl   $0x17,0x1c(%rsp)
jne    127e <main+0x15e>
lea    0xda6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

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

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