#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 char, ...);
int main() {
  printf("Minimum Signed Char %d\n", -((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", -(int)((unsigned long)~0 >> 1) - 1);
  printf("Maximum Signed long %ld\n", (long)((unsigned long)~0 >> 1));
  printf("Minimum %d Maximum Unsigned Char %d\n", 0, (unsigned char)~0);
  printf("Minimum %d Maximum Unsigned Short %d\n", 0, (unsigned short)~0);
  printf("Minimum %d Maximum Unsigned Int %u\n", 0, (unsigned int)~0);
  printf("Minimum %d Maximum Unsigned Long %lu\n", 0, (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    $0x80,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x7f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
xor    %esi,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0xff,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
xor    %esi,%esi
mov    $0xffff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffffffffffff,%rdx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x7f,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
xor    %esi,%esi
mov    $0xffff,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
xor    %esi,%esi
mov    $0xffffffffffffffff,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
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 = [37 x i8] c"Minimum %d Maximum Unsigned Char %d\0A\00"
@.str.9 = [38 x i8] c"Minimum %d Maximum Unsigned Short %d\0A\00"
@.str.10 = [36 x i8] c"Minimum %d Maximum Unsigned Int %u\0A\00"
@.str.11 = [38 x i8] c"Minimum %d Maximum Unsigned Long %lu\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8 zeroext -128)
%3 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 zeroext 127)
%4 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8 zeroext 0)
%5 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8 zeroext -1)
%6 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8 zeroext 0)
%7 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8 zeroext -1)
%8 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8 zeroext 0)
%9 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8 zeroext -1)
%10 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i8 zeroext 0, i32 255)
%11 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8 zeroext 0, i32 65535)
%12 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8 zeroext 0, i32 -1)
%13 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i8 zeroext 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 = [37 x i8] c"Minimum %d Maximum Unsigned Char %d\0A\00"
@.str.9 = [38 x i8] c"Minimum %d Maximum Unsigned Short %d\0A\00"
@.str.10 = [36 x i8] c"Minimum %d Maximum Unsigned Int %u\0A\00"
@.str.11 = [38 x i8] c"Minimum %d Maximum Unsigned Long %lu\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8 zeroext -128)
%2 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8 zeroext 127)
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8 zeroext 0)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8 zeroext -1)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8 zeroext 0)
%6 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8 zeroext -1)
%7 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8 zeroext 0)
%8 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8 zeroext -1)
%9 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i8 zeroext 0, i32 255)
%10 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8 zeroext 0, i32 65535)
%11 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i8 zeroext 0, i32 -1)
%12 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i8 zeroext 0, i64 -1)
ret i32 0
}