#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 *, char);
int main() {
  int age;
  age = 16;
  float x = 3.14;
  char ch1 = 'a';
  char ch2 = 97;
  printf("my number is: %d\n", age);
  printf("my floating point number is: %f\n", x);
  printf("char1 = %c\n", ch1);
  printf("char2 97 = %c\n", ch2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x10,-0x8(%rbp)
movl   $0x4048f5c3,-0xc(%rbp)
movb   $0x61,-0xd(%rbp)
movb   $0x61,-0xe(%rbp)
movsbl -0x8(%rbp),%esi
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvttss2si %xmm0,%eax
lea    0xebd(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
movsbl -0xd(%rbp),%esi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
movsbl -0xe(%rbp),%esi
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    $0x10,%esi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x61,%esi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x61,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"my number is: %d\0A\00"
@.str.1 = [33 x i8] c"my floating point number is: %f\0A\00"
@.str.2 = [12 x i8] c"char1 = %c\0A\00"
@.str.3 = [15 x i8] c"char2 97 = %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca i8
%5 = alloca i8
store i32 0, i32* %1
store i32 16, i32* %2
store float 0x40091EB860000000, float* %3
store i8 97, i8* %4
store i8 97, i8* %5
%6 = load i32, i32* %2
%7 = trunc i32 %6 to i8
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 signext %7)
%9 = load float, float* %3
%10 = fptosi float %9 to i8
%11 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8 signext %10)
%12 = load i8, i8* %4
%13 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8 signext %12)
%14 = load i8, i8* %5
%15 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8 signext %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"my number is: %d\0A\00"
@.str.1 = [33 x i8] c"my floating point number is: %f\0A\00"
@.str.2 = [12 x i8] c"char1 = %c\0A\00"
@.str.3 = [15 x i8] c"char2 97 = %c\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 signext 16)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8 signext 3)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8 signext 97)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8 signext 97)
ret i32 0
}