#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 /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  if (a > b && a > c)
    printf("%d eh o maior\n", a);
  if (b > a && b > c)
    printf("%d eh o maior\n", b);
  if (c > a && c > b)
    printf("%d eh o maior\n", c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%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    116e <main+0x4e>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    116e <main+0x4e>
mov    -0x8(%rbp),%esi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    1195 <main+0x75>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    1195 <main+0x75>
mov    -0xc(%rbp),%esi
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jle    11bc <main+0x9c>
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    11bc <main+0x9c>
mov    -0x10(%rbp),%esi
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%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
mov    0xc(%rsp),%esi
cmp    %eax,%ecx
jle    116d <main+0x4d>
cmp    %esi,%ecx
jle    116d <main+0x4d>
lea    0xead(%rip),%rdi
mov    %ecx,%esi
call   1030 <printf@plt>
mov    0x10(%rsp),%eax
mov    0x14(%rsp),%ecx
mov    0xc(%rsp),%esi
cmp    %ecx,%eax
jle    118f <main+0x6f>
cmp    %esi,%eax
jle    118f <main+0x6f>
lea    0xe8b(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%eax
cmp    %ecx,%esi
jle    11a3 <main+0x83>
cmp    %eax,%esi
jle    11a3 <main+0x83>
lea    0xe69(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

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