#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 INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int UINT_MAX;
int ULONG_MAX;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ t32(int);
int /*<<< orphan*/ t3264(int);
int /*<<< orphan*/ t64(int);
int main() {
  printf("lpr\n");
  t32(0);
  t32(1);
  t32(-1);
  t32(INT_MAX);
  t32(INT_MIN);
  t32(UINT_MAX);
  printf("lpgr\n");
  t64(0);
  t64(1);
  t64(-1);
  t64(INT_MAX);
  t64(INT_MIN);
  t64(UINT_MAX);
  t64(LONG_MAX);
  t64(LONG_MIN);
  t64(ULONG_MAX);
  printf("lpgfr\n");
  t3264(0);
  t3264(1);
  t64(-1);
  t3264(INT_MAX);
  t3264(INT_MIN);
  t3264(UINT_MAX);
  t3264(LONG_MAX);
  t3264(LONG_MIN);
  t3264(ULONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1060 <t32@plt>
mov    $0x1,%edi
call   1060 <t32@plt>
mov    $0xffffffff,%edi
call   1060 <t32@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edi
call   1060 <t32@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
call   1060 <t32@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
call   1060 <t32@plt>
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <t64@plt>
mov    $0x1,%edi
call   1040 <t64@plt>
mov    $0xffffffff,%edi
call   1040 <t64@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
mov    0x2df6(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
mov    0x2dc8(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
mov    0x2dd2(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
call   1040 <t64@plt>
lea    0xde9(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <t3264@plt>
mov    $0x1,%edi
call   1050 <t3264@plt>
mov    $0xffffffff,%edi
call   1040 <t64@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
mov    0x2d7b(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
mov    0x2d4d(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
call   1050 <t3264@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1060 <t32@plt>
mov    $0x1,%edi
call   1060 <t32@plt>
mov    $0xffffffff,%edi
call   1060 <t32@plt>
mov    0x2e6f(%rip),%r14
mov    (%r14),%edi
call   1060 <t32@plt>
mov    0x2e48(%rip),%r15
mov    (%r15),%edi
call   1060 <t32@plt>
mov    0x2e49(%rip),%r12
mov    (%r12),%edi
call   1060 <t32@plt>
lea    0xe5d(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <t64@plt>
mov    $0x1,%edi
call   1040 <t64@plt>
mov    $0xffffffff,%edi
call   1040 <t64@plt>
mov    (%r14),%edi
call   1040 <t64@plt>
mov    (%r15),%edi
call   1040 <t64@plt>
mov    (%r12),%edi
call   1040 <t64@plt>
mov    0x2dd9(%rip),%r13
mov    0x0(%r13),%edi
call   1040 <t64@plt>
mov    0x2de1(%rip),%rbx
mov    (%rbx),%edi
call   1040 <t64@plt>
mov    0x2dab(%rip),%rbp
mov    0x0(%rbp),%edi
call   1040 <t64@plt>
lea    0xdf5(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1050 <t3264@plt>
mov    $0x1,%edi
call   1050 <t3264@plt>
mov    $0xffffffff,%edi
call   1040 <t64@plt>
mov    (%r14),%edi
call   1050 <t3264@plt>
mov    (%r15),%edi
call   1050 <t3264@plt>
mov    (%r12),%edi
call   1050 <t3264@plt>
mov    0x0(%r13),%edi
call   1050 <t3264@plt>
mov    (%rbx),%edi
call   1050 <t3264@plt>
mov    0x0(%rbp),%edi
call   1050 <t3264@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"lpr\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@UINT_MAX = global i32 0
@.str.1 = [6 x i8] c"lpgr\0A\00"
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@ULONG_MAX = global i32 0
@.str.2 = [7 x i8] c"lpgfr\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @t32(i32 0)
%4 = call i32 @t32(i32 1)
%5 = call i32 @t32(i32 -1)
%6 = load i32, i32* @INT_MAX
%7 = call i32 @t32(i32 %6)
%8 = load i32, i32* @INT_MIN
%9 = call i32 @t32(i32 %8)
%10 = load i32, i32* @UINT_MAX
%11 = call i32 @t32(i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @t64(i32 0)
%14 = call i32 @t64(i32 1)
%15 = call i32 @t64(i32 -1)
%16 = load i32, i32* @INT_MAX
%17 = call i32 @t64(i32 %16)
%18 = load i32, i32* @INT_MIN
%19 = call i32 @t64(i32 %18)
%20 = load i32, i32* @UINT_MAX
%21 = call i32 @t64(i32 %20)
%22 = load i32, i32* @LONG_MAX
%23 = call i32 @t64(i32 %22)
%24 = load i32, i32* @LONG_MIN
%25 = call i32 @t64(i32 %24)
%26 = load i32, i32* @ULONG_MAX
%27 = call i32 @t64(i32 %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @t3264(i32 0)
%30 = call i32 @t3264(i32 1)
%31 = call i32 @t64(i32 -1)
%32 = load i32, i32* @INT_MAX
%33 = call i32 @t3264(i32 %32)
%34 = load i32, i32* @INT_MIN
%35 = call i32 @t3264(i32 %34)
%36 = load i32, i32* @UINT_MAX
%37 = call i32 @t3264(i32 %36)
%38 = load i32, i32* @LONG_MAX
%39 = call i32 @t3264(i32 %38)
%40 = load i32, i32* @LONG_MIN
%41 = call i32 @t3264(i32 %40)
%42 = load i32, i32* @ULONG_MAX
%43 = call i32 @t3264(i32 %42)
ret i32 0
}

LLVM IR (-O2):
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@UINT_MAX = global i32 0
@LONG_MAX = global i32 0
@LONG_MIN = global i32 0
@ULONG_MAX = global i32 0
@str = [4 x i8] c"lpr\00"
@str.3 = [5 x i8] c"lpgr\00"
@str.4 = [6 x i8] c"lpgfr\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @t32(i32 0)
%3 = tail call i32 @t32(i32 1)
%4 = tail call i32 @t32(i32 -1)
%5 = load i32, i32* @INT_MAX
%6 = tail call i32 @t32(i32 %5)
%7 = load i32, i32* @INT_MIN
%8 = tail call i32 @t32(i32 %7)
%9 = load i32, i32* @UINT_MAX
%10 = tail call i32 @t32(i32 %9)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.3, i64 0, i64 0))
%12 = tail call i32 @t64(i32 0)
%13 = tail call i32 @t64(i32 1)
%14 = tail call i32 @t64(i32 -1)
%15 = load i32, i32* @INT_MAX
%16 = tail call i32 @t64(i32 %15)
%17 = load i32, i32* @INT_MIN
%18 = tail call i32 @t64(i32 %17)
%19 = load i32, i32* @UINT_MAX
%20 = tail call i32 @t64(i32 %19)
%21 = load i32, i32* @LONG_MAX
%22 = tail call i32 @t64(i32 %21)
%23 = load i32, i32* @LONG_MIN
%24 = tail call i32 @t64(i32 %23)
%25 = load i32, i32* @ULONG_MAX
%26 = tail call i32 @t64(i32 %25)
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.4, i64 0, i64 0))
%28 = tail call i32 @t3264(i32 0)
%29 = tail call i32 @t3264(i32 1)
%30 = tail call i32 @t64(i32 -1)
%31 = load i32, i32* @INT_MAX
%32 = tail call i32 @t3264(i32 %31)
%33 = load i32, i32* @INT_MIN
%34 = tail call i32 @t3264(i32 %33)
%35 = load i32, i32* @UINT_MAX
%36 = tail call i32 @t3264(i32 %35)
%37 = load i32, i32* @LONG_MAX
%38 = tail call i32 @t3264(i32 %37)
%39 = load i32, i32* @LONG_MIN
%40 = tail call i32 @t3264(i32 %39)
%41 = load i32, i32* @ULONG_MAX
%42 = tail call i32 @t3264(i32 %41)
ret i32 0
}