#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 *, double *);
int main() {
  double a, b, c;
  printf("a = ");
  scanf("%lf", &a);
  printf("b = ");
  scanf("%lf", &b);
  printf("c = ");
  scanf("%lf", &c);
  if (a > b && a > c) {
    if (b > c) {
      printf("%.1f %.1f %.1f\n", a, b, c);
    } else {
      printf("%.1f %.1f %.1f\n", a, c, b);
    }
  } else if (b > a && b > c) {
    if (a > c) {
      printf("%.1f %.1f %.1f\n", b, a, c);
    } else {
      printf("%.1f %.1f %.1f\n", b, c, a);
    }
  } else if (c > a) {
    if (a > b) {
      printf("%.1f %.1f %.1f\n", c, a, b);
    } else {
      printf("%.1f %.1f %.1f\n", c, b, a);
    }
  } else {
    printf("%.1f %.1f %.1f\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
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea3(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe85(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11fd <main+0xdd>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11fd <main+0xdd>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11db <main+0xbb>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    0xe44(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    11f8 <main+0xd8>
movsd  -0x10(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
lea    0xe22(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    12fc <main+0x1dc>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1271 <main+0x151>
movsd  -0x18(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    1271 <main+0x151>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    124f <main+0x12f>
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    0xdd0(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    126c <main+0x14c>
movsd  -0x18(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
lea    0xdae(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    12f7 <main+0x1d7>
movsd  -0x20(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    12d5 <main+0x1b5>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    12b3 <main+0x193>
movsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
lea    0xd6c(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    12d0 <main+0x1b0>
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
lea    0xd4a(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    12f2 <main+0x1d2>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm2
lea    0xd28(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
jmp    12f7 <main+0x1d7>
jmp    12fc <main+0x1dc>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecb(%rip),%rbx
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movsd  0x18(%rsp),%xmm4
movsd  0x10(%rsp),%xmm3
ucomisd %xmm3,%xmm4
jbe    11b6 <main+0x96>
movsd  0x8(%rsp),%xmm2
ucomisd %xmm2,%xmm4
jbe    11b6 <main+0x96>
ucomisd %xmm2,%xmm3
ja     1200 <main+0xe0>
lea    0xe6b(%rip),%rdi
movapd %xmm4,%xmm0
movapd %xmm2,%xmm1
movapd %xmm3,%xmm2
jmp    121f <main+0xff>
ucomisd %xmm4,%xmm3
movsd  0x8(%rsp),%xmm2
jbe    11df <main+0xbf>
ucomisd %xmm2,%xmm3
jbe    11df <main+0xbf>
lea    0xe44(%rip),%rdi
movapd %xmm3,%xmm0
ucomisd %xmm2,%xmm4
jbe    1211 <main+0xf1>
movapd %xmm4,%xmm1
jmp    121f <main+0xff>
ucomisd %xmm4,%xmm2
jbe    1200 <main+0xe0>
lea    0xe27(%rip),%rdi
movapd %xmm2,%xmm0
ucomisd %xmm3,%xmm4
jbe    1217 <main+0xf7>
movapd %xmm4,%xmm1
movapd %xmm3,%xmm2
jmp    121f <main+0xff>
lea    0xe0c(%rip),%rdi
movapd %xmm4,%xmm0
movapd %xmm3,%xmm1
jmp    121f <main+0xff>
movapd %xmm2,%xmm1
jmp    121b <main+0xfb>
movapd %xmm3,%xmm1
movapd %xmm4,%xmm2
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"a = \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [5 x i8] c"b = \00"
@.str.3 = [5 x i8] c"c = \00"
@.str.4 = [16 x i8] c"%.1f %.1f %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %4)
%11 = load double, double* %2
%12 = load double, double* %3
%13 = fcmp ogt double %11, %12
br i1 %13, label %14, label %33
14: ; preds = %0
%15 = load double, double* %2
%16 = load double, double* %4
%17 = fcmp ogt double %15, %16
br i1 %17, label %18, label %33
18: ; preds = %14
%19 = load double, double* %3
%20 = load double, double* %4
%21 = fcmp ogt double %19, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load double, double* %2
%24 = load double, double* %3
%25 = load double, double* %4
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %23, double %24, double %25)
br label %32
27: ; preds = %18
%28 = load double, double* %2
%29 = load double, double* %4
%30 = load double, double* %3
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %28, double %29, double %30)
br label %32
32: ; preds = %27, %22
br label %82
33: ; preds = %14, %0
%34 = load double, double* %3
%35 = load double, double* %2
%36 = fcmp ogt double %34, %35
br i1 %36, label %37, label %56
37: ; preds = %33
%38 = load double, double* %3
%39 = load double, double* %4
%40 = fcmp ogt double %38, %39
br i1 %40, label %41, label %56
41: ; preds = %37
%42 = load double, double* %2
%43 = load double, double* %4
%44 = fcmp ogt double %42, %43
br i1 %44, label %45, label %50
45: ; preds = %41
%46 = load double, double* %3
%47 = load double, double* %2
%48 = load double, double* %4
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %46, double %47, double %48)
br label %55
50: ; preds = %41
%51 = load double, double* %3
%52 = load double, double* %4
%53 = load double, double* %2
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %51, double %52, double %53)
br label %55
55: ; preds = %50, %45
br label %81
56: ; preds = %37, %33
%57 = load double, double* %4
%58 = load double, double* %2
%59 = fcmp ogt double %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load double, double* %2
%62 = load double, double* %3
%63 = fcmp ogt double %61, %62
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load double, double* %4
%66 = load double, double* %2
%67 = load double, double* %3
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %65, double %66, double %67)
br label %74
69: ; preds = %60
%70 = load double, double* %4
%71 = load double, double* %3
%72 = load double, double* %2
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %70, double %71, double %72)
br label %74
74: ; preds = %69, %64
br label %80
75: ; preds = %56
%76 = load double, double* %2
%77 = load double, double* %3
%78 = load double, double* %4
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), double %76, double %77, double %78)
br label %80
80: ; preds = %75, %74
br label %81
81: ; preds = %80, %55
br label %82
82: ; preds = %81, %32
ret i32 0
}

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