#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 *, float *);
int main() {
  float num1, num2, num3;
  printf("Digite o 1o numero:");
  scanf("%f", &num1);
  printf("Digite o 2o numero: ");
  scanf("%f", &num2);
  printf("Digite o 3o numero: ");
  scanf("%f", &num3);
  if (num1 < num2 && num1 < num3) {
    printf("%.2f \t", num1);
    if (num2 < num3) {
      printf("%.2f \t", num2);
      printf("%.2f \t", num3);
    } else {
      printf("%.2f \t", num3);
      printf("%.2f \t", num2);
    }
  } else if (num2 < num1 && num2 < num3) {
    printf("%.2f \t", num2);
    if (num1 < num3) {
      printf("%.2f \t", num1);
      printf("%.2f \t", num3);
    } else {
      printf("%.2f \t", num3);
      printf("%.2f \t", num1);
    }
  } else if (num3 < num1 && num3 < num2) {
    printf("%.2f \t", num3);
    if (num1 < num2) {
      printf("%.2f \t", num1);
      printf("%.2f \t", num2);
    } else {
      printf("%.2f \t", num2);
      printf("%.2f \t", num1);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe94(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    123f <main+0x11f>
movss  -0x8(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    123f <main+0x11f>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe82(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    120c <main+0xec>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe58(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe41(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    123a <main+0x11a>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe25(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    13b5 <main+0x295>
movss  -0xc(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12f5 <main+0x1d5>
movss  -0xc(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12f5 <main+0x1d5>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdcc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12c2 <main+0x1a2>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd8b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    12f0 <main+0x1d0>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd58(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    13b0 <main+0x290>
movss  -0x10(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    13ab <main+0x28b>
movss  -0x10(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    13ab <main+0x28b>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd16(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1378 <main+0x258>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcec(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    13a6 <main+0x286>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcb9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xca2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    13ab <main+0x28b>
jmp    13b0 <main+0x290>
jmp    13b5 <main+0x295>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xece(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed4(%rip),%rbx
lea    0x14(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <scanf@plt>
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1040 <scanf@plt>
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <scanf@plt>
movss  0x14(%rsp),%xmm2
movss  0x10(%rsp),%xmm1
ucomiss %xmm2,%xmm1
movss  0xc(%rsp),%xmm0
jbe    11d6 <main+0xb6>
ucomiss %xmm2,%xmm0
jbe    11d6 <main+0xb6>
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
lea    0xe8b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
ucomiss %xmm0,%xmm1
minss  %xmm1,%xmm0
cmova  %r15,%r12
jmp    1244 <main+0x124>
ucomiss %xmm1,%xmm2
jbe    1211 <main+0xf1>
ucomiss %xmm1,%xmm0
jbe    1211 <main+0xf1>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xe53(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x14(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
ucomiss %xmm0,%xmm1
minss  %xmm1,%xmm0
cmova  %r15,%r14
mov    %r14,%r12
jmp    1244 <main+0x124>
ucomiss %xmm0,%xmm2
jbe    126d <main+0x14d>
ucomiss %xmm0,%xmm1
jbe    126d <main+0x14d>
cvtss2sd %xmm0,%xmm0
lea    0xe1b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
minss  %xmm1,%xmm0
cmovbe %r14,%r12
cvtss2sd %xmm0,%xmm0
lea    0xdf2(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  (%r12),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Digite o 1o numero:\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"Digite o 2o numero: \00"
@.str.3 = [21 x i8] c"Digite o 3o numero: \00"
@.str.4 = [7 x i8] c"%.2f \09\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%11 = load float, float* %2
%12 = load float, float* %3
%13 = fcmp olt float %11, %12
br i1 %13, label %14, label %40
14: ; preds = %0
%15 = load float, float* %2
%16 = load float, float* %4
%17 = fcmp olt float %15, %16
br i1 %17, label %18, label %40
18: ; preds = %14
%19 = load float, float* %2
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %20)
%22 = load float, float* %3
%23 = load float, float* %4
%24 = fcmp olt float %22, %23
br i1 %24, label %25, label %32
25: ; preds = %18
%26 = load float, float* %3
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %27)
%29 = load float, float* %4
%30 = fpext float %29 to double
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %30)
br label %39
32: ; preds = %18
%33 = load float, float* %4
%34 = fpext float %33 to double
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %34)
%36 = load float, float* %3
%37 = fpext float %36 to double
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %37)
br label %39
39: ; preds = %32, %25
br label %102
40: ; preds = %14, %0
%41 = load float, float* %3
%42 = load float, float* %2
%43 = fcmp olt float %41, %42
br i1 %43, label %44, label %70
44: ; preds = %40
%45 = load float, float* %3
%46 = load float, float* %4
%47 = fcmp olt float %45, %46
br i1 %47, label %48, label %70
48: ; preds = %44
%49 = load float, float* %3
%50 = fpext float %49 to double
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %50)
%52 = load float, float* %2
%53 = load float, float* %4
%54 = fcmp olt float %52, %53
br i1 %54, label %55, label %62
55: ; preds = %48
%56 = load float, float* %2
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %57)
%59 = load float, float* %4
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %60)
br label %69
62: ; preds = %48
%63 = load float, float* %4
%64 = fpext float %63 to double
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %64)
%66 = load float, float* %2
%67 = fpext float %66 to double
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %67)
br label %69
69: ; preds = %62, %55
br label %101
70: ; preds = %44, %40
%71 = load float, float* %4
%72 = load float, float* %2
%73 = fcmp olt float %71, %72
br i1 %73, label %74, label %100
74: ; preds = %70
%75 = load float, float* %4
%76 = load float, float* %3
%77 = fcmp olt float %75, %76
br i1 %77, label %78, label %100
78: ; preds = %74
%79 = load float, float* %4
%80 = fpext float %79 to double
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %80)
%82 = load float, float* %2
%83 = load float, float* %3
%84 = fcmp olt float %82, %83
br i1 %84, label %85, label %92
85: ; preds = %78
%86 = load float, float* %2
%87 = fpext float %86 to double
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %87)
%89 = load float, float* %3
%90 = fpext float %89 to double
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %90)
br label %99
92: ; preds = %78
%93 = load float, float* %3
%94 = fpext float %93 to double
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %94)
%96 = load float, float* %2
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %97)
br label %99
99: ; preds = %92, %85
br label %100
100: ; preds = %99, %74, %70
br label %101
101: ; preds = %100, %69
br label %102
102: ; preds = %101, %39
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"Digite o 1o numero:\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"Digite o 2o numero: \00"
@.str.3 = [21 x i8] c"Digite o 3o numero: \00"
@.str.4 = [7 x i8] c"%.2f \09\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 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%13 = load float, float* %1
%14 = load float, float* %2
%15 = fcmp olt float %13, %14
%16 = load float, float* %3
%17 = fcmp olt float %13, %16
%18 = select i1 %15, i1 %17, i1 false
br i1 %18, label %19, label %27
19: ; preds = %0
%20 = fpext float %13 to double
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %20)
%22 = load float, float* %2
%23 = load float, float* %3
%24 = fcmp olt float %22, %23
%25 = select i1 %24, float %22, float %23
%26 = select i1 %24, float* %3, float* %2
br label %51
27: ; preds = %0
%28 = fcmp olt float %14, %13
%29 = fcmp olt float %14, %16
%30 = select i1 %28, i1 %29, i1 false
br i1 %30, label %31, label %39
31: ; preds = %27
%32 = fpext float %14 to double
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %32)
%34 = load float, float* %1
%35 = load float, float* %3
%36 = fcmp olt float %34, %35
%37 = select i1 %36, float %34, float %35
%38 = select i1 %36, float* %3, float* %1
br label %51
39: ; preds = %27
%40 = fcmp olt float %16, %13
%41 = fcmp olt float %16, %14
%42 = select i1 %40, i1 %41, i1 false
br i1 %42, label %43, label %59
43: ; preds = %39
%44 = fpext float %16 to double
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %44)
%46 = load float, float* %1
%47 = load float, float* %2
%48 = fcmp olt float %46, %47
%49 = select i1 %48, float %46, float %47
%50 = select i1 %48, float* %2, float* %1
br label %51
51: ; preds = %43, %31, %19
%52 = phi float [ %25, %19 ], [ %37, %31 ], [ %49, %43 ]
%53 = phi float* [ %26, %19 ], [ %38, %31 ], [ %50, %43 ]
%54 = fpext float %52 to double
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %54)
%56 = load float, float* %53
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %57)
br label %59
59: ; preds = %51, %39
ret i32 0
}