#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 main() {
  float myMark = 5.5;
  printf("My mark is %.1f\n", myMark);
  if (myMark > 9) {
    printf("I'm perfect\n");
  } else if (myMark > 7) {
    printf("I'm great\n");
  } else if (myMark > 5) {
    printf("I'm cool\n");
  } else if (myMark > 3) {
    printf("I think I'm cool\n");
  } else if (myMark > 1) {
    printf("Maybe I'm cool\n");
  } else {
    printf("Alright, alright\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xedd(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xedc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xeb0(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    116c <main+0x5c>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1232 <main+0x122>
movss  -0x8(%rbp),%xmm0
movss  0xe8f(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1195 <main+0x85>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122d <main+0x11d>
movss  -0x8(%rbp),%xmm0
movss  0xe6a(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11be <main+0xae>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1228 <main+0x118>
movss  -0x8(%rbp),%xmm0
movss  0xe45(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11e7 <main+0xd7>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1223 <main+0x113>
movss  -0x8(%rbp),%xmm0
movss  0xe20(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1210 <main+0x100>
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121e <main+0x10e>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1223 <main+0x113>
jmp    1228 <main+0x118>
jmp    122d <main+0x11d>
jmp    1232 <main+0x122>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
movsd  0xed0(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xedb(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"My mark is %.1f\0A\00"
@.str.1 = [13 x i8] c"I'm perfect\0A\00"
@.str.2 = [11 x i8] c"I'm great\0A\00"
@.str.3 = [10 x i8] c"I'm cool\0A\00"
@.str.4 = [18 x i8] c"I think I'm cool\0A\00"
@.str.5 = [16 x i8] c"Maybe I'm cool\0A\00"
@.str.6 = [18 x i8] c"Alright, alright\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
store float 5.500000e+00, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), double %4)
%6 = load float, float* %2
%7 = fcmp ogt float %6, 9.000000e+00
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %36
10: ; preds = %0
%11 = load float, float* %2
%12 = fcmp ogt float %11, 7.000000e+00
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %35
15: ; preds = %10
%16 = load float, float* %2
%17 = fcmp ogt float %16, 5.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %34
20: ; preds = %15
%21 = load float, float* %2
%22 = fcmp ogt float %21, 3.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %20
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %33
25: ; preds = %20
%26 = load float, float* %2
%27 = fcmp ogt float %26, 1.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %32
30: ; preds = %25
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
br label %33
33: ; preds = %32, %23
br label %34
34: ; preds = %33, %18
br label %35
35: ; preds = %34, %13
br label %36
36: ; preds = %35, %8
%37 = load i32, i32* %1
ret i32 %37
}

LLVM IR (-O2):
@.str = [17 x i8] c"My mark is %.1f\0A\00"
@str = [9 x i8] c"I'm cool\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), double 5.500000e+00)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret i32 0
}