#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() {
  int ganzzahl;
  char zeichen;
  float eulerscheZahl;
  ganzzahl = 9;
  zeichen = 'X';
  eulerscheZahl = 2.718281828459045;
  printf("ganzzahl: %d\n", ganzzahl);
  printf("zeichen: %c\n", zeichen);
  printf("eulerscheZahl: %f\n", eulerscheZahl);
  printf("eulerscheZahl kompletttttoooo: %.17f\n", eulerscheZahl);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x9,-0x8(%rbp)
movb   $0x58,-0x9(%rbp)
movl   $0x402df854,-0x10(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x9(%rbp),%eax
cvtsi2ss %eax,%xmm0
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef4(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
movss  0xec0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
movss  0xeac(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"ganzzahl: %d\0A\00"
@.str.1 = [13 x i8] c"zeichen: %c\0A\00"
@.str.2 = [19 x i8] c"eulerscheZahl: %f\0A\00"
@.str.3 = [38 x i8] c"eulerscheZahl kompletttttoooo: %.17f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca float
store i32 0, i32* %1
store i32 9, i32* %2
store i8 88, i8* %3
store float 0x4005BF0A80000000, float* %4
%5 = load i32, i32* %2
%6 = sitofp i32 %5 to float
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), float %6)
%8 = load i8, i8* %3
%9 = sitofp i8 %8 to float
%10 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %9)
%11 = load float, float* %4
%12 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), float %11)
%13 = load float, float* %4
%14 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), float %13)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"ganzzahl: %d\0A\00"
@.str.1 = [13 x i8] c"zeichen: %c\0A\00"
@.str.2 = [19 x i8] c"eulerscheZahl: %f\0A\00"
@.str.3 = [38 x i8] c"eulerscheZahl kompletttttoooo: %.17f\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 9.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 8.800000e+01)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), float 0x4005BF0A80000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), float 0x4005BF0A80000000)
ret i32 0
}