#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 */
scalar_t__ EOF;
int max(long long, long long, int *);
int /*<<< orphan*/ printf(char *, int, ...);
scalar_t__ scanf(char *, long long *, long long *);
int /*<<< orphan*/ step(long long, int *);
int *table();
int main() {
  int s, *t = table();
  long long a, b, i;
  for (i = 1; i <= 10000000; i++) {
    step(i, t);
  }
  while (scanf("%lld%lld", &a, &b) != EOF) {
    printf("%lld %lld ", a, b);
    if (a < b)
      printf("%d\n", max(a, b, t));
    else
      printf("%d\n", max(b, a, t));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <table@plt>
mov    %rax,-0x10(%rbp)
movq   $0x1,-0x28(%rbp)
cmpq   $0x989680,-0x28(%rbp)
jg     119e <main+0x4e>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <step@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    1172 <main+0x22>
jmp    11a3 <main+0x53>
lea    0xe56(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1070 <scanf@plt>
mov    0x2e2a(%rip),%rcx
cmp    (%rcx),%rax
je     1239 <main+0xe9>
mov    -0x18(%rbp),%rax
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jge    1213 <main+0xc3>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <max@plt>
mov    %eax,%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1234 <main+0xe4>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <max@plt>
mov    %eax,%esi
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a3 <main+0x53>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
call   1050 <table@plt>
mov    %rax,%rbx
mov    $0x1,%ebp
nopl   (%rax)
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <step@plt>
add    $0x1,%rbp
cmp    $0x989681,%rbp
jne    1170 <main+0x20>
lea    0xe71(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1070 <scanf@plt>
mov    0x2e43(%rip),%r14
cmp    (%r14),%rax
jne    11bb <main+0x6b>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe52(%rip),%r15
lea    0xe37(%rip),%r12
lea    0x10(%rsp),%r13
lea    0x8(%rsp),%rbp
jmp    120a <main+0xba>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rax,%rdi
mov    %rbx,%rdx
call   1040 <max@plt>
mov    %eax,%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1070 <scanf@plt>
cmp    (%r14),%rax
je     11aa <main+0x5a>
mov    0x10(%rsp),%esi
mov    0x8(%rsp),%rdx
lea    0xdef(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rax
cmp    %rax,%rsi
jge    11e0 <main+0x90>
mov    %rsi,%rdi
mov    %rax,%rsi
jmp    11e3 <main+0x93>

LLVM IR (-O0):
@.str = [9 x i8] c"%lld%lld\00"
@EOF = global i64 0
@.str.1 = [11 x i8] c"%lld %lld \00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
%7 = call i32* (...) @table()
store i32* %7, i32** %3
store i64 1, i64* %6
br label %8
8: ; preds = %15, %0
%9 = load i64, i64* %6
%10 = icmp sle i64 %9, 10000000
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i64, i64* %6
%13 = load i32*, i32** %3
%14 = call i32 @step(i64 %12, i32* %13)
br label %15
15: ; preds = %11
%16 = load i64, i64* %6
%17 = add nsw i64 %16, 1
store i64 %17, i64* %6
br label %8
18: ; preds = %8
br label %19
19: ; preds = %43, %18
%20 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i64* %4, i64* %5)
%21 = load i64, i64* @EOF
%22 = icmp ne i64 %20, %21
br i1 %22, label %23, label %44
23: ; preds = %19
%24 = load i64, i64* %4
%25 = trunc i64 %24 to i32
%26 = load i64, i64* %5
%27 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %25, i64 %26)
%28 = load i64, i64* %4
%29 = load i64, i64* %5
%30 = icmp slt i64 %28, %29
br i1 %30, label %31, label %37
31: ; preds = %23
%32 = load i64, i64* %4
%33 = load i64, i64* %5
%34 = load i32*, i32** %3
%35 = call i32 @max(i64 %32, i64 %33, i32* %34)
%36 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %35)
br label %43
37: ; preds = %23
%38 = load i64, i64* %5
%39 = load i64, i64* %4
%40 = load i32*, i32** %3
%41 = call i32 @max(i64 %38, i64 %39, i32* %40)
%42 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %37, %31
br label %19
44: ; preds = %19
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%lld%lld\00"
@EOF = global i64 0
@.str.1 = [11 x i8] c"%lld %lld \00"
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = alloca i64
%3 = tail call i32* (...) @table()
%4 = bitcast i64* %1 to i8*
%5 = bitcast i64* %2 to i8*
br label %10
6: ; preds = %10
%7 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i64* %1, i64* %2)
%8 = load i64, i64* @EOF
%9 = icmp eq i64 %7, %8
br i1 %9, label %33, label %15
10: ; preds = %0, %10
%11 = phi i64 [ 1, %0 ], [ %13, %10 ]
%12 = tail call i32 @step(i64 %11, i32* %3)
%13 = add nuw nsw i64 %11, 1
%14 = icmp eq i64 %13, 10000001
br i1 %14, label %6, label %10
15: ; preds = %6, %27
%16 = load i64, i64* %1
%17 = trunc i64 %16 to i32
%18 = load i64, i64* %2
%19 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %17, i64 %18)
%20 = load i64, i64* %1
%21 = load i64, i64* %2
%22 = icmp slt i64 %20, %21
br i1 %22, label %23, label %25
23: ; preds = %15
%24 = call i32 @max(i64 %20, i64 %21, i32* %3)
br label %27
25: ; preds = %15
%26 = call i32 @max(i64 %21, i64 %20, i32* %3)
br label %27
27: ; preds = %25, %23
%28 = phi i32 [ %26, %25 ], [ %24, %23 ]
%29 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i64* %1, i64* %2)
%31 = load i64, i64* @EOF
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %15
33: ; preds = %27, %6
ret i32 0
}