#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 LONG_MAX;
int LONG_MIN;
int SCHAR_MAX;
int SHRT_MAX;
int SHRT_MIN;
int UCHAR_MAX;
int /*<<< orphan*/ printf(char *, int);
int main() {
  char a;
  printf("Singed char is range to %d\n", SCHAR_MAX);
  printf("Unsinged char is range to %u\n", UCHAR_MAX);
  printf("short min = %d\n", SHRT_MIN);
  printf("short max = %d\n", SHRT_MAX);
  printf("int max = %d\n", INT_MAX);
  printf("long min = %ld\n", LONG_MIN);
  printf("long max = %ld\n", LONG_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ebc(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e23(%rip),%rax
mov    (%rax),%esi
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ec3(%rip),%rax
mov    (%rax),%esi
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%esi
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%esi
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e2a(%rip),%rax
mov    (%rax),%esi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Singed char is range to %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.1 = [30 x i8] c"Unsinged char is range to %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [16 x i8] c"short min = %d\0A\00"
@SHRT_MIN = global i32 0
@.str.3 = [16 x i8] c"short max = %d\0A\00"
@SHRT_MAX = global i32 0
@.str.4 = [14 x i8] c"int max = %d\0A\00"
@INT_MAX = global i32 0
@.str.5 = [16 x i8] c"long min = %ld\0A\00"
@LONG_MIN = global i32 0
@.str.6 = [16 x i8] c"long max = %ld\0A\00"
@LONG_MAX = global i32 0
define i32 @main() {
%1 = alloca i8
%2 = load i32, i32* @SCHAR_MAX
%3 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @UCHAR_MAX
%5 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @SHRT_MIN
%7 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @SHRT_MAX
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @INT_MAX
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @LONG_MIN
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @LONG_MAX
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"Singed char is range to %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.1 = [30 x i8] c"Unsinged char is range to %u\0A\00"
@UCHAR_MAX = global i32 0
@.str.2 = [16 x i8] c"short min = %d\0A\00"
@SHRT_MIN = global i32 0
@.str.3 = [16 x i8] c"short max = %d\0A\00"
@SHRT_MAX = global i32 0
@.str.4 = [14 x i8] c"int max = %d\0A\00"
@INT_MAX = global i32 0
@.str.5 = [16 x i8] c"long min = %ld\0A\00"
@LONG_MIN = global i32 0
@.str.6 = [16 x i8] c"long max = %ld\0A\00"
@LONG_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @SCHAR_MAX
%2 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @UCHAR_MAX
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @SHRT_MIN
%6 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SHRT_MAX
%8 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @INT_MAX
%10 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @LONG_MIN
%12 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @LONG_MAX
%14 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %13)
ret i32 0
}