#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*/ write(char *);
int MAIN() {
  int t1, t2;
  float f1, f2;
  t1 = 100;
  t2 = -2;
  f1 = 3.3;
  f2 = -3.3;
  if (1) {
    if (t1 > t2) {
      write("Correct!\n");
      if (f1 > f2) {
        write("Correct!\n");
        if (f1 > 0.0) {
          write("Correct!\n");
        } else {
          write("wrong\n");
        }
      } else {
        write("wrong\n");
      }
      if (t2 < t1) {
        write("Correct!\n");
        if (t2 < 0) {
          write("Correct!\n");
        } else {
          write("wrong\n");
        }
      } else {
        write("wrong\n");
      }
    } else {
      write("wrong\n");
    }
  } else {
    write("wrong\n");
  }
}


x86 assembly (clang, -O0):
<MAIN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x64,-0x8(%rbp)
movl   $0xfffffffe,-0xc(%rbp)
movss  0xed6(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xec5(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    120c <MAIN+0xfc>
lea    0xeb5(%rip),%rdi
call   1030 <write@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    11ab <MAIN+0x9b>
lea    0xe9a(%rip),%rdi
call   1030 <write@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    119a <MAIN+0x8a>
lea    0xe78(%rip),%rdi
call   1030 <write@plt>
jmp    11a6 <MAIN+0x96>
lea    0xe71(%rip),%rdi
call   1030 <write@plt>
jmp    11b7 <MAIN+0xa7>
lea    0xe60(%rip),%rdi
call   1030 <write@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11fb <MAIN+0xeb>
lea    0xe3e(%rip),%rdi
call   1030 <write@plt>
cmpl   $0x0,-0xc(%rbp)
jge    11ea <MAIN+0xda>
lea    0xe28(%rip),%rdi
call   1030 <write@plt>
jmp    11f6 <MAIN+0xe6>
lea    0xe21(%rip),%rdi
call   1030 <write@plt>
jmp    1207 <MAIN+0xf7>
lea    0xe10(%rip),%rdi
call   1030 <write@plt>
jmp    1218 <MAIN+0x108>
lea    0xdff(%rip),%rdi
call   1030 <write@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MAIN>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
call   1030 <write@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
mov    %rbx,%rdi
call   1030 <write@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <write@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Correct!\0A\00"
@.str.1 = [7 x i8] c"wrong\0A\00"
define i32 @MAIN() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
store i32 100, i32* %2
store i32 -2, i32* %3
store float 0x400A666660000000, float* %4
store float 0xC00A666660000000, float* %5
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %42
9: ; preds = %0
%10 = call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = load float, float* %4
%12 = load float, float* %5
%13 = fcmp ogt float %11, %12
br i1 %13, label %14, label %24
14: ; preds = %9
%15 = call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%16 = load float, float* %4
%17 = fpext float %16 to double
%18 = fcmp ogt double %17, 0.000000e+00
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %23
21: ; preds = %14
%22 = call i32 @write(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
br label %26
24: ; preds = %9
%25 = call i32 @write(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %26
26: ; preds = %24, %23
%27 = load i32, i32* %3
%28 = load i32, i32* %2
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %39
30: ; preds = %26
%31 = call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%32 = load i32, i32* %3
%33 = icmp slt i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
br label %38
36: ; preds = %30
%37 = call i32 @write(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
br label %41
39: ; preds = %26
%40 = call i32 @write(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %41
41: ; preds = %39, %38
br label %44
42: ; preds = %0
%43 = call i32 @write(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %44
44: ; preds = %42, %41
%45 = load i32, i32* %1
ret i32 %45
}

LLVM IR (-O2):
@.str = [10 x i8] c"Correct!\0A\00"
define i32 @MAIN() {
%1 = tail call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @write(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}