#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 const *argv[]) {
  float a;
  printf("Time taken to complete job:");
  scanf("%f", &a);
  if ((a > 2) && (a < 3)) {
    printf("Keep it up. You are highly efficient.\n");
  } else if ((a > 3) && (a < 4)) {
    printf("Improve your speed buddy.\n");
  } else if ((a > 4) && (a < 5)) {
    printf("Meet the training commander. You need to consult him.\n");
  } else {
    printf("We are sorry for you. You need to leave the company.\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
movss  0xea1(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    118b <main+0x6b>
movss  0xe94(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    118b <main+0x6b>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    1213 <main+0xf3>
movss  -0x14(%rbp),%xmm0
movss  0xe6c(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11c4 <main+0xa4>
movss  0xe5f(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    11c4 <main+0xa4>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <main+0xee>
movss  -0x14(%rbp),%xmm0
movss  0xe37(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11fd <main+0xdd>
movss  0xe2a(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jbe    11fd <main+0xdd>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
jmp    1209 <main+0xe9>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <main+0xee>
jmp    1213 <main+0xf3>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
movss  0x4(%rsp),%xmm0
ucomiss 0xea5(%rip),%xmm0
jbe    1173 <main+0x43>
movss  0xe9f(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1173 <main+0x43>
lea    0xf43(%rip),%rdi
jmp    11ba <main+0x8a>
ucomiss 0xe8a(%rip),%xmm0
jbe    1192 <main+0x62>
movss  0xe84(%rip),%xmm1
ucomiss %xmm0,%xmm1
jbe    1192 <main+0x62>
lea    0xf0a(%rip),%rdi
jmp    11ba <main+0x8a>
movss  0xe72(%rip),%xmm1
ucomiss %xmm0,%xmm1
lea    0xec0(%rip),%rdi
lea    0xe84(%rip),%rax
cmovbe %rax,%rdi
ucomiss 0xe52(%rip),%xmm0
cmovbe %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Time taken to complete job:\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [39 x i8] c"Keep it up. You are highly efficient.\0A\00"
@.str.3 = [27 x i8] c"Improve your speed buddy.\0A\00"
@.str.4 = [55 x i8] c"Meet the training commander. You need to consult him.\0A\00"
@.str.5 = [54 x i8] c"We are sorry for you. You need to leave the company.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %6)
%9 = load float, float* %6
%10 = fcmp ogt float %9, 2.000000e+00
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load float, float* %6
%13 = fcmp olt float %12, 3.000000e+00
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0))
br label %36
16: ; preds = %11, %2
%17 = load float, float* %6
%18 = fcmp ogt float %17, 3.000000e+00
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load float, float* %6
%21 = fcmp olt float %20, 4.000000e+00
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %35
24: ; preds = %19, %16
%25 = load float, float* %6
%26 = fcmp ogt float %25, 4.000000e+00
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = load float, float* %6
%29 = fcmp olt float %28, 5.000000e+00
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
br label %34
32: ; preds = %27, %24
%33 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
br label %34
34: ; preds = %32, %30
br label %35
35: ; preds = %34, %22
br label %36
36: ; preds = %35, %14
%37 = load i32, i32* %3
ret i32 %37
}

LLVM IR (-O2):
@.str = [28 x i8] c"Time taken to complete job:\00"
@.str.1 = [3 x i8] c"%f\00"
@str = [53 x i8] c"We are sorry for you. You need to leave the company.\00"
@str.6 = [54 x i8] c"Meet the training commander. You need to consult him.\00"
@str.7 = [26 x i8] c"Improve your speed buddy.\00"
@str.8 = [38 x i8] c"Keep it up. You are highly efficient.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = bitcast float* %3 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%7 = load float, float* %3
%8 = fcmp ogt float %7, 2.000000e+00
%9 = fcmp olt float %7, 3.000000e+00
%10 = and i1 %8, %9
br i1 %10, label %20, label %11
11: ; preds = %2
%12 = fcmp ogt float %7, 3.000000e+00
%13 = fcmp olt float %7, 4.000000e+00
%14 = and i1 %12, %13
br i1 %14, label %20, label %15
15: ; preds = %11
%16 = fcmp ogt float %7, 4.000000e+00
%17 = fcmp olt float %7, 5.000000e+00
%18 = and i1 %16, %17
%19 = select i1 %18, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([53 x i8], [53 x i8]* @str, i64 0, i64 0)
br label %20
20: ; preds = %15, %11, %2
%21 = phi i8* [ getelementptr inbounds ([38 x i8], [38 x i8]* @str.8, i64 0, i64 0), %2 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.7, i64 0, i64 0), %11 ], [ %19, %15 ]
%22 = call i32 @puts(i8* dereferenceable(1) %21)
ret i32 0
}