#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};
  c = a <= b;
  print("c  1");
  printid(c);
  c = d[0] <= d[1];
  print("c  0");
  printid(c);
  c = d[0] <= m[0];
  print("c  0");
  printid(c);
  c = m[0] <= m[1];
  print("c  1");
  printid(c);
  m[1] = 2.0;
  c = m[1] <= d[1];
  print("c  1");
  printid(c);
  char m2[2] = {'a', 'b'};
  c = m2[1] <= m2[0];
  print("c  0");
  printid(c);
  c = m2[0] <= m2[1];
  print("c  1");
  printid(c);
  m2[0] = m2[1];
  c = m2[1] <= m2[0];
  print("c  1");
  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    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xea9(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe89(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
cvtsi2ssl -0x18(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe5d(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movss  -0x20(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xe2c(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
movss  0xe03(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x1c(%rbp),%xmm1
cvtsi2ssl -0x14(%rbp),%xmm0
ucomiss %xmm1,%xmm0
setae  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xdf3(%rip),%rdi
call   1030 <print@plt>
mov    -0x10(%rbp),%edi
call   1040 <printid@plt>
mov    0xde9(%rip),%ax
mov    %ax,-0x22(%rbp)
movsbl -0x21(%rbp),%eax
movsbl -0x22(%rbp),%ecx
cmp    %ecx,%eax
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xdc4(%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
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xd96(%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
setle  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x10(%rbp)
lea    0xd67(%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>
mov    $0x1,%edi
call   1040 <printid@plt>
lea    0xec1(%rip),%r14
mov    %r14,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %r14,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %r14,%rdi
call   1030 <print@plt>
xor    %edi,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x1,%edi
call   1040 <printid@plt>
mov    %rbx,%rdi
call   1030 <print@plt>
mov    $0x1,%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]
@.str = [5 x i8] c"c 1\00"
@.str.1 = [5 x i8] c"c 0\00"
@__const.main.m2 = [2 x i8] c"ab"
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 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = icmp sle i32 %10, %11
%13 = zext i1 %12 to i32
store i32 %13, i32* %4
%14 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%15 = load i32, i32* %4
%16 = call i32 @printid(i32 %15)
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%18 = load i32, i32* %17
%19 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%20 = load i32, i32* %19
%21 = icmp sle i32 %18, %20
%22 = zext i1 %21 to i32
store i32 %22, i32* %4
%23 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%24 = load i32, i32* %4
%25 = call i32 @printid(i32 %24)
%26 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%27 = load i32, i32* %26
%28 = sitofp i32 %27 to float
%29 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 0
%30 = load float, float* %29
%31 = fcmp ole float %28, %30
%32 = zext i1 %31 to i32
store i32 %32, i32* %4
%33 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%34 = load i32, i32* %4
%35 = call i32 @printid(i32 %34)
%36 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 0
%37 = load float, float* %36
%38 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
%39 = load float, float* %38
%40 = fcmp ole float %37, %39
%41 = zext i1 %40 to i32
store i32 %41, i32* %4
%42 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%43 = load i32, i32* %4
%44 = call i32 @printid(i32 %43)
%45 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
store float 2.000000e+00, float* %45
%46 = getelementptr inbounds [2 x float], [2 x float]* %6, i64 0, i64 1
%47 = load float, float* %46
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 1
%49 = load i32, i32* %48
%50 = sitofp i32 %49 to float
%51 = fcmp ole float %47, %50
%52 = zext i1 %51 to i32
store i32 %52, i32* %4
%53 = call i32 @print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%54 = load i32, i32* %4
%55 = call i32 @printid(i32 %54)
%56 = bitcast [2 x i8]* %7 to i8*
%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 sle 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 sle 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 sle 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 1\00"
@.str.1 = [5 x i8] c"c 0\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 1)
%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 0)
%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 0)
%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 1)
%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 1)
%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 0)
%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 1)
%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 1)
ret i32 0
}