#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 *, int *);
int main() {
  int a, b, c;
  printf("please input three numbers :");
  scanf("%d%d%d", &a, &b, &c);
  if (a > b && a > c) {
    if (b > c)
      printf("%d>%d>%d\n", a, b, c);
    else
      printf("%d>%d>%d\n", a, c, b);
  } else if (b > a && b > c) {
    if (a > c)
      printf("%d>%d>%d\n", b, a, c);
    else
      printf("%d>%d>%d\n", b, c, a);
  } else if (c > a && c > b) {
    if (a > b)
      printf("%d>%d>%d\n", c, a, b);
    else
      printf("%d>%d>%d\n", c, b, a);
  }
  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    0xed9(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11b1 <main+0x91>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11b1 <main+0x91>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1195 <main+0x75>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ac <main+0x8c>
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1273 <main+0x153>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    120d <main+0xed>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    120d <main+0xed>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    11f1 <main+0xd1>
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1208 <main+0xe8>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    126e <main+0x14e>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1269 <main+0x149>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1269 <main+0x149>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    124d <main+0x12d>
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xde3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1264 <main+0x144>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1269 <main+0x149>
jmp    126e <main+0x14e>
jmp    1273 <main+0x153>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%eax
cmp    %eax,%ecx
jle    1178 <main+0x58>
mov    0xc(%rsp),%r8d
cmp    %r8d,%ecx
jle    1178 <main+0x58>
lea    0xeba(%rip),%rdi
mov    %ecx,%esi
cmp    %r8d,%eax
jle    11be <main+0x9e>
mov    %eax,%edx
mov    %r8d,%ecx
jmp    11c7 <main+0xa7>
mov    0xc(%rsp),%r8d
cmp    %ecx,%eax
jle    119b <main+0x7b>
cmp    %r8d,%eax
jle    119b <main+0x7b>
lea    0xe97(%rip),%rdi
mov    %eax,%esi
cmp    %r8d,%ecx
jle    11b9 <main+0x99>
mov    %ecx,%edx
mov    %r8d,%ecx
jmp    11c7 <main+0xa7>
cmp    %ecx,%r8d
jle    11ce <main+0xae>
cmp    %eax,%r8d
jle    11ce <main+0xae>
lea    0xe78(%rip),%rdi
mov    %r8d,%esi
cmp    %eax,%ecx
jle    11c5 <main+0xa5>
mov    %ecx,%edx
mov    %eax,%ecx
jmp    11c7 <main+0xa7>
mov    %r8d,%edx
jmp    11c7 <main+0xa7>
mov    %r8d,%edx
mov    %eax,%ecx
jmp    11c7 <main+0xa7>
mov    %eax,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"please input three numbers :\00"
@.str.1 = [7 x i8] c"%d%d%d\00"
@.str.2 = [10 x i8] c"%d>%d>%d\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 ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %29
10: ; preds = %0
%11 = load i32, i32* %2
%12 = load i32, i32* %4
%13 = icmp sgt i32 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = load i32, i32* %4
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %19, i32 %20, i32 %21)
br label %28
23: ; preds = %14
%24 = load i32, i32* %2
%25 = load i32, i32* %4
%26 = load i32, i32* %3
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %24, i32 %25, i32 %26)
br label %28
28: ; preds = %23, %18
br label %77
29: ; preds = %10, %0
%30 = load i32, i32* %3
%31 = load i32, i32* %2
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %52
33: ; preds = %29
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = icmp sgt i32 %34, %35
br i1 %36, label %37, label %52
37: ; preds = %33
%38 = load i32, i32* %2
%39 = load i32, i32* %4
%40 = icmp sgt i32 %38, %39
br i1 %40, label %41, label %46
41: ; preds = %37
%42 = load i32, i32* %3
%43 = load i32, i32* %2
%44 = load i32, i32* %4
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %42, i32 %43, i32 %44)
br label %51
46: ; preds = %37
%47 = load i32, i32* %3
%48 = load i32, i32* %4
%49 = load i32, i32* %2
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %47, i32 %48, i32 %49)
br label %51
51: ; preds = %46, %41
br label %76
52: ; preds = %33, %29
%53 = load i32, i32* %4
%54 = load i32, i32* %2
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %75
56: ; preds = %52
%57 = load i32, i32* %4
%58 = load i32, i32* %3
%59 = icmp sgt i32 %57, %58
br i1 %59, label %60, label %75
60: ; preds = %56
%61 = load i32, i32* %2
%62 = load i32, i32* %3
%63 = icmp sgt i32 %61, %62
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = load i32, i32* %4
%66 = load i32, i32* %2
%67 = load i32, i32* %3
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %65, i32 %66, i32 %67)
br label %74
69: ; preds = %60
%70 = load i32, i32* %4
%71 = load i32, i32* %3
%72 = load i32, i32* %2
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %70, i32 %71, i32 %72)
br label %74
74: ; preds = %69, %64
br label %75
75: ; preds = %74, %56, %52
br label %76
76: ; preds = %75, %51
br label %77
77: ; preds = %76, %28
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"please input three numbers :\00"
@.str.1 = [7 x i8] c"%d%d%d\00"
@.str.2 = [10 x i8] c"%d>%d>%d\0A\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 ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = icmp sgt i32 %9, %10
br i1 %11, label %12, label %21
12: ; preds = %0
%13 = load i32, i32* %3
%14 = icmp sgt i32 %9, %13
br i1 %14, label %15, label %21
15: ; preds = %12
%16 = icmp sgt i32 %10, %13
br i1 %16, label %17, label %19
17: ; preds = %15
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %10, i32 %13)
br label %41
19: ; preds = %15
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %9, i32 %13, i32 %10)
br label %41
21: ; preds = %12, %0
%22 = icmp sgt i32 %10, %9
%23 = load i32, i32* %3
%24 = icmp sgt i32 %10, %23
%25 = select i1 %22, i1 %24, i1 false
br i1 %25, label %26, label %32
26: ; preds = %21
%27 = icmp sgt i32 %9, %23
br i1 %27, label %28, label %30
28: ; preds = %26
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %9, i32 %23)
br label %41
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %10, i32 %23, i32 %9)
br label %41
32: ; preds = %21
%33 = icmp sgt i32 %23, %9
%34 = icmp sgt i32 %23, %10
%35 = select i1 %33, i1 %34, i1 false
br i1 %35, label %36, label %41
36: ; preds = %32
br i1 %11, label %37, label %39
37: ; preds = %36
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %23, i32 %9, i32 %10)
br label %41
39: ; preds = %36
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %23, i32 %10, i32 %9)
br label %41
41: ; preds = %30, %28, %37, %39, %32, %17, %19
ret i32 0
}