#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*/ print(char *);
int /*<<< orphan*/ printid(int);
int main() {
  int a = 2, b = 3, c;
  int d[2] = {4, 2};
  float m[2] = {1.5, 2.5};
  char m2[2] = {'a', 'b'};
  c = a > b;
  print("c  0");
  printid(c);
  c = d[0] > d[1];
  print("c  1");
  printid(c);
  c = d[0] > m[0];
  print("c  1");
  printid(c);
  c = m[0] > m[1];
  print("c  0");
  printid(c);
  m[1] = 2.0;
  c = m[1] > d[1];
  print("c  0");
  printid(c);
  c = m2[1] > m2[0];
  print("c  1");
  printid(c);
  c = m2[0] > m2[1];
  print("c  0");
  printid(c);
  m2[0] = m2[1];
  c = m2[1] > m2[0];
  print("c  0");
  printid(c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xebd(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeba(%rip),%ax
mov    %ax,-0x22(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xea0(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe80(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
cvtsi2ssl -0x18(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe58(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movss  -0x20(%rbp),%xmm0
ucomiss -0x1c(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe2b(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movss  0xe00(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtsi2ssl -0x14(%rbp),%xmm1
ucomiss %xmm1,%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xdf2(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movsbl -0x21(%rbp),%eax
movsbl -0x22(%rbp),%ecx
cmp    %ecx,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xdce(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movsbl -0x22(%rbp),%eax
movsbl -0x21(%rbp),%ecx
cmp    %ecx,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xda0(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
mov    -0x21(%rbp),%al
mov    %al,-0x22(%rbp)
movsbl -0x21(%rbp),%eax
movsbl -0x22(%rbp),%ecx
cmp    %ecx,%eax
setg   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xd71(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%rbx
mov    %rbx,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
lea    0xec4(%rip),%r14
mov    %r14,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %r14,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %r14,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.d = [2 x i32] [i32 4, i32 2]
@__const.main.m = [2 x float] [float 1.500000e+00, float 2.500000e+00]
@__const.main.m2 = [2 x i8] c"ab"
@.str = [5 x i8] c"c 0\00"
@.str.1 = [5 x i8] c"c 1\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [2 x i32]
%6 = alloca [2 x float]
%7 = alloca [2 x i8]
store i32 0, i32* %1
store i32 2, i32* %2
store i32 3, i32* %3
%8 = bitcast [2 x i32]* %5 to i8*
%9 = bitcast [2 x float]* %6 to i8*
%10 = bitcast [2 x i8]* %7 to i8*
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = icmp sgt i32 %11, %12
%14 = zext i1 %13 to i32
store i32 %14, i32* %4
%15 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* %4
%17 = call i32 @printid(i32 %16)
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%19 = load i32, i32* %18
%20 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%21 = load i32, i32* %20
%22 = icmp sgt i32 %19, %21
%23 = zext i1 %22 to i32
store i32 %23, i32* %4
%24 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%25 = load i32, i32* %4
%26 = call i32 @printid(i32 %25)
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%28 = load i32, i32* %27
%29 = sitofp i32 %28 to float
%30 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 0
%31 = load float, float* %30
%32 = fcmp ogt float %29, %31
%33 = zext i1 %32 to i32
store i32 %33, i32* %4
%34 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%35 = load i32, i32* %4
%36 = call i32 @printid(i32 %35)
%37 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 0
%38 = load float, float* %37
%39 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
%40 = load float, float* %39
%41 = fcmp ogt float %38, %40
%42 = zext i1 %41 to i32
store i32 %42, i32* %4
%43 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%44 = load i32, i32* %4
%45 = call i32 @printid(i32 %44)
%46 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
store float 2.000000e+00, float* %46
%47 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
%48 = load float, float* %47
%49 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%50 = load i32, i32* %49
%51 = sitofp i32 %50 to float
%52 = fcmp ogt float %48, %51
%53 = zext i1 %52 to i32
store i32 %53, i32* %4
%54 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%55 = load i32, i32* %4
%56 = call i32 @printid(i32 %55)
%57 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 1
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp sgt i32 %59, %62
%64 = zext i1 %63 to i32
store i32 %64, i32* %4
%65 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%66 = load i32, i32* %4
%67 = call i32 @printid(i32 %66)
%68 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 1
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp sgt i32 %70, %73
%75 = zext i1 %74 to i32
store i32 %75, i32* %4
%76 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%77 = load i32, i32* %4
%78 = call i32 @printid(i32 %77)
%79 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 1
%80 = load i8, i8* %79
%81 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
store i8 %80, i8* %81
%82 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 1
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = getelementptr inbounds [2 x i8], [2 x i8]* %7, i64 0, i64 0
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = icmp sgt i32 %84, %87
%89 = zext i1 %88 to i32
store i32 %89, i32* %4
%90 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%91 = load i32, i32* %4
%92 = call i32 @printid(i32 %91)
ret i32 0
}

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