#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 CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int ULONG_MAX;
int USHRT_MAX;
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ to_min_int();
int main() {
  int c = 0;
  to_min_int();
  printf("MIN CHAR %d\n", CHAR_MIN);
  printf("MAX CHAR %d\n", CHAR_MAX);
  printf("MAX UNSIGNED CHAR %d\n", UCHAR_MAX);
  printf("MIN SHORT %d\n", SHRT_MIN);
  printf("MAX SHORT %d\n", SHRT_MAX);
  printf("MAX UNSIGNED SHORT %d\n", USHRT_MAX);
  printf("MIN INT %d\n", INT_MIN);
  printf("MAX INT %d\n", INT_MAX);
  printf("MAX UNSIGNED INT %ud\n", UINT_MAX);
  printf("MIN LONG %ld\n", LONG_MIN);
  printf("MAX LONG %ld\n", LONG_MAX);
  printf("MAX UNSIGNED LONG %lu\n", ULONG_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <to_min_int@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xeba(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%esi
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e89(%rip),%rax
mov    (%rax),%esi
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e1c(%rip),%rax
mov    (%rax),%esi
lea    0xeab(%rip),%rdi
call   1040 <printf@plt>
mov    0x2dff(%rip),%rax
mov    (%rax),%esi
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xe9d(%rip),%rdi
call   1040 <printf@plt>
mov    0x2df5(%rip),%rax
mov    (%rax),%esi
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%esi
lea    0xe96(%rip),%rdi
call   1040 <printf@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%esi
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%esi
lea    0xe8e(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%esi
lea    0xe87(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%esi
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <to_min_int@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
lea    0xec0(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%esi
lea    0xeb8(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xeb9(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%esi
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e38(%rip),%rax
mov    (%rax),%esi
lea    0xeab(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e03(%rip),%rax
mov    (%rax),%esi
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e06(%rip),%rax
mov    (%rax),%esi
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
mov    0x2de9(%rip),%rax
mov    (%rax),%esi
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
mov    0x2dcc(%rip),%rax
mov    (%rax),%esi
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
mov    0x2d6a(%rip),%rax
mov    (%rax),%esi
lea    0xe8e(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"MIN CHAR %d\0A\00"
@CHAR_MIN = global i32 0
@.str.1 = [13 x i8] c"MAX CHAR %d\0A\00"
@CHAR_MAX = global i32 0
@.str.2 = [22 x i8] c"MAX UNSIGNED CHAR %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [14 x i8] c"MIN SHORT %d\0A\00"
@SHRT_MIN = global i32 0
@.str.4 = [14 x i8] c"MAX SHORT %d\0A\00"
@SHRT_MAX = global i32 0
@.str.5 = [23 x i8] c"MAX UNSIGNED SHORT %d\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [12 x i8] c"MIN INT %d\0A\00"
@INT_MIN = global i32 0
@.str.7 = [12 x i8] c"MAX INT %d\0A\00"
@INT_MAX = global i32 0
@.str.8 = [22 x i8] c"MAX UNSIGNED INT %ud\0A\00"
@UINT_MAX = global i32 0
@.str.9 = [14 x i8] c"MIN LONG %ld\0A\00"
@LONG_MIN = global i32 0
@.str.10 = [14 x i8] c"MAX LONG %ld\0A\00"
@LONG_MAX = global i32 0
@.str.11 = [23 x i8] c"MAX UNSIGNED LONG %lu\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @to_min_int()
%3 = load i32, i32* @CHAR_MIN
%4 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @CHAR_MAX
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @UCHAR_MAX
%8 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SHRT_MIN
%10 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @SHRT_MAX
%12 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @USHRT_MAX
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @INT_MIN
%16 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @INT_MAX
%18 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @UINT_MAX
%20 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @LONG_MIN
%22 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @LONG_MAX
%24 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @ULONG_MAX
%26 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i32 %25)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"MIN CHAR %d\0A\00"
@CHAR_MIN = global i32 0
@.str.1 = [13 x i8] c"MAX CHAR %d\0A\00"
@CHAR_MAX = global i32 0
@.str.2 = [22 x i8] c"MAX UNSIGNED CHAR %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [14 x i8] c"MIN SHORT %d\0A\00"
@SHRT_MIN = global i32 0
@.str.4 = [14 x i8] c"MAX SHORT %d\0A\00"
@SHRT_MAX = global i32 0
@.str.5 = [23 x i8] c"MAX UNSIGNED SHORT %d\0A\00"
@USHRT_MAX = global i32 0
@.str.6 = [12 x i8] c"MIN INT %d\0A\00"
@INT_MIN = global i32 0
@.str.7 = [12 x i8] c"MAX INT %d\0A\00"
@INT_MAX = global i32 0
@.str.8 = [22 x i8] c"MAX UNSIGNED INT %ud\0A\00"
@UINT_MAX = global i32 0
@.str.9 = [14 x i8] c"MIN LONG %ld\0A\00"
@LONG_MIN = global i32 0
@.str.10 = [14 x i8] c"MAX LONG %ld\0A\00"
@LONG_MAX = global i32 0
@.str.11 = [23 x i8] c"MAX UNSIGNED LONG %lu\0A\00"
@ULONG_MAX = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @to_min_int()
%2 = load i32, i32* @CHAR_MIN
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @CHAR_MAX
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @UCHAR_MAX
%7 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @SHRT_MIN
%9 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @SHRT_MAX
%11 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @USHRT_MAX
%13 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @INT_MAX
%17 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @UINT_MAX
%19 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @LONG_MIN
%21 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @LONG_MAX
%23 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @ULONG_MAX
%25 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i32 %24)
ret i32 0
}