#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 *, int *);
int main(void) {
  int num1, num2, num3;
  printf("Introduzca número 1:");
  scanf("%d", &num1);
  printf("Introduzca número 2:");
  scanf("%d", &num2);
  printf("Introduzca número 3:");
  scanf("%d", &num3);
  if (num1 < num2 && num1 < num3) {
    if (num2 < num3) {
      printf("%d", num1);
      printf("%d", num2);
      printf("%d", num3);
    } else {
      printf("%d", num1);
      printf("%d", num3);
      printf("%d", num2);
    }
  } else if (num2 < num1 && num2 < num3) {
    if (num1 < num3) {
      printf("%d", num2);
      printf("%d", num1);
      printf("%d", num3);
    } else {
      printf("%d", num2);
      printf("%d", num3);
      printf("%d", num1);
    }
  } else if (num3 < num1 && num3 < num2) {
    if (num1 < num2) {
      printf("%d", num3);
      printf("%d", num1);
      printf("%d", num2);
    } else {
      printf("%d", num3);
      printf("%d", num2);
      printf("%d", num1);
    }
  }
  printf("\n");
  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    0xed2(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe96(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    121d <main+0xfd>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    121d <main+0xfd>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11e5 <main+0xc5>
mov    -0x8(%rbp),%esi
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1218 <main+0xf8>
mov    -0x8(%rbp),%esi
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134f <main+0x22f>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b1 <main+0x191>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12b1 <main+0x191>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1279 <main+0x159>
mov    -0xc(%rbp),%esi
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xda9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ac <main+0x18c>
mov    -0xc(%rbp),%esi
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134a <main+0x22a>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1345 <main+0x225>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1345 <main+0x225>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    130d <main+0x1ed>
mov    -0x10(%rbp),%esi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xd15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1340 <main+0x220>
mov    -0x10(%rbp),%esi
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1345 <main+0x225>
jmp    134a <main+0x22a>
jmp    134f <main+0x22f>
lea    0xcef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec3(%rip),%rbx
lea    0x14(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
lea    0xea7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    0x14(%rsp),%ebp
mov    0x10(%rsp),%ebx
cmp    %ebx,%ebp
jge    11d5 <main+0xa5>
mov    0xc(%rsp),%r13d
cmp    %r13d,%ebp
jge    11d5 <main+0xa5>
lea    0xe5a(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r13d,%ebx
mov    %r12,%rax
cmovl  %r15,%rax
cmovl  %r12,%r15
jmp    122e <main+0xfe>
mov    0xc(%rsp),%r13d
cmp    %ebp,%ebx
jge    1206 <main+0xd6>
cmp    %r13d,%ebx
jge    1206 <main+0xd6>
lea    0xe2c(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r13d,%ebp
mov    %r12,%rax
cmovl  %r14,%rax
cmovl  %r12,%r14
mov    %r14,%r15
jmp    122e <main+0xfe>
cmp    %ebp,%r13d
jge    124e <main+0x11e>
cmp    %ebx,%r13d
jge    124e <main+0x11e>
lea    0xdff(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%ebp
mov    %r15,%rax
cmovl  %r14,%rax
cmovge %r14,%r15
mov    (%rax),%esi
lea    0xddf(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%r15),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Introduzca n\C3\BAmero 1:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [22 x i8] c"Introduzca n\C3\BAmero 2:\00"
@.str.3 = [22 x i8] c"Introduzca n\C3\BAmero 3:\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 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), i32* %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), i32* %3)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 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), i32* %4)
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %37
14: ; preds = %0
%15 = load i32, i32* %2
%16 = load i32, i32* %4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %37
18: ; preds = %14
%19 = load i32, i32* %3
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %18
%23 = load i32, i32* %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %3
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %27)
br label %36
29: ; preds = %18
%30 = load i32, i32* %2
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %4
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %3
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %29, %22
br label %93
37: ; preds = %14, %0
%38 = load i32, i32* %3
%39 = load i32, i32* %2
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %64
41: ; preds = %37
%42 = load i32, i32* %3
%43 = load i32, i32* %4
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %64
45: ; preds = %41
%46 = load i32, i32* %2
%47 = load i32, i32* %4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = load i32, i32* %3
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %2
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %4
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %54)
br label %63
56: ; preds = %45
%57 = load i32, i32* %3
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %57)
%59 = load i32, i32* %4
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %59)
%61 = load i32, i32* %2
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %61)
br label %63
63: ; preds = %56, %49
br label %92
64: ; preds = %41, %37
%65 = load i32, i32* %4
%66 = load i32, i32* %2
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %91
68: ; preds = %64
%69 = load i32, i32* %4
%70 = load i32, i32* %3
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %91
72: ; preds = %68
%73 = load i32, i32* %2
%74 = load i32, i32* %3
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %83
76: ; preds = %72
%77 = load i32, i32* %4
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %2
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %79)
%81 = load i32, i32* %3
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %81)
br label %90
83: ; preds = %72
%84 = load i32, i32* %4
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %3
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %2
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %88)
br label %90
90: ; preds = %83, %76
br label %91
91: ; preds = %90, %68, %64
br label %92
92: ; preds = %91, %63
br label %93
93: ; preds = %92, %36
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Introduzca n\C3\BAmero 1:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [22 x i8] c"Introduzca n\C3\BAmero 2:\00"
@.str.3 = [22 x i8] c"Introduzca n\C3\BAmero 3:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 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), i32* %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), i32* %2)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 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), i32* %3)
%13 = load i32, i32* %1
%14 = load i32, i32* %2
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %24
16: ; preds = %0
%17 = load i32, i32* %3
%18 = icmp slt i32 %13, %17
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = icmp slt i32 %14, %17
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%22 = select i1 %20, i32* %2, i32* %3
%23 = select i1 %20, i32* %3, i32* %2
br label %42
24: ; preds = %16, %0
%25 = icmp slt i32 %14, %13
%26 = load i32, i32* %3
%27 = icmp slt i32 %14, %26
%28 = select i1 %25, i1 %27, i1 false
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = icmp slt i32 %13, %26
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%32 = select i1 %30, i32* %1, i32* %3
%33 = select i1 %30, i32* %3, i32* %1
br label %42
34: ; preds = %24
%35 = icmp slt i32 %26, %13
%36 = icmp slt i32 %26, %14
%37 = select i1 %35, i1 %36, i1 false
br i1 %37, label %38, label %49
38: ; preds = %34
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%40 = select i1 %15, i32* %1, i32* %2
%41 = select i1 %15, i32* %2, i32* %1
br label %42
42: ; preds = %38, %29, %19
%43 = phi i32* [ %22, %19 ], [ %32, %29 ], [ %40, %38 ]
%44 = phi i32* [ %23, %19 ], [ %33, %29 ], [ %41, %38 ]
%45 = load i32, i32* %43
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %45)
%47 = load i32, i32* %44
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %47)
br label %49
49: ; preds = %42, %34
%50 = call i32 @putchar(i32 10)
ret i32 0
}