#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 *, float);
int main(void) {
  int a, b, c;
  float d, e, f;
  printf("int a is: %d\n", a);
  printf("int b is: %d\n", b);
  printf("int c is: %d\n", c);
  printf("float d is: %.3f\n", d);
  printf("float e is: %.3f\n", e);
  printf("float f is: %.3f\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssl -0x10(%rbp),%xmm0
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"int a is: %d\0A\00"
@.str.1 = [14 x i8] c"int b is: %d\0A\00"
@.str.2 = [14 x i8] c"int c is: %d\0A\00"
@.str.3 = [18 x i8] c"float d is: %.3f\0A\00"
@.str.4 = [18 x i8] c"float e is: %.3f\0A\00"
@.str.5 = [18 x i8] c"float f is: %.3f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
store i32 0, i32* %1
%8 = load i32, i32* %2
%9 = sitofp i32 %8 to float
%10 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float %9)
%11 = load i32, i32* %3
%12 = sitofp i32 %11 to float
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), float %12)
%14 = load i32, i32* %4
%15 = sitofp i32 %14 to float
%16 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float %15)
%17 = load float, float* %5
%18 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), float %17)
%19 = load float, float* %6
%20 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), float %19)
%21 = load float, float* %7
%22 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), float %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"int a is: %d\0A\00"
@.str.1 = [14 x i8] c"int b is: %d\0A\00"
@.str.2 = [14 x i8] c"int c is: %d\0A\00"
@.str.3 = [18 x i8] c"float d is: %.3f\0A\00"
@.str.4 = [18 x i8] c"float e is: %.3f\0A\00"
@.str.5 = [18 x i8] c"float f is: %.3f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float 0.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), float 0.000000e+00)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), float 0.000000e+00)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), float undef)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), float undef)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), float undef)
ret i32 0
}