#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);
int main() {
  int IAmInt = 0;
  float IAmFloat = 0.0;
  char IAmChar = 'A';
  bool IAmBool = true;
  printf("IAmInt = %d\n", IAmInt);
  printf("IAmFloat = %f\n", IAmFloat);
  printf("IAmChar = %c\n", IAmChar);
  printf("IAmBool = %d\n", IAmBool);
  IAmInt = 11;
  IAmFloat = 16.65;
  IAmChar = 'D';
  IAmBool = false;
  printf("IAmInt = %d\n", IAmInt);
  printf("IAmFloat = %f\n", IAmFloat);
  printf("IAmChar = %c\n", IAmChar);
  printf("IAmBool = %d\n", IAmBool);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movb   $0x41,-0xd(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x8(%rbp),%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
movsbl -0xd(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
movl   $0xb,-0x8(%rbp)
movss  0xe79(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movb   $0x44,-0xd(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
movsbl -0xd(%rbp),%esi
lea    0xe5e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%r12
mov    %r12,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xedb(%rip),%r15
mov    %r15,%rdi
mov    $0x41,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
mov    %r14,%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
mov    %r12,%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    $0x44,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"IAmInt = %d\0A\00"
@.str.1 = [15 x i8] c"IAmFloat = %f\0A\00"
@.str.2 = [14 x i8] c"IAmChar = %c\0A\00"
@.str.3 = [14 x i8] c"IAmBool = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i8
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store float 0.000000e+00, float* %3
store i8 65, i8* %4
store i32 1, i32* %5
%6 = load i32, i32* %2
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load float, float* %3
%9 = fptosi float %8 to i32
%10 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = load i8, i8* %4
%12 = sext i8 %11 to i32
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %5
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %14)
store i32 11, i32* %2
store float 0x4030A66660000000, float* %3
store i8 68, i8* %4
store i32 0, i32* %5
%16 = load i32, i32* %2
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = load float, float* %3
%19 = fptosi float %18 to i32
%20 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %19)
%21 = load i8, i8* %4
%22 = sext i8 %21 to i32
%23 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = load i32, i32* %5
%25 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"IAmInt = %d\0A\00"
@.str.1 = [15 x i8] c"IAmFloat = %f\0A\00"
@.str.2 = [14 x i8] c"IAmChar = %c\0A\00"
@.str.3 = [14 x i8] c"IAmBool = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 65)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 11)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 16)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 68)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 0)
ret i32 0
}