#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(void) {
  int i, *pi;
  float f, *pf;
  char c, *pc;
  int a = 5;
  float b = 7.5;
  char d = 'f';
  pi = &a;
  pf = &b;
  pc = &d;
  printf("i: %d\n", *pi);
  printf("i + 3: %d\n", *pi + 3);
  printf("f: %.3f\n", *pf);
  printf("f + 4: %.3f\n", *pf + 4);
  printf("c: %c\n", *pc);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x5,-0x34(%rbp)
movl   $0x40f00000,-0x38(%rbp)
movb   $0x66,-0x39(%rbp)
lea    -0x34(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    -0x38(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x39(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
add    $0x3,%eax
movsbl %al,%esi
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
cvttss2si (%rax),%eax
movsbl %al,%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm0
movss  0xe6c(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
lea    0xe7c(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
lea    0xe76(%rip),%rdi
movsbl (%rax),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x5,%esi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0xb,%esi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x66,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"i: %d\0A\00"
@.str.1 = [11 x i8] c"i + 3: %d\0A\00"
@.str.2 = [9 x i8] c"f: %.3f\0A\00"
@.str.3 = [13 x i8] c"f + 4: %.3f\0A\00"
@.str.4 = [7 x i8] c"c: %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca float
%4 = alloca float*
%5 = alloca i8
%6 = alloca i8*
%7 = alloca i32
%8 = alloca float
%9 = alloca i8
store i32 5, i32* %7
store float 7.500000e+00, float* %8
store i8 102, i8* %9
store i32* %7, i32** %2
store float* %8, float** %4
store i8* %9, i8** %6
%10 = load i32*, i32** %2
%11 = load i32, i32* %10
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8 signext %12)
%14 = load i32*, i32** %2
%15 = load i32, i32* %14
%16 = add nsw i32 %15, 3
%17 = trunc i32 %16 to i8
%18 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext %17)
%19 = load float*, float** %4
%20 = load float, float* %19
%21 = fptosi float %20 to i8
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 signext %21)
%23 = load float*, float** %4
%24 = load float, float* %23
%25 = fadd float %24, 4.000000e+00
%26 = fptosi float %25 to i8
%27 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8 signext %26)
%28 = load i8*, i8** %6
%29 = load i8, i8* %28
%30 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 signext %29)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"i: %d\0A\00"
@.str.1 = [11 x i8] c"i + 3: %d\0A\00"
@.str.2 = [9 x i8] c"f: %.3f\0A\00"
@.str.3 = [13 x i8] c"f + 4: %.3f\0A\00"
@.str.4 = [7 x i8] c"c: %c\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8 signext 5)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 8)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8 signext 7)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8 signext 11)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8 signext 102)
ret i32 0
}