#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 a = 0;
  int b = 20;
  int c = 30;
  if (a > 0 || b < 50) {
    printf("1 Pass\n");
  } else {
    printf("1 Wrong\n");
  }
  if (a > 0 || b > 50) {
    printf("1' Wrong\n");
  } else {
    printf("1' Pass\n");
  }
  if (a <= 0 && b < 50) {
    printf("2 Pass\n");
  } else {
    printf("2 Wrong\n");
  }
  if (a > 0 && b < 50) {
    printf("2' Wrong\n");
  } else {
    printf("2' Pass\n");
  }
  if (a >= 0 || b < 50 && c < 10) {
    printf("3 Pass\n");
  } else {
    printf("3 Wrong\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x14,-0xc(%rbp)
movl   $0x1e,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1148 <main+0x38>
cmpl   $0x32,-0xc(%rbp)
jge    1159 <main+0x49>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
jmp    1165 <main+0x55>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jg     1179 <main+0x69>
cmpl   $0x32,-0xc(%rbp)
jle    118a <main+0x7a>
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
jmp    1196 <main+0x86>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jg     11bb <main+0xab>
cmpl   $0x32,-0xc(%rbp)
jge    11bb <main+0xab>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
jmp    11c7 <main+0xb7>
lea    0xe6a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    11ec <main+0xdc>
cmpl   $0x32,-0xc(%rbp)
jge    11ec <main+0xdc>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
jmp    11f8 <main+0xe8>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jge    1216 <main+0x106>
cmpl   $0x32,-0xc(%rbp)
jge    1227 <main+0x117>
cmpl   $0xa,-0x10(%rbp)
jge    1227 <main+0x117>
lea    0xe2b(%rip),%rdi
call   1030 <printf@plt>
jmp    1233 <main+0x123>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rdi
call   1030 <puts@plt>
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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