#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, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int aux, v[3];
  scanf("%d %d %d", &v[0], &v[1], &v[2]);
  if (v[0] > v[1]) {
    aux = v[0];
    v[0] = v[1];
    v[1] = aux;
  }
  if (v[1] > v[2]) {
    aux = v[1];
    v[1] = v[2];
    v[2] = aux;
  }
  if (v[0] > v[1]) {
    aux = v[0];
    v[0] = v[1];
    v[1] = aux;
  }
  printf("%d %d %d\n", v[0], v[1], v[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x14(%rbp),%rsi
lea    -0x14(%rbp),%rdx
add    $0x4,%rdx
lea    -0x14(%rbp),%rcx
add    $0x8,%rcx
lea    0xeb6(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    116d <main+0x4d>
mov    -0x14(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    118b <main+0x6b>
mov    -0x10(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11a9 <main+0x89>
mov    -0x14(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0x10(%rsp),%rdx
lea    0x14(%rsp),%rcx
lea    0xecb(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%edx
mov    0x10(%rsp),%ecx
cmp    %ecx,%edx
jle    1157 <main+0x37>
mov    %ecx,0xc(%rsp)
mov    %edx,0x10(%rsp)
mov    %ecx,%eax
jmp    115b <main+0x3b>
mov    %edx,%eax
mov    %ecx,%edx
mov    0x14(%rsp),%esi
cmp    %esi,%edx
jle    1177 <main+0x57>
mov    %esi,0x10(%rsp)
mov    %edx,0x14(%rsp)
mov    %edx,%ecx
cmp    %esi,%eax
jg     117f <main+0x5f>
mov    %esi,%edx
mov    %eax,%esi
jmp    1189 <main+0x69>
mov    %esi,%ecx
mov    %edx,%esi
cmp    %esi,%eax
jle    1171 <main+0x51>
mov    %esi,0xc(%rsp)
mov    %eax,0x10(%rsp)
mov    %eax,%edx
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [10 x i8] c"%d %d %d\0A\00"
define i32 @main() {
%1 = alloca [3 x i32]
%2 = bitcast [3 x i32]* %1 to i8*
%3 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%4 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 1
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 2
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%7 = load i32, i32* %3
%8 = load i32, i32* %4
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %11
10: ; preds = %0
store i32 %8, i32* %3
store i32 %7, i32* %4
br label %11
11: ; preds = %10, %0
%12 = phi i32 [ %8, %10 ], [ %7, %0 ]
%13 = phi i32 [ %7, %10 ], [ %8, %0 ]
%14 = load i32, i32* %5
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 %14, i32* %4
store i32 %13, i32* %5
br label %17
17: ; preds = %16, %11
%18 = phi i32 [ %13, %16 ], [ %14, %11 ]
%19 = phi i32 [ %14, %16 ], [ %13, %11 ]
%20 = icmp sgt i32 %12, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 %19, i32* %3
store i32 %12, i32* %4
br label %22
22: ; preds = %21, %17
%23 = phi i32 [ %12, %21 ], [ %19, %17 ]
%24 = phi i32 [ %19, %21 ], [ %12, %17 ]
%25 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %23, i32 %18)
ret i32 0
}