#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*/ grater(double, double);
int /*<<< orphan*/ printf(char *, double, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int /*<<< orphan*/ smaler(double, double);
void descending(double a, double b, double c) {
  if (a > b && a > c) {
    printf("%.1lf %.1lf %.1lf", a, grater(b, c), smaler(b, c));
  } else if (b > a && b > c) {
    printf("%.1lf %.1lf %.1lf", b, grater(a, c), smaler(a, c));
  } else {
    printf("%.1lf %.1lf %.1lf", c, grater(a, b), smaler(a, b));
  }
}


x86 assembly (clang, -O0):
<descending>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    11ad <descending+0x7d>
movsd  -0x8(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    11ad <descending+0x7d>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1040 <grater@plt>
mov    %eax,-0x1c(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1050 <smaler@plt>
movsd  -0x28(%rbp),%xmm0
mov    -0x1c(%rbp),%esi
mov    %eax,%edx
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    1259 <descending+0x129>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1213 <descending+0xe3>
movsd  -0x10(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    1213 <descending+0xe3>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1040 <grater@plt>
mov    %eax,-0x2c(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1050 <smaler@plt>
movsd  -0x38(%rbp),%xmm0
mov    -0x2c(%rbp),%esi
mov    %eax,%edx
lea    0xdf7(%rip),%rdi
call   1030 <printf@plt>
jmp    1254 <descending+0x124>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1040 <grater@plt>
mov    %eax,-0x3c(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1050 <smaler@plt>
movsd  -0x48(%rbp),%xmm0
mov    -0x3c(%rbp),%esi
mov    %eax,%edx
lea    0xdb1(%rip),%rdi
call   1030 <printf@plt>
jmp    1259 <descending+0x129>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<descending>:
push   %rbx
sub    $0x20,%rsp
ucomisd %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
jbe    1182 <descending+0x52>
ucomisd %xmm2,%xmm0
jbe    1182 <descending+0x52>
movapd %xmm1,%xmm0
movapd %xmm2,%xmm1
call   1040 <grater@plt>
mov    %eax,%ebx
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
call   1050 <smaler@plt>
lea    0xe86(%rip),%rdi
movsd  0x18(%rsp),%xmm0
jmp    11de <descending+0xae>
ucomisd %xmm0,%xmm1
jbe    11b9 <descending+0x89>
ucomisd %xmm2,%xmm1
jbe    11b9 <descending+0x89>
movapd %xmm2,%xmm1
call   1040 <grater@plt>
mov    %eax,%ebx
movsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
call   1050 <smaler@plt>
lea    0xe4f(%rip),%rdi
movsd  0x10(%rsp),%xmm0
jmp    11de <descending+0xae>
call   1040 <grater@plt>
mov    %eax,%ebx
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1050 <smaler@plt>
lea    0xe28(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    %ebx,%esi
mov    %eax,%edx
add    $0x20,%rsp
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%.1lf %.1lf %.1lf\00"
define void @descending(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %4
%8 = load double, double* %5
%9 = fcmp ogt double %7, %8
br i1 %9, label %10, label %23
10: ; preds = %3
%11 = load double, double* %4
%12 = load double, double* %6
%13 = fcmp ogt double %11, %12
br i1 %13, label %14, label %23
14: ; preds = %10
%15 = load double, double* %4
%16 = load double, double* %5
%17 = load double, double* %6
%18 = call i32 @grater(double %16, double %17)
%19 = load double, double* %5
%20 = load double, double* %6
%21 = call i32 @smaler(double %19, double %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %15, i32 %18, i32 %21)
br label %50
23: ; preds = %10, %3
%24 = load double, double* %5
%25 = load double, double* %4
%26 = fcmp ogt double %24, %25
br i1 %26, label %27, label %40
27: ; preds = %23
%28 = load double, double* %5
%29 = load double, double* %6
%30 = fcmp ogt double %28, %29
br i1 %30, label %31, label %40
31: ; preds = %27
%32 = load double, double* %5
%33 = load double, double* %4
%34 = load double, double* %6
%35 = call i32 @grater(double %33, double %34)
%36 = load double, double* %4
%37 = load double, double* %6
%38 = call i32 @smaler(double %36, double %37)
%39 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %32, i32 %35, i32 %38)
br label %49
40: ; preds = %27, %23
%41 = load double, double* %6
%42 = load double, double* %4
%43 = load double, double* %5
%44 = call i32 @grater(double %42, double %43)
%45 = load double, double* %4
%46 = load double, double* %5
%47 = call i32 @smaler(double %45, double %46)
%48 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %41, i32 %44, i32 %47)
br label %49
49: ; preds = %40, %31
br label %50
50: ; preds = %49, %14
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%.1lf %.1lf %.1lf\00"
define void @descending(double %0, double %1, double %2) {
%4 = fcmp ogt double %0, %1
%5 = fcmp ogt double %0, %2
%6 = and i1 %4, %5
br i1 %6, label %7, label %11
7: ; preds = %3
%8 = tail call i32 @grater(double %1, double %2)
%9 = tail call i32 @smaler(double %1, double %2)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %0, i32 %8, i32 %9)
br label %23
11: ; preds = %3
%12 = fcmp ogt double %1, %0
%13 = fcmp ogt double %1, %2
%14 = and i1 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = tail call i32 @grater(double %0, double %2)
%17 = tail call i32 @smaler(double %0, double %2)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %1, i32 %16, i32 %17)
br label %23
19: ; preds = %11
%20 = tail call i32 @grater(double %0, double %1)
%21 = tail call i32 @smaler(double %0, double %1)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), double %2, i32 %20, i32 %21)
br label %23
23: ; preds = %15, %19, %7
ret void
}