#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 *);
int main() {
  int x, y;
  printf("Enter values for x and y: ");
  scanf("%d%d", &x, &y);
  if (y == 8) {
    if (x == 5)
      printf("@@@@@\n");
  } else
    printf("#####\n");
  printf("$$$$$\n");
  printf("&&&&&\n");
  printf("--------------------------------------\n\n");
  if (y == 8) {
    if (x == 5)
      printf("@@@@@\n");
  } else {
    printf("#####\n");
    printf("$$$$$\n");
    printf("&&&&&\n");
  }
  printf("--------------------------------------\n\n");
  if (y == 8) {
    if (x == 5)
      printf("@@@@@\n");
  } else {
    printf("#####\n");
    printf("$$$$$\n");
  }
  printf("&&&&&\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
cmpl   $0x8,-0xc(%rbp)
jne    1174 <main+0x54>
cmpl   $0x5,-0x8(%rbp)
jne    116f <main+0x4f>
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
jmp    1180 <main+0x60>
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0xc(%rbp)
jne    11c9 <main+0xa9>
cmpl   $0x5,-0x8(%rbp)
jne    11c4 <main+0xa4>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
jmp    11ed <main+0xcd>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
call   1030 <printf@plt>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0xc(%rbp)
jne    121e <main+0xfe>
cmpl   $0x5,-0x8(%rbp)
jne    1219 <main+0xf9>
lea    0xe0c(%rip),%rdi
call   1030 <printf@plt>
jmp    1236 <main+0x116>
lea    0xe02(%rip),%rdi
call   1030 <printf@plt>
lea    0xdfd(%rip),%rdi
call   1030 <printf@plt>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed4(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1050 <scanf@plt>
cmpl   $0x8,(%rsp)
jne    116a <main+0x3a>
cmpl   $0x5,0x4(%rsp)
jne    1176 <main+0x46>
lea    0xef2(%rip),%rdi
jmp    1171 <main+0x41>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe85(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x8,(%rsp)
jne    11b6 <main+0x86>
cmpl   $0x5,0x4(%rsp)
jne    11d6 <main+0xa6>
lea    0xea6(%rip),%rbx
jmp    11ce <main+0x9e>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe85(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe43(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x8,(%rsp)
jne    11f8 <main+0xc8>
cmpl   $0x5,0x4(%rsp)
jne    120c <main+0xdc>
lea    0xe64(%rip),%r14
jmp    1204 <main+0xd4>
lea    0xe49(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xe41(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [27 x i8] c"Enter values for x and y: \00"
@.str.1 = [5 x i8] c"%d%d\00"
@str.13 = [40 x i8] c"--------------------------------------\0A\00"
@str.14 = [6 x i8] c"#####\00"
@str.15 = [6 x i8] c"$$$$$\00"
@str.16 = [6 x i8] c"&&&&&\00"
@str.19 = [6 x i8] c"@@@@@\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2)
%7 = load i32, i32* %2
%8 = icmp eq i32 %7, 8
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 5
br i1 %11, label %12, label %15
12: ; preds = %0, %9
%13 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.19, i64 0, i64 0), %9 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0), %0 ]
%14 = call i32 @puts(i8* dereferenceable(1) %13)
br label %15
15: ; preds = %12, %9
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.15, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.16, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.13, i64 0, i64 0))
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 8
br i1 %20, label %21, label %24
21: ; preds = %15
%22 = load i32, i32* %1
%23 = icmp eq i32 %22, 5
br i1 %23, label %27, label %30
24: ; preds = %15
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.15, i64 0, i64 0))
br label %27
27: ; preds = %21, %24
%28 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.16, i64 0, i64 0), %24 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.19, i64 0, i64 0), %21 ]
%29 = call i32 @puts(i8* dereferenceable(1) %28)
br label %30
30: ; preds = %27, %21
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.13, i64 0, i64 0))
%32 = load i32, i32* %2
%33 = icmp eq i32 %32, 8
br i1 %33, label %34, label %37
34: ; preds = %30
%35 = load i32, i32* %1
%36 = icmp eq i32 %35, 5
br i1 %36, label %39, label %42
37: ; preds = %30
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.14, i64 0, i64 0))
br label %39
39: ; preds = %34, %37
%40 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.15, i64 0, i64 0), %37 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.19, i64 0, i64 0), %34 ]
%41 = call i32 @puts(i8* dereferenceable(1) %40)
br label %42
42: ; preds = %39, %34
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.16, i64 0, i64 0))
ret i32 0
}