#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 input_n(int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  int n1;
  int n2;
  int max;
  n1 = input_n(0, 200);
  n2 = input_n(0, 150);
  max = 0;
  if (n1 > n2) {
    max = n1;
  } else {
    max = n2;
  }
  printf("il numero maggiore e' %d", max);
  printf("\n");
  system("PAUSE");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
mov    $0xc8,%esi
call   1030 <input_n@plt>
mov    %eax,-0x8(%rbp)
xor    %edi,%edi
mov    $0x96,%esi
call   1030 <input_n@plt>
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    117b <main+0x4b>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
jmp    1181 <main+0x51>
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe74(%rip),%rdi
call   1040 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
mov    $0xc8,%esi
call   1040 <input_n@plt>
mov    %eax,%ebx
xor    %edi,%edi
mov    $0x96,%esi
call   1040 <input_n@plt>
cmp    %eax,%ebx
cmovle %eax,%ebx
lea    0xe99(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xe98(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"il numero maggiore e' %d\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @input_n(i32 0, i32 200)
store i32 %5, i32* %2
%6 = call i32 @input_n(i32 0, i32 150)
store i32 %6, i32* %3
store i32 0, i32* %4
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = icmp sgt i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = load i32, i32* %2
store i32 %11, i32* %4
br label %14
12: ; preds = %0
%13 = load i32, i32* %3
store i32 %13, i32* %4
br label %14
14: ; preds = %12, %10
%15 = load i32, i32* %4
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@.str = [25 x i8] c"il numero maggiore e' %d\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = tail call i32 @input_n(i32 0, i32 200)
%2 = tail call i32 @input_n(i32 0, i32 150)
%3 = icmp sgt i32 %1, %2
%4 = select i1 %3, i32 %1, i32 %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}