#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() {
  float a;
  float b;
  float c;
  printf("\n");
  scanf("%f", &a);
  printf("\n");
  scanf("%f", &b);
  printf("\n");
  scanf("%f", &c);
  if (a > b && a > c) {
    printf("%f\n", a);
  } else if (b > a && b > c) {
    printf("%f\n", b);
  } else if (c > a && c > b) {
    printf("%f\n", c);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe80(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11c3 <main+0xa3>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11c3 <main+0xa3>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe4c(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    123c <main+0x11c>
movss  -0xc(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11fd <main+0xdd>
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11fd <main+0xdd>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe12(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1237 <main+0x117>
movss  -0x10(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1232 <main+0x112>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1232 <main+0x112>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdd8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1237 <main+0x117>
jmp    123c <main+0x11c>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeba(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm2
movss  0x8(%rsp),%xmm1
ucomiss %xmm1,%xmm2
movss  0x4(%rsp),%xmm0
jbe    11a2 <main+0x72>
ucomiss %xmm0,%xmm2
jbe    11a2 <main+0x72>
movaps %xmm2,%xmm0
jmp    11bb <main+0x8b>
ucomiss %xmm2,%xmm1
jbe    11b1 <main+0x81>
ucomiss %xmm0,%xmm1
jbe    11b1 <main+0x81>
movaps %xmm1,%xmm0
jmp    11bb <main+0x8b>
ucomiss %xmm2,%xmm0
jbe    11cd <main+0x9d>
ucomiss %xmm1,%xmm0
jbe    11cd <main+0x9d>
cvtss2sd %xmm0,%xmm0
lea    0xe3d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 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* %2)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 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* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%11 = load float, float* %2
%12 = load float, float* %3
%13 = fcmp ogt float %11, %12
br i1 %13, label %14, label %22
14: ; preds = %0
%15 = load float, float* %2
%16 = load float, float* %4
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load float, float* %2
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %20)
br label %48
22: ; preds = %14, %0
%23 = load float, float* %3
%24 = load float, float* %2
%25 = fcmp ogt float %23, %24
br i1 %25, label %26, label %34
26: ; preds = %22
%27 = load float, float* %3
%28 = load float, float* %4
%29 = fcmp ogt float %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = load float, float* %3
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %32)
br label %47
34: ; preds = %26, %22
%35 = load float, float* %4
%36 = load float, float* %2
%37 = fcmp ogt float %35, %36
br i1 %37, label %38, label %46
38: ; preds = %34
%39 = load float, float* %4
%40 = load float, float* %3
%41 = fcmp ogt float %39, %40
br i1 %41, label %42, label %46
42: ; preds = %38
%43 = load float, float* %4
%44 = fpext float %43 to double
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %44)
br label %46
46: ; preds = %42, %38, %34
br label %47
47: ; preds = %46, %30
br label %48
48: ; preds = %47, %18
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 @putchar(i32 10)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%9 = call i32 @putchar(i32 10)
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%11 = call i32 @putchar(i32 10)
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%13 = load float, float* %1
%14 = load float, float* %2
%15 = fcmp ogt float %13, %14
%16 = load float, float* %3
%17 = fcmp ogt float %13, %16
%18 = select i1 %15, i1 %17, i1 false
br i1 %18, label %27, label %19
19: ; preds = %0
%20 = fcmp ogt float %14, %13
%21 = fcmp ogt float %14, %16
%22 = select i1 %20, i1 %21, i1 false
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = fcmp ogt float %16, %13
%25 = fcmp ogt float %16, %14
%26 = select i1 %24, i1 %25, i1 false
br i1 %26, label %27, label %31
27: ; preds = %23, %19, %0
%28 = phi float [ %13, %0 ], [ %14, %19 ], [ %16, %23 ]
%29 = fpext float %28 to double
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %29)
br label %31
31: ; preds = %27, %23
ret i32 0
}