#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 *, ...);
scalar_t__ strcmp(char *, char *);
int main() {
  int val1 = 0;
  int val2 = 0;
  int val3 = 0;
  char logic_operator[3];
  printf("It's time to learn logical operators!\n");
  printf("\nPlease choose a value for val1:");
  scanf("%d", &val1);
  printf("\nPlease choose a value for val2:");
  scanf("%d", &val2);
  printf("\nNow, please choose a third value to compare val1 and val2 to:");
  scanf("%d", &val3);
  printf("\nNow please choose a logical operator.");
  printf("\nSelect '&&' or 'and' for AND, '||' or 'or' for OR, or '!' or 'not' "
         "for NOT!");
  printf("\nYour logical selection:");
  scanf("%s", &logic_operator);
  if ((strcmp(logic_operator, "and")) || (strcmp(logic_operator, "&&"))) {
    if (val1 == val3 && val2 == val3) {
      printf("AND successful! Both val1 (%d) and val2 (%d) equals val3 (%d).",
             val1, val2, val3);
    } else {
      printf("AND unsuccessful! Either val1 (%d) or val2 (%d) do not equal "
             "val3 (%d).",
             val1, val2, val3);
    }
  } else if ((strcmp(logic_operator, "||")) || (strcmp(logic_operator, "or"))) {
    if (val1 == val3 || val2 == val3) {
      ("OR successful! Either val1 (%d) or val2 (%d) was equal to val3 (%d)",
       val1, val2, val3);
    } else {
      printf("OR unsuccessful! Both val1 (%d) and val2 (%d) either did or did "
             "not equal val3 (%d)",
             val1, val2, val3);
    }
  } else if ((strcmp(logic_operator, "!")) || (strcmp(logic_operator, "not"))) {
    if (((val1 == val3) != (val2 == val3)) ||
        ((val2 == val3) != (val1 == val3))) {
      printf("NOT successful! Either val1 (%d) or val2 (%d) was equal to val3 "
             "(%d), while the other was not!",
             val1, val2, val3);
    } else {
      printf("NOT unsuccessful. Either both val1 (%d) and val2 (%d) or neither "
             "equaled val3 (%d)",
             val1, val2, val3);
    }
  } else {
    printf("C seems to believe you did not pick an actual logical operator. "
           "Better luck next time");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe91(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
lea    -0x13(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    -0x13(%rbp),%rdi
lea    0xf32(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1232 <main+0x102>
lea    -0x13(%rbp),%rdi
lea    0xf1c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1282 <main+0x152>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1266 <main+0x136>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1266 <main+0x136>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    127d <main+0x14d>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13bd <main+0x28d>
lea    -0x13(%rbp),%rdi
lea    0xf3c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12b6 <main+0x186>
lea    -0x13(%rbp),%rdi
lea    0xf25(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     12ef <main+0x1bf>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
je     12ce <main+0x19e>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    12d3 <main+0x1a3>
jmp    12ea <main+0x1ba>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xf30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13b8 <main+0x288>
lea    -0x13(%rbp),%rdi
lea    0xe23(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1323 <main+0x1f3>
lea    -0x13(%rbp),%rdi
lea    0xf53(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     13a5 <main+0x275>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0xc(%rbp),%ecx
cmp    -0x10(%rbp),%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
jne    136d <main+0x23d>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x8(%rbp),%ecx
cmp    -0x10(%rbp),%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
cmp    %ecx,%eax
je     1389 <main+0x259>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13a0 <main+0x270>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xf31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13b3 <main+0x283>
lea    0xf71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13b8 <main+0x288>
jmp    13bd <main+0x28d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
lea    0x11a4(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea3(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
lea    0x1(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf06(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1231 <main+0xf1>
lea    0xef6(%rip),%rsi
lea    0x1(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1268 <main+0x128>
mov    0xc(%rsp),%esi
mov    0x4(%rsp),%ecx
mov    0x8(%rsp),%edx
cmp    %ecx,%esi
jne    1252 <main+0x112>
cmp    %esi,%edx
jne    1252 <main+0x112>
lea    0xecf(%rip),%rdi
mov    %esi,%edx
mov    %esi,%ecx
jmp    1259 <main+0x119>
lea    0xf01(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
lea    0xf33(%rip),%rsi
lea    0x1(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1294 <main+0x154>
lea    0xf20(%rip),%rsi
lea    0x1(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12b1 <main+0x171>
mov    0xc(%rsp),%esi
mov    0x4(%rsp),%ecx
cmp    %ecx,%esi
je     1260 <main+0x120>
mov    0x8(%rsp),%edx
cmp    %ecx,%edx
je     1260 <main+0x120>
lea    0xef9(%rip),%rdi
jmp    1259 <main+0x119>
lea    0xe3e(%rip),%rsi
lea    0x1(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    12dd <main+0x19d>
lea    0xf2e(%rip),%rsi
lea    0x1(%rsp),%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     130f <main+0x1cf>
mov    0xc(%rsp),%esi
mov    0x4(%rsp),%ecx
cmp    %ecx,%esi
setne  %al
mov    0x8(%rsp),%edx
cmp    %ecx,%edx
sete   %bl
xor    %al,%bl
je     1303 <main+0x1c3>
lea    0xf61(%rip),%rdi
jmp    1259 <main+0x119>
lea    0xef6(%rip),%rdi
jmp    1259 <main+0x119>
lea    0xf9c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1260 <main+0x120>

LLVM IR (-O0):
@.str = [39 x i8] c"It's time to learn logical operators!\0A\00"
@.str.1 = [33 x i8] c"\0APlease choose a value for val1:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [33 x i8] c"\0APlease choose a value for val2:\00"
@.str.4 = [63 x i8] c"\0ANow, please choose a third value to compare val1 and val2 to:\00"
@.str.5 = [39 x i8] c"\0ANow please choose a logical operator.\00"
@.str.6 = [77 x i8] c"\0ASelect '&&' or 'and' for AND, '||' or 'or' for OR, or '!' or 'not' for NOT!\00"
@.str.7 = [25 x i8] c"\0AYour logical selection:\00"
@.str.8 = [3 x i8] c"%s\00"
@.str.9 = [4 x i8] c"and\00"
@.str.10 = [3 x i8] c"&&\00"
@.str.11 = [63 x i8] c"AND successful! Both val1 (%d) and val2 (%d) equals val3 (%d).\00"
@.str.12 = [72 x i8] c"AND unsuccessful! Either val1 (%d) or val2 (%d) do not equal val3 (%d).\00"
@.str.13 = [3 x i8] c"||\00"
@.str.14 = [3 x i8] c"or\00"
@.str.15 = [68 x i8] c"OR successful! Either val1 (%d) or val2 (%d) was equal to val3 (%d)\00"
@.str.16 = [84 x i8] c"OR unsuccessful! Both val1 (%d) and val2 (%d) either did or did not equal val3 (%d)\00"
@.str.17 = [2 x i8] c"!\00"
@.str.18 = [4 x i8] c"not\00"
@.str.19 = [95 x i8] c"NOT successful! Either val1 (%d) or val2 (%d) was equal to val3 (%d), while the other was not!\00"
@.str.20 = [83 x i8] c"NOT unsuccessful. Either both val1 (%d) and val2 (%d) or neither equaled val3 (%d)\00"
@.str.21 = [86 x i8] c"C seems to believe you did not pick an actual logical operator. Better luck next time\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [3 x i8]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), [3 x i8]* %5)
%17 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %0
%21 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %43
24: ; preds = %20, %0
%25 = load i32, i32* %2
%26 = load i32, i32* %4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %37
28: ; preds = %24
%29 = load i32, i32* %3
%30 = load i32, i32* %4
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load i32, i32* %2
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i32 %33, i32 %34, i32 %35)
br label %42
37: ; preds = %28, %24
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0), i32 %38, i32 %39, i32 %40)
br label %42
42: ; preds = %37, %32
br label %112
43: ; preds = %20
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp ne i64 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %43
%48 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %69
51: ; preds = %47, %43
%52 = load i32, i32* %2
%53 = load i32, i32* %4
%54 = icmp eq i32 %52, %53
br i1 %54, label %59, label %55
55: ; preds = %51
%56 = load i32, i32* %3
%57 = load i32, i32* %4
%58 = icmp eq i32 %56, %57
br i1 %58, label %59, label %63
59: ; preds = %55, %51
%60 = load i32, i32* %2
%61 = load i32, i32* %3
%62 = load i32, i32* %4
br label %68
63: ; preds = %55
%64 = load i32, i32* %2
%65 = load i32, i32* %3
%66 = load i32, i32* %4
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i64 0, i64 0), i32 %64, i32 %65, i32 %66)
br label %68
68: ; preds = %63, %59
br label %111
69: ; preds = %47
%70 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %77, label %73
73: ; preds = %69
%74 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %108
77: ; preds = %73, %69
%78 = load i32, i32* %2
%79 = load i32, i32* %4
%80 = icmp eq i32 %78, %79
%81 = zext i1 %80 to i32
%82 = load i32, i32* %3
%83 = load i32, i32* %4
%84 = icmp eq i32 %82, %83
%85 = zext i1 %84 to i32
%86 = icmp ne i32 %81, %85
br i1 %86, label %97, label %87
87: ; preds = %77
%88 = load i32, i32* %3
%89 = load i32, i32* %4
%90 = icmp eq i32 %88, %89
%91 = zext i1 %90 to i32
%92 = load i32, i32* %2
%93 = load i32, i32* %4
%94 = icmp eq i32 %92, %93
%95 = zext i1 %94 to i32
%96 = icmp ne i32 %91, %95
br i1 %96, label %97, label %102
97: ; preds = %87, %77
%98 = load i32, i32* %2
%99 = load i32, i32* %3
%100 = load i32, i32* %4
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.19, i64 0, i64 0), i32 %98, i32 %99, i32 %100)
br label %107
102: ; preds = %87
%103 = load i32, i32* %2
%104 = load i32, i32* %3
%105 = load i32, i32* %4
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.20, i64 0, i64 0), i32 %103, i32 %104, i32 %105)
br label %107
107: ; preds = %102, %97
br label %110
108: ; preds = %73
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.21, i64 0, i64 0))
br label %110
110: ; preds = %108, %107
br label %111
111: ; preds = %110, %68
br label %112
112: ; preds = %111, %42
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"\0APlease choose a value for val1:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [33 x i8] c"\0APlease choose a value for val2:\00"
@.str.4 = [63 x i8] c"\0ANow, please choose a third value to compare val1 and val2 to:\00"
@.str.5 = [39 x i8] c"\0ANow please choose a logical operator.\00"
@.str.6 = [77 x i8] c"\0ASelect '&&' or 'and' for AND, '||' or 'or' for OR, or '!' or 'not' for NOT!\00"
@.str.7 = [25 x i8] c"\0AYour logical selection:\00"
@.str.8 = [3 x i8] c"%s\00"
@.str.9 = [4 x i8] c"and\00"
@.str.10 = [3 x i8] c"&&\00"
@.str.11 = [63 x i8] c"AND successful! Both val1 (%d) and val2 (%d) equals val3 (%d).\00"
@.str.12 = [72 x i8] c"AND unsuccessful! Either val1 (%d) or val2 (%d) do not equal val3 (%d).\00"
@.str.13 = [3 x i8] c"||\00"
@.str.14 = [3 x i8] c"or\00"
@.str.16 = [84 x i8] c"OR unsuccessful! Both val1 (%d) and val2 (%d) either did or did not equal val3 (%d)\00"
@.str.17 = [2 x i8] c"!\00"
@.str.18 = [4 x i8] c"not\00"
@.str.19 = [95 x i8] c"NOT successful! Either val1 (%d) or val2 (%d) was equal to val3 (%d), while the other was not!\00"
@.str.20 = [83 x i8] c"NOT unsuccessful. Either both val1 (%d) and val2 (%d) or neither equaled val3 (%d)\00"
@.str.21 = [86 x i8] c"C seems to believe you did not pick an actual logical operator. Better luck next time\00"
@str = [38 x i8] c"It's time to learn logical operators!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [3 x i8]
%5 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%6 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%7 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%8 = getelementptr inbounds [3 x i8], [3 x i8]* %4, i64 0, i64 0
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), [3 x i8]* %4)
%20 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %0
%23 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %36, label %25
25: ; preds = %22, %0
%26 = load i32, i32* %1
%27 = load i32, i32* %3
%28 = icmp eq i32 %26, %27
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, %26
%31 = select i1 %28, i1 %30, i1 false
br i1 %31, label %32, label %34
32: ; preds = %25
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i32 %26, i32 %26, i32 %26)
br label %70
34: ; preds = %25
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0), i32 %26, i32 %29, i32 %27)
br label %70
36: ; preds = %22
%37 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %51, label %42
42: ; preds = %39, %36
%43 = load i32, i32* %1
%44 = load i32, i32* %3
%45 = icmp eq i32 %43, %44
br i1 %45, label %70, label %46
46: ; preds = %42
%47 = load i32, i32* %2
%48 = icmp eq i32 %47, %44
br i1 %48, label %70, label %49
49: ; preds = %46
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i64 0, i64 0), i32 %43, i32 %47, i32 %44)
br label %70
51: ; preds = %39
%52 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %68, label %57
57: ; preds = %54, %51
%58 = load i32, i32* %1
%59 = load i32, i32* %3
%60 = icmp ne i32 %58, %59
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, %59
%63 = xor i1 %60, %62
br i1 %63, label %66, label %64
64: ; preds = %57
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.19, i64 0, i64 0), i32 %58, i32 %61, i32 %59)
br label %70
66: ; preds = %57
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.20, i64 0, i64 0), i32 %58, i32 %61, i32 %59)
br label %70
68: ; preds = %54
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str.21, i64 0, i64 0))
br label %70
70: ; preds = %42, %46, %49, %64, %66, %68, %32, %34
ret i32 0
}