#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*/ printf(char *, unsigned long);
int main(void) {
  printf("Minimum Signed Char %d\n", -(char)((unsigned char)~0 >> 1) - 1);
  printf("Maximum Signed Char %d\n", (char)((unsigned char)~0 >> 1));
  printf("Minimum Signed Short %d\n", -(short)((unsigned short)~0 >> 1) - 1);
  printf("Maximum Signed Short %d\n", (short)((unsigned short)~0 >> 1));
  printf("Minimum Signed Int %d\n", -(int)((unsigned int)~0 >> 1) - 1);
  printf("Maximum Signed Int %d\n", (int)((unsigned int)~0 >> 1));
  printf("Minimum Signed Long %ld\n", -(long)((unsigned long)~0 >> 1) - 1);
  printf("Maximum signed Long %ld\n", (long)((unsigned long)~0 >> 1));
  printf("Maximum Unsigned Char %d\n", (unsigned char)~0);
  printf("Maximum Unsigned Short %d\n", (unsigned short)~0);
  printf("Maximum Unsigned Int %u\n", (unsigned int)~0);
  printf("Maximum Unsigned Long %lu\n", (unsigned long)~0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0xffffffffffffff80,%rsi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x7f,%esi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0xffffffffffff8000,%rsi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x7fff,%esi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0xffffffff80000000,%rsi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x7fffffff,%esi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
movabs $0x8000000000000000,%rsi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
movabs $0x7fffffffffffffff,%rsi
ff ff 7f
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0xffff,%esi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0xffffffff,%esi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0xffffffffffffffff,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
mov    $0xffffffffffffff80,%rsi
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x7f,%esi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0xffffffffffff8000,%rsi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x7fff,%esi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0xffffffff80000000,%rsi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x7fffffff,%esi
call   1030 <printf@plt>
movabs $0x7fffffffffffffff,%rbx
ff ff 7f
lea    0x1(%rbx),%rsi
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0xffff,%esi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0xffffffff,%esi
call   1030 <printf@plt>
lea    0xf30(%rip),%rdi
mov    $0xffffffffffffffff,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Minimum Signed Char %d\0A\00"
@.str.1 = [24 x i8] c"Maximum Signed Char %d\0A\00"
@.str.2 = [25 x i8] c"Minimum Signed Short %d\0A\00"
@.str.3 = [25 x i8] c"Maximum Signed Short %d\0A\00"
@.str.4 = [23 x i8] c"Minimum Signed Int %d\0A\00"
@.str.5 = [23 x i8] c"Maximum Signed Int %d\0A\00"
@.str.6 = [25 x i8] c"Minimum Signed Long %ld\0A\00"
@.str.7 = [25 x i8] c"Maximum signed Long %ld\0A\00"
@.str.8 = [26 x i8] c"Maximum Unsigned Char %d\0A\00"
@.str.9 = [27 x i8] c"Maximum Unsigned Short %d\0A\00"
@.str.10 = [25 x i8] c"Maximum Unsigned Int %u\0A\00"
@.str.11 = [27 x i8] c"Maximum Unsigned Long %lu\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 -128)
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i64 127)
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 -32768)
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 32767)
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 -2147483648)
%7 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i64 2147483647)
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i64 -9223372036854775808)
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 9223372036854775807)
%10 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i64 255)
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 65535)
%12 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i64 4294967295)
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i64 -1)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Minimum Signed Char %d\0A\00"
@.str.1 = [24 x i8] c"Maximum Signed Char %d\0A\00"
@.str.2 = [25 x i8] c"Minimum Signed Short %d\0A\00"
@.str.3 = [25 x i8] c"Maximum Signed Short %d\0A\00"
@.str.4 = [23 x i8] c"Minimum Signed Int %d\0A\00"
@.str.5 = [23 x i8] c"Maximum Signed Int %d\0A\00"
@.str.6 = [25 x i8] c"Minimum Signed Long %ld\0A\00"
@.str.7 = [25 x i8] c"Maximum signed Long %ld\0A\00"
@.str.8 = [26 x i8] c"Maximum Unsigned Char %d\0A\00"
@.str.9 = [27 x i8] c"Maximum Unsigned Short %d\0A\00"
@.str.10 = [25 x i8] c"Maximum Unsigned Int %u\0A\00"
@.str.11 = [27 x i8] c"Maximum Unsigned Long %lu\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i64 -128)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i64 127)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 -32768)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 32767)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 -2147483648)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i64 2147483647)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i64 -9223372036854775808)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i64 9223372036854775807)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i64 255)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i64 65535)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i64 4294967295)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i64 -1)
ret i32 0
}