#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 argc, const char *argv[]) {
  int a, b, c, max;
  scanf("%d %d %d", &a, &b, &c);
  if (a >= b && a >= c)
    max = a;
  else if (c >= a && c >= b)
    max = c;
  else
    max = b;
  printf("%d", max);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     1171 <main+0x51>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     1171 <main+0x51>
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    119f <main+0x7f>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1194 <main+0x74>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     1194 <main+0x74>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    119a <main+0x7a>
mov    -0x18(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    119f <main+0x7f>
mov    -0x20(%rbp),%esi
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%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),%eax
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%edx
cmp    %ecx,%edx
mov    %edx,%edi
cmovl  %ecx,%edi
cmp    %eax,%edx
cmovl  %ecx,%edi
mov    %eax,%esi
cmovg  %edi,%esi
cmp    %ecx,%eax
cmovl  %edi,%esi
lea    0xe9e(%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 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7, i32* %8)
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = icmp sge i32 %11, %12
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, i32* %6
%16 = load i32, i32* %8
%17 = icmp sge i32 %15, %16
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = load i32, i32* %6
store i32 %19, i32* %9
br label %33
20: ; preds = %14, %2
%21 = load i32, i32* %8
%22 = load i32, i32* %6
%23 = icmp sge i32 %21, %22
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = load i32, i32* %8
%26 = load i32, i32* %7
%27 = icmp sge i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = load i32, i32* %8
store i32 %29, i32* %9
br label %32
30: ; preds = %24, %20
%31 = load i32, i32* %7
store i32 %31, i32* %9
br label %32
32: ; preds = %30, %28
br label %33
33: ; preds = %32, %18
%34 = load i32, i32* %9
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32* %5)
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp slt i32 %10, %11
%13 = load i32, i32* %5
%14 = icmp slt i32 %10, %13
%15 = select i1 %12, i1 true, i1 %14
%16 = icmp slt i32 %13, %10
%17 = icmp slt i32 %13, %11
%18 = select i1 %16, i1 true, i1 %17
%19 = select i1 %18, i32 %11, i32 %13
%20 = select i1 %15, i32 %19, i32 %10
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %20)
ret i32 0
}