#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 /*<<< orphan*/ system(char *);
int main() {
  float x, y, z;
  printf("\nDigite um numero: ");
  scanf("%f", &x);
  printf("Digite outro numero: ");
  scanf("%f", &y);
  printf("Digite outro numero: ");
  scanf("%f", &z);
  if (x > y) {
    if (x > z) {
      printf("\nO maior numero é o %f\n\n", x);
      if (z > y) {
        printf("\nO menor numero é o %f\n\n", y);
      } else {
        printf("\nO menor numero é o %f\n\n", z);
      }
    } else {
      printf("\nO maior numero é o %f\n\n", z);
      printf("\nO menor numero é o %f\n\n", y);
    }
  } else {
    if (x > z) {
      printf("\nO maior numero é o %f\n\n", y);
      printf("\nO menor numero é o %f\n\n", z);
    } else {
      printf("\nO menor numero é o %f\n\n", x);
      if (z > y) {
        printf("\nO maior numero é o %f\n\n", z);
      } else {
        printf("\nO maior numero é o %f\n\n", y);
      }
    }
  }
  system("pause");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe84(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1248 <main+0x118>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    1215 <main+0xe5>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe66(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11f9 <main+0xc9>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe5a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1210 <main+0xe0>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe3e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1243 <main+0x113>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe08(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12ed <main+0x1bd>
movss  -0x8(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jbe    128a <main+0x15a>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12e8 <main+0x1b8>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdad(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    12cc <main+0x19c>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12e3 <main+0x1b3>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd51(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12e8 <main+0x1b8>
jmp    12ed <main+0x1bd>
lea    0xd6d(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec8(%rip),%r14
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
lea    0xeb7(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
call   1050 <scanf@plt>
movss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm1,%xmm0
movss  0xc(%rsp),%xmm2
jbe    11d1 <main+0xa1>
ucomiss %xmm2,%xmm0
jbe    11fa <main+0xca>
cvtss2sd %xmm0,%xmm0
lea    0xe78(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
minss  0xc(%rsp),%xmm0
lea    0xe78(%rip),%rdi
jmp    1243 <main+0x113>
ucomiss %xmm2,%xmm0
jbe    121e <main+0xee>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xe49(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe55(%rip),%rdi
movss  0xc(%rsp),%xmm0
jmp    1243 <main+0x113>
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
lea    0xe25(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe31(%rip),%rdi
movss  0x10(%rsp),%xmm0
jmp    1243 <main+0x113>
cvtss2sd %xmm0,%xmm0
lea    0xe1e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
maxss  0x10(%rsp),%xmm0
lea    0xdea(%rip),%rdi
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe0c(%rip),%rdi
call   1030 <system@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [20 x i8] c"\0ADigite um numero: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [22 x i8] c"Digite outro numero: \00"
@.str.3 = [26 x i8] c"\0AO maior numero \C3\A9 o %f\0A\0A\00"
@.str.4 = [26 x i8] c"\0AO menor numero \C3\A9 o %f\0A\0A\00"
@.str.5 = [6 x i8] c"pause\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 ([22 x i8], [22 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 ([22 x i8], [22 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* %4)
%11 = load float, float* %2
%12 = load float, float* %3
%13 = fcmp ogt float %11, %12
br i1 %13, label %14, label %42
14: ; preds = %0
%15 = load float, float* %2
%16 = load float, float* %4
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %34
18: ; preds = %14
%19 = load float, float* %2
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = load float, float* %4
%23 = load float, float* %3
%24 = fcmp ogt float %22, %23
br i1 %24, label %25, label %29
25: ; preds = %18
%26 = load float, float* %3
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %27)
br label %33
29: ; preds = %18
%30 = load float, float* %4
%31 = fpext float %30 to double
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %31)
br label %33
33: ; preds = %29, %25
br label %41
34: ; preds = %14
%35 = load float, float* %4
%36 = fpext float %35 to double
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %36)
%38 = load float, float* %3
%39 = fpext float %38 to double
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %39)
br label %41
41: ; preds = %34, %33
br label %70
42: ; preds = %0
%43 = load float, float* %2
%44 = load float, float* %4
%45 = fcmp ogt float %43, %44
br i1 %45, label %46, label %53
46: ; preds = %42
%47 = load float, float* %3
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %48)
%50 = load float, float* %4
%51 = fpext float %50 to double
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %51)
br label %69
53: ; preds = %42
%54 = load float, float* %2
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %55)
%57 = load float, float* %4
%58 = load float, float* %3
%59 = fcmp ogt float %57, %58
br i1 %59, label %60, label %64
60: ; preds = %53
%61 = load float, float* %4
%62 = fpext float %61 to double
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %62)
br label %68
64: ; preds = %53
%65 = load float, float* %3
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %66)
br label %68
68: ; preds = %64, %60
br label %69
69: ; preds = %68, %46
br label %70
70: ; preds = %69, %41
%71 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"\0ADigite um numero: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [22 x i8] c"Digite outro numero: \00"
@.str.3 = [26 x i8] c"\0AO maior numero \C3\A9 o %f\0A\0A\00"
@.str.4 = [26 x i8] c"\0AO menor numero \C3\A9 o %f\0A\0A\00"
@.str.5 = [6 x i8] c"pause\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 ([22 x i8], [22 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 ([22 x i8], [22 x i8]* @.str.2, 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 ogt float %13, %14
%16 = load float, float* %3
%17 = fcmp ogt float %13, %16
br i1 %15, label %18, label %30
18: ; preds = %0
br i1 %17, label %19, label %26
19: ; preds = %18
%20 = fpext float %13 to double
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = load float, float* %3
%23 = load float, float* %2
%24 = fcmp ogt float %22, %23
%25 = select i1 %24, float %23, float %22
br label %42
26: ; preds = %18
%27 = fpext float %16 to double
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %27)
%29 = load float, float* %2
br label %42
30: ; preds = %0
br i1 %17, label %31, label %35
31: ; preds = %30
%32 = fpext float %14 to double
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %32)
%34 = load float, float* %3
br label %42
35: ; preds = %30
%36 = fpext float %13 to double
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), double %36)
%38 = load float, float* %3
%39 = load float, float* %2
%40 = fcmp ogt float %38, %39
%41 = select i1 %40, float %38, float %39
br label %42
42: ; preds = %35, %19, %31, %26
%43 = phi float [ %34, %31 ], [ %29, %26 ], [ %25, %19 ], [ %41, %35 ]
%44 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %31 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %26 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), %19 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), %35 ]
%45 = fpext float %43 to double
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44, double %45)
%47 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}