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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    0xecf(%rip),%rdi
lea    -0x44(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
lea    0xeb8(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe88(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    1197 <main+0x77>
jp     1197 <main+0x77>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe53(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jne    11c3 <main+0xa3>
jp     11c3 <main+0xa3>
jmp    11d1 <main+0xb1>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe21(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1200 <main+0xe0>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xdea(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    1235 <main+0x115>
jp     1235 <main+0x115>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xdb5(%rip),%xmm0
ucomisd -0x20(%rbp),%xmm0
jne    126a <main+0x14a>
jp     126a <main+0x14a>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xd83(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    129d <main+0x17d>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
add    $0xffffffffffffffec,%rax
add    $0x50,%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    $0x2,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xea3(%rip),%xmm0
jne    1173 <main+0x43>
jp     1173 <main+0x43>
lea    0xec5(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe86(%rip),%xmm0
jne    117e <main+0x4e>
jnp    11ba <main+0x8a>
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
movss  0xe6c(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    11af <main+0x7f>
lea    0xe9d(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe4a(%rip),%xmm0
jne    11cc <main+0x9c>
jp     11cc <main+0x9c>
lea    0xe72(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe2d(%rip),%xmm0
jne    11e9 <main+0xb9>
jp     11e9 <main+0xb9>
lea    0xe44(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xe14(%rip),%xmm0
jbe    11fe <main+0xce>
lea    0xe24(%rip),%rdi
call   1030 <puts@plt>
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 = [7 x i8] c"Equal\0A\00"
@.str.3 = [11 x i8] c"Not Equal\0A\00"
@.str.4 = [9 x i8] c"Greater\0A\00"
@.str.5 = [15 x i8] c"Less or Equal\0A\00"
@.str.6 = [18 x i8] c"Greater or Equal\0A\00"
@.str.7 = [6 x i8] c"Less\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca double
%9 = alloca double
%10 = alloca i8*
%11 = alloca double
%12 = alloca double
%13 = alloca float
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %13)
%15 = load double, double* %11
%16 = load double, double* %12
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %15, double %16)
%18 = load float, float* %13
%19 = fpext float %18 to double
store double %19, double* %8
%20 = load double, double* %8
%21 = fcmp oeq double 0x41D0280000000000, %20
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %24
24: ; preds = %22, %3
%25 = load float, float* %13
%26 = fpext float %25 to double
store double %26, double* %9
%27 = load double, double* %9
%28 = fcmp une double 0x41D0280000000000, %27
br i1 %28, label %29, label %31
29: ; preds = %24
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %31
31: ; preds = %29, %24
%32 = load float, float* %13
%33 = fpext float %32 to double
store double %33, double* %9
%34 = load double, double* %9
%35 = fcmp ogt double 5.000000e+00, %34
br i1 %35, label %36, label %38
36: ; preds = %31
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %38
38: ; preds = %36, %31
%39 = load float, float* %13
%40 = fpext float %39 to double
store double %40, double* %8
%41 = load double, double* %8
%42 = fcmp oeq double 0x41D0280000000000, %41
br i1 %42, label %43, label %45
43: ; preds = %38
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
br label %45
45: ; preds = %43, %38
%46 = load float, float* %13
%47 = fpext float %46 to double
store double %47, double* %8
%48 = load double, double* %8
%49 = fcmp oeq double 0x41D0280000000000, %48
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
br label %52
52: ; preds = %50, %45
%53 = load float, float* %13
%54 = fpext float %53 to double
store double %54, double* %9
%55 = load double, double* %9
%56 = fcmp olt double 5.000000e+00, %55
br i1 %56, label %57, label %59
57: ; preds = %52
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %59
59: ; preds = %57, %52
%60 = load i8*, i8** %10
%61 = getelementptr i8, i8* %60, i64 -20
%62 = ptrtoint i8* %61 to i32
ret i32 %62
}

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 = [5 x i8] c"Less\00"
@str.8 = [17 x i8] c"Greater or Equal\00"
@str.9 = [14 x i8] c"Less or Equal\00"
@str.10 = [8 x i8] c"Greater\00"
@str.11 = [10 x i8] c"Not Equal\00"
@str.12 = [6 x i8] c"Equal\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 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double undef, 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.12, 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.11, 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.10, 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 oeq float %24, 0x41D0280000000000
br i1 %25, label %26, label %29
26: ; preds = %13, %23
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.9, 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 oeq float %30, 0x41D0280000000000
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.8, 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, i64 0, i64 0))
br label %40
40: ; preds = %38, %35
ret i32 undef
}