#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 */
typedef int /*<<< orphan*/ buf0;

/* Variables and functions */
float atof(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int main() {
  char buf0[10];
  float var0;
  fgets(buf0, sizeof(buf0), stdin);
  var0 = atof(buf0);
  printf("%f\n", var0);
  if (var0 < 37.35928559) {
    printf("Too low just like you're chances of reaching the bottom.\n");
    exit(0);
  }
  if (var0 > 37.35928559) {
    printf("To high just like your hopes of reaching the bottom.\n");
    exit(0);
  }
  if (var0 != var0) {
    printf("Someone's getting creative\n");
    exit(0);
  } else {
    printf("Oh wait, there might be a bottom to this. Level cleared\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0xa(%rbp),%rdi
mov    0x2e95(%rip),%rax
mov    (%rax),%edx
mov    $0xa,%esi
call   1050 <fgets@plt>
lea    -0xa(%rbp),%rdi
call   1030 <atof@plt>
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe8b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe6b(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    11b4 <main+0x74>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe3b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11e4 <main+0xa4>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    11fe <main+0xbe>
jp     11fe <main+0xbe>
jmp    1213 <main+0xd3>
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
lea    0xe7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    0x2e8c(%rip),%rax
mov    (%rax),%edx
lea    0x16(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1060 <fgets@plt>
mov    %rbx,%rdi
call   1040 <atof@plt>
movss  %xmm0,0x4(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xe79(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0xe62(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm0
ja     11d7 <main+0x87>
movapd %xmm1,%xmm0
ucomisd 0xe4a(%rip),%xmm1
ja     11e0 <main+0x90>
movss  0x4(%rsp),%xmm0
ucomiss %xmm0,%xmm0
jp     11e9 <main+0x99>
lea    0xe42(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
lea    0xeb6(%rip),%rdi
jmp    11f0 <main+0xa0>
lea    0xe78(%rip),%rdi
jmp    11f0 <main+0xa0>
lea    0xe54(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@stdin = global i32 0
@.str = [4 x i8] c"%f\0A\00"
@.str.1 = [58 x i8] c"Too low just like you're chances of reaching the bottom.\0A\00"
@.str.2 = [54 x i8] c"To high just like your hopes of reaching the bottom.\0A\00"
@.str.3 = [28 x i8] c"Someone's getting creative\0A\00"
@.str.4 = [57 x i8] c"Oh wait, there might be a bottom to this. Level cleared\0A\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca float
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%4 = load i32, i32* @stdin
%5 = call i32 @fgets(i8* %3, i32 10, i32 %4)
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%7 = call float @atof(i8* %6)
store float %7, float* %2
%8 = load float, float* %2
%9 = fpext float %8 to double
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %9)
%11 = load float, float* %2
%12 = fpext float %11 to double
%13 = fcmp olt double %12, 0x4042ADFD11F97CAE
br i1 %13, label %14, label %17
14: ; preds = %0
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @exit(i32 0)
unreachable
17: ; preds = %0
%18 = load float, float* %2
%19 = fpext float %18 to double
%20 = fcmp ogt double %19, 0x4042ADFD11F97CAE
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32 @exit(i32 0)
unreachable
24: ; preds = %17
%25 = load float, float* %2
%26 = load float, float* %2
%27 = fcmp une float %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 @exit(i32 0)
unreachable
31: ; preds = %24
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str = [4 x i8] c"%f\0A\00"
@str = [56 x i8] c"Oh wait, there might be a bottom to this. Level cleared\00"
@str.5 = [27 x i8] c"Someone's getting creative\00"
@str.6 = [53 x i8] c"To high just like your hopes of reaching the bottom.\00"
@str.7 = [57 x i8] c"Too low just like you're chances of reaching the bottom.\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @fgets(i8* %2, i32 10, i32 %3)
%5 = call float @atof(i8* %2)
%6 = fpext float %5 to double
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %6)
%8 = fcmp olt double %6, 0x4042ADFD11F97CAE
br i1 %8, label %9, label %12
9: ; preds = %0
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.7, i64 0, i64 0))
%11 = call i32 @exit(i32 0)
unreachable
12: ; preds = %0
%13 = fcmp ogt double %6, 0x4042ADFD11F97CAE
br i1 %13, label %14, label %17
14: ; preds = %12
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.6, i64 0, i64 0))
%16 = call i32 @exit(i32 0)
unreachable
17: ; preds = %12
%18 = fcmp uno float %5, 0.000000e+00
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.5, i64 0, i64 0))
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %17
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
ret i32 0
}