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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%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
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1191 <main+0x71>
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    1191 <main+0x71>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    11b9 <main+0x99>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11b9 <main+0x99>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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
movss  0x4(%rsp),%xmm2
movaps %xmm2,%xmm3
cmpltss %xmm0,%xmm3
movaps %xmm3,%xmm4
andps  %xmm0,%xmm4
andnps %xmm1,%xmm3
orps   %xmm4,%xmm3
movaps %xmm1,%xmm4
cmpltss %xmm0,%xmm4
andps  %xmm4,%xmm3
andnps %xmm1,%xmm4
orps   %xmm3,%xmm4
cmpltss %xmm2,%xmm1
cmpltss %xmm2,%xmm0
movaps %xmm0,%xmm3
andnps %xmm4,%xmm3
andps  %xmm2,%xmm0
orps   %xmm3,%xmm0
andps  %xmm1,%xmm0
andnps %xmm4,%xmm1
orps   %xmm1,%xmm0
lea    0xe53(%rip),%rdi
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"\0A %.1f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%9 = load float, float* %2
store float %9, float* %5
%10 = load float, float* %3
%11 = load float, float* %2
%12 = fcmp ogt float %10, %11
br i1 %12, label %13, label %19
13: ; preds = %0
%14 = load float, float* %3
%15 = load float, float* %4
%16 = fcmp ogt float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %13
%18 = load float, float* %3
store float %18, float* %5
br label %19
19: ; preds = %17, %13, %0
%20 = load float, float* %4
%21 = load float, float* %2
%22 = fcmp ogt float %20, %21
br i1 %22, label %23, label %29
23: ; preds = %19
%24 = load float, float* %4
%25 = load float, float* %3
%26 = fcmp ogt float %24, %25
br i1 %26, label %27, label %29
27: ; preds = %23
%28 = load float, float* %4
store float %28, float* %5
br label %29
29: ; preds = %27, %23, %19
%30 = load float, float* %5
%31 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float %30)
ret i32 0
}

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