#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*/ puts(char *);
int main(void) {
  int y = 8;
  int x = 5;
  if (y == 8) {
    if (x == 5) {
      puts("@@@@");
    } else
      puts("#####");
    puts("$$$$$");
  }
  puts("&&&&&");
  puts("");
  y = 8;
  x = 5;
  if (y == 8) {
    if (x == 5)
      puts("@@@@");
  } else {
    puts("#####");
    puts("$$$$$");
    puts("&&&&&");
  }
  puts("");
  y = 8;
  x = 5;
  if (y == 8) {
    if (x == 5) {
      puts("@@@@");
    }
  } else {
    puts("#####");
    puts("$$$$$");
  }
  puts("&&&&&");
  puts("");
  y = 7;
  x = 5;
  if (y == 8) {
    if (x == 5) {
      puts("@@@@");
    }
  } else
    puts("#####");
  puts("$$$$$");
  puts("&&&&&");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x8,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
cmpl   $0x8,-0x8(%rbp)
jne    116a <main+0x5a>
cmpl   $0x5,-0xc(%rbp)
jne    1152 <main+0x42>
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
jmp    115e <main+0x4e>
lea    0xeac(%rip),%rdi
call   1030 <puts@plt>
lea    0xea6(%rip),%rdi
call   1030 <puts@plt>
lea    0xea0(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8d(%rip),%rdi
call   1030 <puts@plt>
movl   $0x8,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
cmpl   $0x8,-0x8(%rbp)
jne    11b5 <main+0xa5>
cmpl   $0x5,-0xc(%rbp)
jne    11b0 <main+0xa0>
lea    0xe55(%rip),%rdi
call   1030 <puts@plt>
jmp    11d9 <main+0xc9>
lea    0xe49(%rip),%rdi
call   1030 <puts@plt>
lea    0xe43(%rip),%rdi
call   1030 <puts@plt>
lea    0xe3d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2a(%rip),%rdi
call   1030 <puts@plt>
movl   $0x8,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
cmpl   $0x8,-0x8(%rbp)
jne    1218 <main+0x108>
cmpl   $0x5,-0xc(%rbp)
jne    1213 <main+0x103>
lea    0xdf2(%rip),%rdi
call   1030 <puts@plt>
jmp    1230 <main+0x120>
lea    0xde6(%rip),%rdi
call   1030 <puts@plt>
lea    0xde0(%rip),%rdi
call   1030 <puts@plt>
lea    0xdda(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc7(%rip),%rdi
call   1030 <puts@plt>
movl   $0x7,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
cmpl   $0x8,-0x8(%rbp)
jne    127b <main+0x16b>
cmpl   $0x5,-0xc(%rbp)
jne    1276 <main+0x166>
lea    0xd8f(%rip),%rdi
call   1030 <puts@plt>
jmp    1287 <main+0x177>
lea    0xd83(%rip),%rdi
call   1030 <puts@plt>
lea    0xd7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xd77(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xed4(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xed0(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xec7(%rip),%r15
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe76(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"@@@@\00"
@.str.1 = [6 x i8] c"#####\00"
@.str.2 = [6 x i8] c"$$$$$\00"
@.str.3 = [6 x i8] c"&&&&&\00"
@.str.4 = [1 x i8] zeroinitializer
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 8, i32* %2
store i32 5, i32* %3
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 8
br i1 %5, label %6, label %15
6: ; preds = %0
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 5
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %13
11: ; preds = %6
%12 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %9
%14 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %15
15: ; preds = %13, %0
%16 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
store i32 8, i32* %2
store i32 5, i32* %3
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 8
br i1 %19, label %20, label %26
20: ; preds = %15
%21 = load i32, i32* %3
%22 = icmp eq i32 %21, 5
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
br label %30
26: ; preds = %15
%27 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %30
30: ; preds = %26, %25
%31 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
store i32 8, i32* %2
store i32 5, i32* %3
%32 = load i32, i32* %2
%33 = icmp eq i32 %32, 8
br i1 %33, label %34, label %40
34: ; preds = %30
%35 = load i32, i32* %3
%36 = icmp eq i32 %35, 5
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %39
39: ; preds = %37, %34
br label %43
40: ; preds = %30
%41 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %43
43: ; preds = %40, %39
%44 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%45 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0))
store i32 7, i32* %2
store i32 5, i32* %3
%46 = load i32, i32* %2
%47 = icmp eq i32 %46, 8
br i1 %47, label %48, label %54
48: ; preds = %43
%49 = load i32, i32* %3
%50 = icmp eq i32 %49, 5
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %53
53: ; preds = %51, %48
br label %56
54: ; preds = %43
%55 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %56
56: ; preds = %54, %53
%57 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%58 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"@@@@\00"
@.str.1 = [6 x i8] c"#####\00"
@.str.2 = [6 x i8] c"$$$$$\00"
@.str.3 = [6 x i8] c"&&&&&\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}