#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() {
  printf("\n\n\n");
  float nettobetrag = 5;
  float bruttobetrag = nettobetrag * 1.19;
  printf("Eine Text\nZeile");
  printf("\nEine Text Zeile\n");
  printf("\n\tDer Rechnungsbetrag lautet Netto:\t%.2f EUR", nettobetrag);
  printf("\n\tDer Rechnungsbetrag lautet MwSt:\t%.2f EUR",
         (bruttobetrag - nettobetrag));
  printf("\n\tDer Rechnungsbetrag lautet Brutto:\t%.2f EUR", bruttobetrag);
  printf("\n\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xed3(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb5(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeae(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xebf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xed4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf98(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <puts@plt>
lea    0xed7(%rip),%rdi
movsd  0xea7(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
movsd  0xe99(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
movsd  0xe8b(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"\0A\0A\0A\00"
@.str.1 = [16 x i8] c"Eine Text\0AZeile\00"
@.str.2 = [18 x i8] c"\0AEine Text Zeile\0A\00"
@.str.3 = [45 x i8] c"\0A\09Der Rechnungsbetrag lautet Netto:\09%.2f EUR\00"
@.str.4 = [44 x i8] c"\0A\09Der Rechnungsbetrag lautet MwSt:\09%.2f EUR\00"
@.str.5 = [46 x i8] c"\0A\09Der Rechnungsbetrag lautet Brutto:\09%.2f EUR\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store float 5.000000e+00, float* %2
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fmul double %6, 1.190000e+00
%8 = fptrunc double %7 to float
store float %8, float* %3
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
%11 = load float, float* %2
%12 = fpext float %11 to double
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), double %12)
%14 = load float, float* %3
%15 = load float, float* %2
%16 = fsub float %14, %15
%17 = fpext float %16 to double
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double %17)
%19 = load float, float* %3
%20 = fpext float %19 to double
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), double %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"Eine Text\0AZeile\00"
@.str.3 = [45 x i8] c"\0A\09Der Rechnungsbetrag lautet Netto:\09%.2f EUR\00"
@.str.4 = [44 x i8] c"\0A\09Der Rechnungsbetrag lautet MwSt:\09%.2f EUR\00"
@.str.5 = [46 x i8] c"\0A\09Der Rechnungsbetrag lautet Brutto:\09%.2f EUR\00"
@str.6 = [17 x i8] c"\0AEine Text Zeile\00"
@str.7 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.7, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), double 5.000000e+00)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), double 0x3FEE666600000000)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), double 0x4017CCCCC0000000)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.7, i64 0, i64 0))
ret i32 0
}