#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 *, float);
int /*<<< orphan*/ scanf(char *, float *);
int main() {
  float a, b, c;
  scanf("%f", &a);
  scanf("%f", &b);
  scanf("%f", &c);
  if (a > b) {
    if (a > c) {
      printf(" %.1f\n", a);
    } else
      printf(" %.1f\n", c);
  } else if (b > a) {
    if (b > c) {
      printf(" %.1f\n", b);
    } else
      printf(" %.1f \n", c);
  } else {
    printf(" %.1f\n", c);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11a9 <main+0x89>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    1193 <main+0x73>
movss  -0x8(%rbp),%xmm0
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
jmp    11a4 <main+0x84>
movss  -0x10(%rbp),%xmm0
lea    0xe64(%rip),%rdi
call   1030 <printf@plt>
jmp    1209 <main+0xe9>
movss  -0xc(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11f3 <main+0xd3>
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11dd <main+0xbd>
movss  -0xc(%rbp),%xmm0
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
jmp    11ee <main+0xce>
movss  -0x10(%rbp),%xmm0
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
jmp    1204 <main+0xe4>
movss  -0x10(%rbp),%xmm0
lea    0xe04(%rip),%rdi
call   1030 <printf@plt>
jmp    1209 <main+0xe9>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0xc(%rsp),%xmm1
movss  0x8(%rsp),%xmm0
ucomiss %xmm0,%xmm1
jbe    1171 <main+0x51>
movss  0x4(%rsp),%xmm0
ucomiss %xmm0,%xmm1
jbe    1181 <main+0x61>
jmp    118a <main+0x6a>
ucomiss %xmm1,%xmm0
movss  0x4(%rsp),%xmm1
jbe    118a <main+0x6a>
ucomiss %xmm1,%xmm0
jbe    1193 <main+0x73>
lea    0xe7b(%rip),%rdi
jmp    119d <main+0x7d>
lea    0xe72(%rip),%rdi
jmp    119a <main+0x7a>
lea    0xe70(%rip),%rdi
movaps %xmm1,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [7 x i8] c" %.1f\0A\00"
@.str.2 = [8 x i8] c" %.1f \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 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%10 = load float, float* %1
%11 = load float, float* %2
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %20
13: ; preds = %0
%14 = load float, float* %3
%15 = fcmp ogt float %10, %14
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %10)
br label %31
18: ; preds = %13
%19 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %14)
br label %31
20: ; preds = %0
%21 = fcmp ogt float %11, %10
%22 = load float, float* %3
br i1 %21, label %23, label %29
23: ; preds = %20
%24 = fcmp ogt float %11, %22
br i1 %24, label %25, label %27
25: ; preds = %23
%26 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %11)
br label %31
27: ; preds = %23
%28 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), float %22)
br label %31
29: ; preds = %20
%30 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %22)
br label %31
31: ; preds = %29, %27, %25, %16, %18
ret i32 0
}