#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 int);
int main(int argc, const char *argv[]) {
  char charString;
  char charNumber;
  signed char signedCharValue;
  unsigned char unsignedCharValue;
  short shortValue;
  short int shortIntValue;
  signed short signedShortvalue;
  signed short int signedShortint;
  unsigned short unsignedShortValue;
  unsigned short int unsignedShortIntValue;
  int intValue;
  signed signedValue;
  signed int signedIntValue;
  unsigned unsignedValue;
  printf("Char string value = %c\n", charString);
  printf("Char number value = %d\n", charNumber);
  printf("signed char value = %hhi\n", signedCharValue);
  printf("unsigned char value = %d\n", unsignedCharValue);
  printf("short value = %hi\n", shortValue);
  printf("short int value = %hi\n", shortIntValue);
  printf("signed short value = %hi\n", signedShortvalue);
  printf("signed short int value = %hi\n", signedShortint);
  printf("unsigned short value = %hu\n", unsignedShortValue);
  printf("unsigned short int value = %hu\n", unsignedShortIntValue);
  printf("int value = %i\n", intValue);
  printf("signed value = %d\n", signedValue);
  printf("signed int value = %i\n", signedIntValue);
  printf("unsigned value = %u\n", unsignedValue);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsbl -0x11(%rbp),%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x12(%rbp),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x13(%rbp),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
movzbl -0x14(%rbp),%esi
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
movswl -0x16(%rbp),%esi
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
movswl -0x18(%rbp),%esi
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
movswl -0x1a(%rbp),%esi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
movswl -0x1c(%rbp),%esi
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
movzwl -0x1e(%rbp),%esi
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
movzwl -0x20(%rbp),%esi
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xf22(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Char string value = %c\0A\00"
@.str.1 = [24 x i8] c"Char number value = %d\0A\00"
@.str.2 = [26 x i8] c"signed char value = %hhi\0A\00"
@.str.3 = [26 x i8] c"unsigned char value = %d\0A\00"
@.str.4 = [19 x i8] c"short value = %hi\0A\00"
@.str.5 = [23 x i8] c"short int value = %hi\0A\00"
@.str.6 = [26 x i8] c"signed short value = %hi\0A\00"
@.str.7 = [30 x i8] c"signed short int value = %hi\0A\00"
@.str.8 = [28 x i8] c"unsigned short value = %hu\0A\00"
@.str.9 = [32 x i8] c"unsigned short int value = %hu\0A\00"
@.str.10 = [16 x i8] c"int value = %i\0A\00"
@.str.11 = [19 x i8] c"signed value = %d\0A\00"
@.str.12 = [23 x i8] c"signed int value = %i\0A\00"
@.str.13 = [21 x i8] c"unsigned value = %u\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i16
%11 = alloca i16
%12 = alloca i16
%13 = alloca i16
%14 = alloca i16
%15 = alloca i16
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %21)
%23 = load i8, i8* %7
%24 = sext i8 %23 to i32
%25 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%26 = load i8, i8* %8
%27 = sext i8 %26 to i32
%28 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%29 = load i8, i8* %9
%30 = zext i8 %29 to i32
%31 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%32 = load i16, i16* %10
%33 = sext i16 %32 to i32
%34 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = load i16, i16* %11
%36 = sext i16 %35 to i32
%37 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %36)
%38 = load i16, i16* %12
%39 = sext i16 %38 to i32
%40 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %39)
%41 = load i16, i16* %13
%42 = sext i16 %41 to i32
%43 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %42)
%44 = load i16, i16* %14
%45 = zext i16 %44 to i32
%46 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %45)
%47 = load i16, i16* %15
%48 = zext i16 %47 to i32
%49 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %16
%51 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %17
%53 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %18
%55 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %19
%57 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 %56)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Char string value = %c\0A\00"
@.str.1 = [24 x i8] c"Char number value = %d\0A\00"
@.str.2 = [26 x i8] c"signed char value = %hhi\0A\00"
@.str.3 = [26 x i8] c"unsigned char value = %d\0A\00"
@.str.4 = [19 x i8] c"short value = %hi\0A\00"
@.str.5 = [23 x i8] c"short int value = %hi\0A\00"
@.str.6 = [26 x i8] c"signed short value = %hi\0A\00"
@.str.7 = [30 x i8] c"signed short int value = %hi\0A\00"
@.str.8 = [28 x i8] c"unsigned short value = %hu\0A\00"
@.str.9 = [32 x i8] c"unsigned short int value = %hu\0A\00"
@.str.10 = [16 x i8] c"int value = %i\0A\00"
@.str.11 = [19 x i8] c"signed value = %d\0A\00"
@.str.12 = [23 x i8] c"signed int value = %i\0A\00"
@.str.13 = [21 x i8] c"unsigned value = %u\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i32 0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 0)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 0)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 0)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i32 0)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 undef)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i32 undef)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i32 undef)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 undef)
ret i32 0
}