#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, float, float);
int /*<<< orphan*/ scanf(char *, float *, float *, float *);
int main() {
  float a, b, c, t;
  scanf("%f %f %f", &a, &b, &c);
  if (a > b) {
    t = a;
    a = b;
    b = t;
  }
  if (a > c) {
    t = a;
    a = c;
    c = t;
  }
  if (b > c) {
    t = b;
    b = c;
    c = t;
  }
  printf("%7.2f\n%7.2f\n%7.2f\n", a, b, c);
  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
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1174 <main+0x54>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11a1 <main+0x81>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    11ce <main+0xae>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
lea    0xe25(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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
movss  0x10(%rsp),%xmm1
ucomiss %xmm1,%xmm0
jbe    1161 <main+0x41>
movss  %xmm1,0x14(%rsp)
movss  %xmm0,0x10(%rsp)
movaps %xmm0,%xmm3
jmp    1167 <main+0x47>
movaps %xmm1,%xmm3
movaps %xmm0,%xmm1
movss  0xc(%rsp),%xmm2
ucomiss %xmm2,%xmm1
jbe    118e <main+0x6e>
movss  %xmm2,0x14(%rsp)
movss  %xmm1,0xc(%rsp)
movaps %xmm2,%xmm0
ucomiss %xmm1,%xmm3
ja     1199 <main+0x79>
movaps %xmm1,%xmm2
movaps %xmm3,%xmm1
jmp    11a8 <main+0x88>
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
ucomiss %xmm1,%xmm3
jbe    1186 <main+0x66>
movss  %xmm1,0x10(%rsp)
movss  %xmm3,0xc(%rsp)
movaps %xmm3,%xmm2
lea    0xe5a(%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 = [19 x i8] c"%7.2f\0A%7.2f\0A%7.2f\0A\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 ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), float* %2, float* %3, float* %4)
%7 = load float, float* %2
%8 = load float, float* %3
%9 = fcmp ogt float %7, %8
br i1 %9, label %10, label %14
10: ; preds = %0
%11 = load float, float* %2
store float %11, float* %5
%12 = load float, float* %3
store float %12, float* %2
%13 = load float, float* %5
store float %13, float* %3
br label %14
14: ; preds = %10, %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
store float %19, float* %5
%20 = load float, float* %4
store float %20, float* %2
%21 = load float, float* %5
store float %21, float* %4
br label %22
22: ; preds = %18, %14
%23 = load float, float* %3
%24 = load float, float* %4
%25 = fcmp ogt float %23, %24
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load float, float* %3
store float %27, float* %5
%28 = load float, float* %4
store float %28, float* %3
%29 = load float, float* %5
store float %29, float* %4
br label %30
30: ; preds = %26, %22
%31 = load float, float* %2
%32 = load float, float* %3
%33 = load float, float* %4
%34 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), float %31, float %32, float %33)
ret i32 0
}

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