#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, double);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, float *);
int main(int argc, char *argv[], char *envp[]) {
  float local0;
  double local1;
  double st;
  scanf("%f", &local0);
  printf("a is %f, b is %f\n", 5., local1);
  st = local0;
  if (0x40a00000 == st) {
    puts("Equal");
  }
  st = local0;
  if (0x40a00000 != st) {
    puts("Not Equal");
  }
  st = local0;
  if (5. > st) {
    puts("Greater");
  }
  st = local0;
  if (st >= 5.) {
    puts("Less or Equal");
  }
  st = local0;
  if (5. >= st) {
    puts("Greater or Equal");
  }
  st = local0;
  if (st > 5.) {
    puts("Less");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xebf(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xead(%rip),%rdi
mov    $0x5,%esi
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe7a(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jne    11a3 <main+0x73>
jp     11a3 <main+0x73>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe47(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jne    11cf <main+0x9f>
jp     11cf <main+0x9f>
jmp    11db <main+0xab>
lea    0xe4f(%rip),%rdi
call   1030 <puts@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe17(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    1208 <main+0xd8>
lea    0xe2c(%rip),%rdi
call   1030 <puts@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xde5(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1239 <main+0x109>
lea    0xe03(%rip),%rdi
call   1030 <puts@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xdb9(%rip),%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     1266 <main+0x136>
lea    0xde4(%rip),%rdi
call   1030 <puts@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xd87(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1297 <main+0x167>
lea    0xdc4(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed0(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
lea    0xec2(%rip),%rdi
mov    $0x5,%esi
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xea0(%rip),%xmm0
jne    1176 <main+0x46>
jp     1176 <main+0x46>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe83(%rip),%xmm0
jne    1181 <main+0x51>
jnp    11bb <main+0x8b>
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
movss  0xe69(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    11b2 <main+0x82>
lea    0xe80(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe4b(%rip),%xmm0
jb     11cd <main+0x9d>
lea    0xe6d(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
movss  0xe2f(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     11ec <main+0xbc>
lea    0xe5c(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe11(%rip),%xmm0
jbe    1201 <main+0xd1>
lea    0xe52(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [18 x i8] c"a is %f, b is %f\0A\00"
@.str.2 = [6 x i8] c"Equal\00"
@.str.3 = [10 x i8] c"Not Equal\00"
@.str.4 = [8 x i8] c"Greater\00"
@.str.5 = [14 x i8] c"Less or Equal\00"
@.str.6 = [17 x i8] c"Greater or Equal\00"
@.str.7 = [5 x i8] c"Less\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca float
%9 = alloca double
%10 = alloca double
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %8)
%12 = load double, double* %9
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 5, double %12)
%14 = load float, float* %8
%15 = fpext float %14 to double
store double %15, double* %10
%16 = load double, double* %10
%17 = fcmp oeq double 0x41D0280000000000, %16
br i1 %17, label %18, label %20
18: ; preds = %3
%19 = call i32 @puts(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %20
20: ; preds = %18, %3
%21 = load float, float* %8
%22 = fpext float %21 to double
store double %22, double* %10
%23 = load double, double* %10
%24 = fcmp une double 0x41D0280000000000, %23
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %20
%28 = load float, float* %8
%29 = fpext float %28 to double
store double %29, double* %10
%30 = load double, double* %10
%31 = fcmp ogt double 5.000000e+00, %30
br i1 %31, label %32, label %34
32: ; preds = %27
%33 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %34
34: ; preds = %32, %27
%35 = load float, float* %8
%36 = fpext float %35 to double
store double %36, double* %10
%37 = load double, double* %10
%38 = fcmp oge double %37, 5.000000e+00
br i1 %38, label %39, label %41
39: ; preds = %34
%40 = call i32 @puts(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %41
41: ; preds = %39, %34
%42 = load float, float* %8
%43 = fpext float %42 to double
store double %43, double* %10
%44 = load double, double* %10
%45 = fcmp oge double 5.000000e+00, %44
br i1 %45, label %46, label %48
46: ; preds = %41
%47 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
br label %48
48: ; preds = %46, %41
%49 = load float, float* %8
%50 = fpext float %49 to double
store double %50, double* %10
%51 = load double, double* %10
%52 = fcmp ogt double %51, 5.000000e+00
br i1 %52, label %53, label %55
53: ; preds = %48
%54 = call i32 @puts(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %55
55: ; preds = %53, %48
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [18 x i8] c"a is %f, b is %f\0A\00"
@.str.2 = [6 x i8] c"Equal\00"
@.str.3 = [10 x i8] c"Not Equal\00"
@.str.4 = [8 x i8] c"Greater\00"
@.str.5 = [14 x i8] c"Less or Equal\00"
@.str.6 = [17 x i8] c"Greater or Equal\00"
@.str.7 = [5 x i8] c"Less\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = alloca float
%5 = bitcast float* %4 to i8*
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%7 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 5, double undef)
%8 = load float, float* %4
%9 = fcmp oeq float %8, 0x41D0280000000000
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = load float, float* %4
br label %13
13: ; preds = %10, %3
%14 = phi float [ %12, %10 ], [ %8, %3 ]
%15 = fcmp une float %14, 0x41D0280000000000
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%18 = load float, float* %4
%19 = fcmp olt float %18, 5.000000e+00
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%22 = load float, float* %4
br label %23
23: ; preds = %20, %16
%24 = phi float [ %22, %20 ], [ %18, %16 ]
%25 = fcmp ult float %24, 5.000000e+00
br i1 %25, label %29, label %26
26: ; preds = %13, %23
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%28 = load float, float* %4
br label %29
29: ; preds = %26, %23
%30 = phi float [ %28, %26 ], [ %24, %23 ]
%31 = fcmp ugt float %30, 5.000000e+00
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%34 = load float, float* %4
br label %35
35: ; preds = %32, %29
%36 = phi float [ %34, %32 ], [ %30, %29 ]
%37 = fcmp ogt float %36, 5.000000e+00
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %38, %35
ret i32 0
}