#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*/ INT_MAX;
int /*<<< orphan*/ INT_MIN;
int /*<<< orphan*/ printf(char *, int, int, int, int);
int x1(int /*<<< orphan*/);
int x2(int /*<<< orphan*/);
int x3(int /*<<< orphan*/);
int x4(int /*<<< orphan*/);
int main(void) {
  printf("%d %d %d %d\n", x1(INT_MAX), x2(INT_MAX), x3(INT_MAX), x4(INT_MAX));
  printf("%d %d %d %d\n", x1(INT_MIN), x2(INT_MIN), x3(INT_MIN), x4(INT_MIN));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
call   1060 <x1@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
call   1050 <x2@plt>
mov    %eax,-0x18(%rbp)
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
call   1070 <x3@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e4f(%rip),%rax
mov    (%rax),%edi
call   1030 <x4@plt>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    %eax,%r8d
lea    0xe4d(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
call   1060 <x1@plt>
mov    %eax,-0x10(%rbp)
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
call   1050 <x2@plt>
mov    %eax,-0xc(%rbp)
mov    0x2dff(%rip),%rax
mov    (%rax),%edi
call   1070 <x3@plt>
mov    %eax,-0x8(%rbp)
mov    0x2dee(%rip),%rax
mov    (%rax),%edi
call   1030 <x4@plt>
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    %eax,%r8d
lea    0xdf4(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    0x2e89(%rip),%rbx
mov    (%rbx),%edi
call   1060 <x1@plt>
mov    %eax,%r15d
mov    (%rbx),%edi
call   1050 <x2@plt>
mov    %eax,%r12d
mov    (%rbx),%edi
call   1070 <x3@plt>
mov    %eax,%ebp
mov    (%rbx),%edi
call   1030 <x4@plt>
lea    0xe76(%rip),%r14
mov    %r14,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %ebp,%ecx
mov    %eax,%r8d
call   1040 <printf@plt>
mov    0x2e3c(%rip),%rbp
mov    0x0(%rbp),%edi
call   1060 <x1@plt>
mov    %eax,%r15d
mov    0x0(%rbp),%edi
call   1050 <x2@plt>
mov    %eax,%r12d
mov    0x0(%rbp),%edi
call   1070 <x3@plt>
mov    %eax,%ebx
mov    0x0(%rbp),%edi
call   1030 <x4@plt>
mov    %r14,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %ebx,%ecx
mov    %eax,%r8d
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"%d %d %d %d\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = load i32, i32* @INT_MAX
%3 = call i32 @x1(i32 %2)
%4 = load i32, i32* @INT_MAX
%5 = call i32 @x2(i32 %4)
%6 = load i32, i32* @INT_MAX
%7 = call i32 @x3(i32 %6)
%8 = load i32, i32* @INT_MAX
%9 = call i32 @x4(i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5, i32 %7, i32 %9)
%11 = load i32, i32* @INT_MIN
%12 = call i32 @x1(i32 %11)
%13 = load i32, i32* @INT_MIN
%14 = call i32 @x2(i32 %13)
%15 = load i32, i32* @INT_MIN
%16 = call i32 @x3(i32 %15)
%17 = load i32, i32* @INT_MIN
%18 = call i32 @x4(i32 %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %14, i32 %16, i32 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"%d %d %d %d\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
define i32 @main() {
%1 = load i32, i32* @INT_MAX
%2 = tail call i32 @x1(i32 %1)
%3 = load i32, i32* @INT_MAX
%4 = tail call i32 @x2(i32 %3)
%5 = load i32, i32* @INT_MAX
%6 = tail call i32 @x3(i32 %5)
%7 = load i32, i32* @INT_MAX
%8 = tail call i32 @x4(i32 %7)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 %6, i32 %8)
%10 = load i32, i32* @INT_MIN
%11 = tail call i32 @x1(i32 %10)
%12 = load i32, i32* @INT_MIN
%13 = tail call i32 @x2(i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = tail call i32 @x3(i32 %14)
%16 = load i32, i32* @INT_MIN
%17 = tail call i32 @x4(i32 %16)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %13, i32 %15, i32 %17)
ret i32 0
}