#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 main() {
  int zahl;
  char buchstabe;
  float euroZuDollar;
  float mwst;
  zahl = 25;
  buchstabe = 'B';
  euroZuDollar = 1.4588;
  mwst = 19;
  printf("Name der Variablen\tTyp\t\t\tWert\n");
  printf("int zahl:\t\tGanzzahl\t\t%d\n", zahl);
  printf("char buchstabe:\t\tZeichen\t\t\t%c\n", buchstabe);
  printf("float euroZuDollar:\tGleitkommazahl\t\t%.4f\n", euroZuDollar);
  printf("float mwst:\t\tGleitkommazahl\t\t%.0f\n", mwst);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x19,-0x8(%rbp)
movb   $0x42,-0x9(%rbp)
movss  0xed2(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xec1(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeda(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeed(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf6d(%rip),%rdi
call   1030 <puts@plt>
lea    0xedc(%rip),%rdi
mov    $0x19,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x42,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
movsd  0xe9e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf02(%rip),%rdi
movsd  0xe90(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Name der Variablen\09Typ\09\09\09Wert\0A\00"
@.str.1 = [25 x i8] c"int zahl:\09\09Ganzzahl\09\09%d\0A\00"
@.str.2 = [31 x i8] c"char buchstabe:\09\09Zeichen\09\09\09%c\0A\00"
@.str.3 = [42 x i8] c"float euroZuDollar:\09Gleitkommazahl\09\09%.4f\0A\00"
@.str.4 = [35 x i8] c"float mwst:\09\09Gleitkommazahl\09\09%.0f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca float
%5 = alloca float
store i32 0, i32* %1
store i32 25, i32* %2
store i8 66, i8* %3
store float 0x3FF7573EA0000000, float* %4
store float 1.900000e+01, float* %5
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = load i8, i8* %3
%10 = sext i8 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load float, float* %4
%13 = fpext float %12 to double
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), double %13)
%15 = load float, float* %5
%16 = fpext float %15 to double
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), double %16)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [25 x i8] c"int zahl:\09\09Ganzzahl\09\09%d\0A\00"
@.str.2 = [31 x i8] c"char buchstabe:\09\09Zeichen\09\09\09%c\0A\00"
@.str.3 = [42 x i8] c"float euroZuDollar:\09Gleitkommazahl\09\09%.4f\0A\00"
@.str.4 = [35 x i8] c"float mwst:\09\09Gleitkommazahl\09\09%.0f\0A\00"
@str = [30 x i8] c"Name der Variablen\09Typ\09\09\09Wert\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 25)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i32 66)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), double 0x3FF7573EA0000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), double 1.900000e+01)
ret i32 0
}