#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 *, ...);
int main(void) {
  signed char c;
  unsigned char cc;
  printf("Signed:\n");
  c = 126;
  printf("\tc = 126; d = [%d]; c = [%c]\n", c, c);
  c = 128;
  printf("\tc = 128; d = [%d]; c = [%c]\n", c, c);
  c = 129;
  printf("\tc = 129; d = [%d]; c = [%c]\n", c, c);
  c = 254;
  printf("\tc = 254; d = [%d]; c = [%c]\n", c, c);
  c = 255;
  printf("\tc = 255; d = [%d]; c = [%c]\n", c, c);
  c = 256;
  printf("\tc = 256; d = [%d]; c = [%c]\n", c, c);
  c = 257;
  printf("\tc = 257; d = [%d]; c = [%c]\n", c, c);
  c = 321;
  printf("\tc = 321; d = [%d]; c = [%c]\n", c, c);
  printf("Unsigned:\n");
  cc = 126;
  printf("\tcc = 126; d = [%d]; c = [%c]\n", cc, cc);
  cc = 128;
  printf("\tcc = 128; d = [%d]; c = [%c]\n", cc, cc);
  cc = 129;
  printf("\tcc = 129; d = [%d]; c = [%c]\n", cc, cc);
  cc = 254;
  printf("\tcc = 254; d = [%d]; c = [%c]\n", cc, cc);
  cc = 255;
  printf("\tcc = 255; d = [%d]; c = [%c]\n", cc, cc);
  cc = 256;
  printf("\tcc = 256; d = [%d]; c = [%c]\n", cc, cc);
  cc = 257;
  printf("\tcc = 257; d = [%d]; c = [%c]\n", cc, cc);
  cc = 321;
  printf("\tcc = 321; d = [%d]; cc = [%c]\n", cc, cc);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x7e,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x80,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x81,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xfe,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xff,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x1,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x41,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x7e,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x80,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x81,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xfe,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xff,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x1,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xf04(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x41,-0x6(%rbp)
movzbl -0x6(%rbp),%esi
movzbl -0x6(%rbp),%edx
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x10c1(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x7e,%esi
mov    $0x7e,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0xffffff80,%esi
mov    $0xffffff80,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0xffffff81,%esi
mov    $0xffffff81,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0xfffffffe,%esi
mov    $0xfffffffe,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1003(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
mov    $0x7e,%esi
mov    $0x7e,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x80,%esi
mov    $0x80,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x81,%esi
mov    $0x81,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0xfe,%esi
mov    $0xfe,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf12(%rip),%rdi
mov    $0xff,%esi
mov    $0xff,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf26(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x41,%esi
mov    $0x41,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Signed:\0A\00"
@.str.1 = [30 x i8] c"\09c = 126; d = [%d]; c = [%c]\0A\00"
@.str.2 = [30 x i8] c"\09c = 128; d = [%d]; c = [%c]\0A\00"
@.str.3 = [30 x i8] c"\09c = 129; d = [%d]; c = [%c]\0A\00"
@.str.4 = [30 x i8] c"\09c = 254; d = [%d]; c = [%c]\0A\00"
@.str.5 = [30 x i8] c"\09c = 255; d = [%d]; c = [%c]\0A\00"
@.str.6 = [30 x i8] c"\09c = 256; d = [%d]; c = [%c]\0A\00"
@.str.7 = [30 x i8] c"\09c = 257; d = [%d]; c = [%c]\0A\00"
@.str.8 = [30 x i8] c"\09c = 321; d = [%d]; c = [%c]\0A\00"
@.str.9 = [11 x i8] c"Unsigned:\0A\00"
@.str.10 = [31 x i8] c"\09cc = 126; d = [%d]; c = [%c]\0A\00"
@.str.11 = [31 x i8] c"\09cc = 128; d = [%d]; c = [%c]\0A\00"
@.str.12 = [31 x i8] c"\09cc = 129; d = [%d]; c = [%c]\0A\00"
@.str.13 = [31 x i8] c"\09cc = 254; d = [%d]; c = [%c]\0A\00"
@.str.14 = [31 x i8] c"\09cc = 255; d = [%d]; c = [%c]\0A\00"
@.str.15 = [31 x i8] c"\09cc = 256; d = [%d]; c = [%c]\0A\00"
@.str.16 = [31 x i8] c"\09cc = 257; d = [%d]; c = [%c]\0A\00"
@.str.17 = [32 x i8] c"\09cc = 321; d = [%d]; cc = [%c]\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i8 126, i8* %2
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %6, i32 %8)
store i8 -128, i8* %2
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %11, i32 %13)
store i8 -127, i8* %2
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %16, i32 %18)
store i8 -2, i8* %2
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %21, i32 %23)
store i8 -1, i8* %2
%25 = load i8, i8* %2
%26 = sext i8 %25 to i32
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %26, i32 %28)
store i8 0, i8* %2
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
%32 = load i8, i8* %2
%33 = sext i8 %32 to i32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %31, i32 %33)
store i8 1, i8* %2
%35 = load i8, i8* %2
%36 = sext i8 %35 to i32
%37 = load i8, i8* %2
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %36, i32 %38)
store i8 65, i8* %2
%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 ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %41, i32 %43)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i8 126, i8* %3
%46 = load i8, i8* %3
%47 = zext i8 %46 to i32
%48 = load i8, i8* %3
%49 = zext i8 %48 to i32
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 %47, i32 %49)
store i8 -128, i8* %3
%51 = load i8, i8* %3
%52 = zext i8 %51 to i32
%53 = load i8, i8* %3
%54 = zext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i32 %52, i32 %54)
store i8 -127, i8* %3
%56 = load i8, i8* %3
%57 = zext i8 %56 to i32
%58 = load i8, i8* %3
%59 = zext i8 %58 to i32
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 %57, i32 %59)
store i8 -2, i8* %3
%61 = load i8, i8* %3
%62 = zext i8 %61 to i32
%63 = load i8, i8* %3
%64 = zext i8 %63 to i32
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i32 %62, i32 %64)
store i8 -1, i8* %3
%66 = load i8, i8* %3
%67 = zext i8 %66 to i32
%68 = load i8, i8* %3
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 %67, i32 %69)
store i8 0, i8* %3
%71 = load i8, i8* %3
%72 = zext i8 %71 to i32
%73 = load i8, i8* %3
%74 = zext i8 %73 to i32
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i32 %72, i32 %74)
store i8 1, i8* %3
%76 = load i8, i8* %3
%77 = zext i8 %76 to i32
%78 = load i8, i8* %3
%79 = zext i8 %78 to i32
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 %77, i32 %79)
store i8 65, i8* %3
%81 = load i8, i8* %3
%82 = zext i8 %81 to i32
%83 = load i8, i8* %3
%84 = zext i8 %83 to i32
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 %82, i32 %84)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [30 x i8] c"\09c = 126; d = [%d]; c = [%c]\0A\00"
@.str.2 = [30 x i8] c"\09c = 128; d = [%d]; c = [%c]\0A\00"
@.str.3 = [30 x i8] c"\09c = 129; d = [%d]; c = [%c]\0A\00"
@.str.4 = [30 x i8] c"\09c = 254; d = [%d]; c = [%c]\0A\00"
@.str.5 = [30 x i8] c"\09c = 255; d = [%d]; c = [%c]\0A\00"
@.str.6 = [30 x i8] c"\09c = 256; d = [%d]; c = [%c]\0A\00"
@.str.7 = [30 x i8] c"\09c = 257; d = [%d]; c = [%c]\0A\00"
@.str.8 = [30 x i8] c"\09c = 321; d = [%d]; c = [%c]\0A\00"
@.str.10 = [31 x i8] c"\09cc = 126; d = [%d]; c = [%c]\0A\00"
@.str.11 = [31 x i8] c"\09cc = 128; d = [%d]; c = [%c]\0A\00"
@.str.12 = [31 x i8] c"\09cc = 129; d = [%d]; c = [%c]\0A\00"
@.str.13 = [31 x i8] c"\09cc = 254; d = [%d]; c = [%c]\0A\00"
@.str.14 = [31 x i8] c"\09cc = 255; d = [%d]; c = [%c]\0A\00"
@.str.15 = [31 x i8] c"\09cc = 256; d = [%d]; c = [%c]\0A\00"
@.str.16 = [31 x i8] c"\09cc = 257; d = [%d]; c = [%c]\0A\00"
@.str.17 = [32 x i8] c"\09cc = 321; d = [%d]; cc = [%c]\0A\00"
@str = [8 x i8] c"Signed:\00"
@str.18 = [10 x i8] c"Unsigned:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 126, i32 126)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 -128, i32 -128)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 -127, i32 -127)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 -2, i32 -2)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 -1, i32 -1)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 0, i32 0)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 1, i32 1)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 65, i32 65)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i32 126, i32 126)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i32 128, i32 128)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 129, i32 129)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0), i32 254, i32 254)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.14, i64 0, i64 0), i32 255, i32 255)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.15, i64 0, i64 0), i32 0, i32 0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 1, i32 1)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 65, i32 65)
ret i32 0
}