#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 SCHAR_MAX;
int SCHAR_MIN;
int UCHAR_MAX;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("minimum value for a signed char: %d\n", SCHAR_MIN);
  printf("maximum value for a signed char: %d\n", SCHAR_MAX);
  printf("maximum value for an unsigned char: %d\n", (int)UCHAR_MAX);
  printf("minimum value for a char: %d\n", (int)CHAR_MIN);
  printf("maximum value for a char: %d\n", (int)CHAR_MAX);
  if (SCHAR_MIN == CHAR_MIN && SCHAR_MAX == CHAR_MAX)
    printf("The 'char' type seems to be the same as 'signed char' on this "
           "machine.\n");
  else if (CHAR_MIN == 0 && UCHAR_MAX == CHAR_MAX)
    printf("The 'char' type seems to be the same as 'unsigned char' on this "
           "machine.\n");
  else
    printf("Huh?\n");
  signed char signedH = 'H';
  unsigned char unsignedH = 'H';
  char plainH = 'H';
  printf("SignedH: %c %d\n", signedH, signedH);
  printf("UnsignedH: %c %d\n", unsignedH, unsignedH);
  printf("PlainH: %c %d\n", plainH, plainH);
  signed char signedTwoHund = 200;
  unsigned char unsignedTwoHund = 200;
  char plainTwoHund = 200;
  printf("SignedTwoHund: %c %d\n", signedTwoHund, signedTwoHund);
  printf("UnsignedTwoHund: %c %d\n", unsignedTwoHund, unsignedTwoHund);
  printf("PlainTwoHund: %c %d\n", plainTwoHund, plainTwoHund);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ea2(%rip),%rax
mov    (%rax),%esi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%esi
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%esi
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%eax
mov    0x2e36(%rip),%rcx
cmp    (%rcx),%eax
jne    11d5 <main+0xc5>
mov    0x2e0f(%rip),%rax
mov    (%rax),%eax
mov    0x2e26(%rip),%rcx
cmp    (%rcx),%eax
jne    11d5 <main+0xc5>
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1223 <main+0x113>
mov    0x2dfc(%rip),%rax
cmpl   $0x0,(%rax)
jne    1210 <main+0x100>
mov    0x2e04(%rip),%rax
mov    (%rax),%eax
mov    0x2deb(%rip),%rcx
cmp    (%rcx),%eax
jne    1210 <main+0x100>
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    121e <main+0x10e>
lea    0xf29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1223 <main+0x113>
movb   $0x48,-0x5(%rbp)
movb   $0x48,-0x6(%rbp)
movb   $0x48,-0x7(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xf08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x7(%rbp),%esi
movsbl -0x7(%rbp),%edx
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xc8,-0x8(%rbp)
movb   $0xc8,-0x9(%rbp)
movb   $0xc8,-0xa(%rbp)
movsbl -0x8(%rbp),%esi
movsbl -0x8(%rbp),%edx
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movzbl -0x9(%rbp),%esi
movzbl -0x9(%rbp),%edx
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xa(%rbp),%esi
movsbl -0xa(%rbp),%edx
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    0x2e98(%rip),%r12
mov    (%r12),%esi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e77(%rip),%r14
mov    (%r14),%esi
lea    0xed2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e8f(%rip),%r15
mov    (%r15),%esi
lea    0xedf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e5f(%rip),%rbx
mov    (%rbx),%esi
lea    0xef0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e50(%rip),%r13
mov    0x0(%r13),%esi
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%eax
cmp    %eax,(%r12)
jne    11bc <main+0x9c>
mov    (%r14),%ecx
cmp    0x0(%r13),%ecx
jne    11bc <main+0x9c>
lea    0xfb6(%rip),%rdi
jmp    11d9 <main+0xb9>
test   %eax,%eax
jne    11d2 <main+0xb2>
mov    (%r15),%eax
cmp    0x0(%r13),%eax
jne    11d2 <main+0xb2>
lea    0xf57(%rip),%rdi
jmp    11d9 <main+0xb9>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
mov    $0x48,%esi
mov    $0x48,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x48,%esi
mov    $0x48,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x48,%esi
mov    $0x48,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    $0xffffffc8,%esi
mov    $0xffffffc8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0xc8,%esi
mov    $0xc8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0xffffffc8,%esi
mov    $0xffffffc8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [37 x i8] c"minimum value for a signed char: %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.1 = [37 x i8] c"maximum value for a signed char: %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"maximum value for an unsigned char: %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [30 x i8] c"minimum value for a char: %d\0A\00"
@CHAR_MIN = global i32 0
@.str.4 = [30 x i8] c"maximum value for a char: %d\0A\00"
@CHAR_MAX = global i32 0
@.str.5 = [72 x i8] c"The 'char' type seems to be the same as 'signed char' on this machine.\0A\00"
@.str.6 = [74 x i8] c"The 'char' type seems to be the same as 'unsigned char' on this machine.\0A\00"
@.str.7 = [6 x i8] c"Huh?\0A\00"
@.str.8 = [16 x i8] c"SignedH: %c %d\0A\00"
@.str.9 = [18 x i8] c"UnsignedH: %c %d\0A\00"
@.str.10 = [15 x i8] c"PlainH: %c %d\0A\00"
@.str.11 = [22 x i8] c"SignedTwoHund: %c %d\0A\00"
@.str.12 = [24 x i8] c"UnsignedTwoHund: %c %d\0A\00"
@.str.13 = [21 x i8] c"PlainTwoHund: %c %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i32 0, i32* %1
%8 = load i32, i32* @SCHAR_MIN
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @SCHAR_MAX
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @UCHAR_MAX
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @CHAR_MIN
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @CHAR_MAX
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @SCHAR_MIN
%19 = load i32, i32* @CHAR_MIN
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %0
%22 = load i32, i32* @SCHAR_MAX
%23 = load i32, i32* @CHAR_MAX
%24 = icmp eq i32 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.5, i64 0, i64 0))
br label %39
27: ; preds = %21, %0
%28 = load i32, i32* @CHAR_MIN
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, i32* @UCHAR_MAX
%32 = load i32, i32* @CHAR_MAX
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.6, i64 0, i64 0))
br label %38
36: ; preds = %30, %27
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %38
38: ; preds = %36, %34
br label %39
39: ; preds = %38, %25
store i8 72, i8* %2
store i8 72, i8* %3
store i8 72, i8* %4
%40 = load i8, i8* %2
%41 = sext i8 %40 to i32
%42 = load i8, i8* %2
%43 = sext i8 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 %41, i32 %43)
%45 = load i8, i8* %3
%46 = zext i8 %45 to i32
%47 = load i8, i8* %3
%48 = zext i8 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %46, i32 %48)
%50 = load i8, i8* %4
%51 = sext i8 %50 to i32
%52 = load i8, i8* %4
%53 = sext i8 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %51, i32 %53)
store i8 -56, i8* %5
store i8 -56, i8* %6
store i8 -56, i8* %7
%55 = load i8, i8* %5
%56 = sext i8 %55 to i32
%57 = load i8, i8* %5
%58 = sext i8 %57 to i32
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %56, i32 %58)
%60 = load i8, i8* %6
%61 = zext i8 %60 to i32
%62 = load i8, i8* %6
%63 = zext i8 %62 to i32
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %61, i32 %63)
%65 = load i8, i8* %7
%66 = sext i8 %65 to i32
%67 = load i8, i8* %7
%68 = sext i8 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 %66, i32 %68)
%70 = load i32, i32* %1
ret i32 %70
}

