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


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
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1191 <main+0x71>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    117b <main+0x5b>
movss  -0x8(%rbp),%xmm0
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
jmp    118c <main+0x6c>
movss  -0x10(%rbp),%xmm0
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
jmp    11cc <main+0xac>
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11b6 <main+0x96>
movss  -0xc(%rbp),%xmm0
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    11c7 <main+0xa7>
movss  -0x10(%rbp),%xmm0
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
jmp    11cc <main+0xac>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm0
maxss  0x10(%rsp),%xmm0
maxss  0xc(%rsp),%xmm0
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%f %f %f\00"
@.str.1 = [6 x i8] c"\0A%.1f\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 ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float* %1, float* %2, float* %3)
%8 = load float, float* %1
%9 = load float, float* %2
%10 = fcmp ogt float %8, %9
%11 = load float, float* %3
%12 = select i1 %10, float %8, float %9
%13 = fcmp ogt float %12, %11
%14 = select i1 %13, float %12, float %11
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), float %14)
ret i32 0
}