LLVM IR (-O2):
@.str = [37 x i8] c"minimum value for a signed char: %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.1 = [37 x i8] c"maximum value for a signed char: %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.2 = [40 x i8] c"maximum value for an unsigned char: %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.3 = [30 x i8] c"minimum value for a char: %d\0A\00"
@CHAR_MIN = global i32 0
@.str.4 = [30 x i8] c"maximum value for a char: %d\0A\00"
@CHAR_MAX = global i32 0
@.str.8 = [16 x i8] c"SignedH: %c %d\0A\00"
@.str.9 = [18 x i8] c"UnsignedH: %c %d\0A\00"
@.str.10 = [15 x i8] c"PlainH: %c %d\0A\00"
@.str.11 = [22 x i8] c"SignedTwoHund: %c %d\0A\00"
@.str.12 = [24 x i8] c"UnsignedTwoHund: %c %d\0A\00"
@.str.13 = [21 x i8] c"PlainTwoHund: %c %d\0A\00"
@str = [5 x i8] c"Huh?\00"
@str.14 = [73 x i8] c"The 'char' type seems to be the same as 'unsigned char' on this machine.\00"
@str.15 = [71 x i8] c"The 'char' type seems to be the same as 'signed char' on this machine.\00"
define i32 @main() {
%1 = load i32, i32* @SCHAR_MIN
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @SCHAR_MAX
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @UCHAR_MAX
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @CHAR_MIN
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @CHAR_MAX
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @SCHAR_MIN
%12 = load i32, i32* @CHAR_MIN
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %0
%15 = load i32, i32* @SCHAR_MAX
%16 = load i32, i32* @CHAR_MAX
%17 = icmp eq i32 %15, %16
br i1 %17, label %25, label %18
18: ; preds = %14, %0
%19 = icmp eq i32 %12, 0
br i1 %19, label %20, label %24
20: ; preds = %18
%21 = load i32, i32* @UCHAR_MAX
%22 = load i32, i32* @CHAR_MAX
%23 = icmp eq i32 %21, %22
br i1 %23, label %25, label %24
24: ; preds = %20, %18
br label %25
25: ; preds = %20, %14, %24
%26 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0), %24 ], [ getelementptr inbounds ([71 x i8], [71 x i8]* @str.15, i64 0, i64 0), %14 ], [ getelementptr inbounds ([73 x i8], [73 x i8]* @str.14, i64 0, i64 0), %20 ]
%27 = tail call i32 @puts(i8* dereferenceable(1) %26)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i32 72, i32 72)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 72, i32 72)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 72, i32 72)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 -56, i32 -56)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 200, i32 200)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 -56, i32 -56)
ret i32 0
}