#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() {
  float riesling = 5.20;
  int riesling_m = 6;
  float sauvignon = 8.12;
  int sauvignon_m = 12;
  float cabernet = 4.85;
  int cabernet_m = 6;
  float riesling_n_s = (riesling * riesling_m);
  float sauvignon_n_s = (sauvignon * sauvignon_m);
  float cabernet_n_s = (cabernet * cabernet_m);
  float nettosumme = (riesling_n_s + sauvignon_n_s + cabernet_n_s);
  float bruttosumme = (nettosumme * 1.19);
  float mwst = (bruttosumme - nettosumme);
  printf("\n\n\tNettosumme =\t%.2f EUR\n", nettosumme);
  printf("\tMwSt =\t\t %.2f EUR\n", mwst);
  printf("\tBruttosumme =\t%.2f EUR\n\n", bruttosumme);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xee9(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0x6,-0xc(%rbp)
movss  0xed1(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movl   $0xc,-0x14(%rbp)
movss  0xeb9(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x6,-0x1c(%rbp)
movss  -0x8(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
cvtsi2ssl -0x14(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x18(%rbp),%xmm0
cvtsi2ssl -0x1c(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x28(%rbp)
movss  -0x20(%rbp),%xmm0
addss  -0x24(%rbp),%xmm0
addss  -0x28(%rbp),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe47(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x30(%rbp),%xmm0
subss  -0x2c(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
movss  -0x2c(%rbp),%xmm0
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm0
lea    0xe3c(%rip),%rdi
call   1030 <printf@plt>
movss  -0x30(%rbp),%xmm0
lea    0xe3f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [26 x i8] c"\0A\0A\09Nettosumme =\09%.2f EUR\0A\00"
@.str.1 = [20 x i8] c"\09MwSt =\09\09 %.2f EUR\0A\00"
@.str.2 = [26 x i8] c"\09Bruttosumme =\09%.2f EUR\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32
%4 = alloca float
%5 = alloca i32
%6 = alloca float
%7 = alloca i32
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
store i32 0, i32* %1
store float 0x4014CCCCC0000000, float* %2
store i32 6, i32* %3
store float 0x40203D70A0000000, float* %4
store i32 12, i32* %5
store float 0x4013666660000000, float* %6
store i32 6, i32* %7
%14 = load float, float* %2
%15 = load i32, i32* %3
%16 = sitofp i32 %15 to float
%17 = fmul float %14, %16
store float %17, float* %8
%18 = load float, float* %4
%19 = load i32, i32* %5
%20 = sitofp i32 %19 to float
%21 = fmul float %18, %20
store float %21, float* %9
%22 = load float, float* %6
%23 = load i32, i32* %7
%24 = sitofp i32 %23 to float
%25 = fmul float %22, %24
store float %25, float* %10
%26 = load float, float* %8
%27 = load float, float* %9
%28 = fadd float %26, %27
%29 = load float, float* %10
%30 = fadd float %28, %29
store float %30, float* %11
%31 = load float, float* %11
%32 = fpext float %31 to double
%33 = fmul double %32, 1.190000e+00
%34 = fptrunc double %33 to float
store float %34, float* %12
%35 = load float, float* %12
%36 = load float, float* %11
%37 = fsub float %35, %36
store float %37, float* %13
%38 = load float, float* %11
%39 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), float %38)
%40 = load float, float* %13
%41 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), float %40)
%42 = load float, float* %12
%43 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), float %42)
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"\0A\0A\09Nettosumme =\09%.2f EUR\0A\00"
@.str.1 = [20 x i8] c"\09MwSt =\09\09 %.2f EUR\0A\00"
@.str.2 = [26 x i8] c"\09Bruttosumme =\09%.2f EUR\0A\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), float 0x4063B7AE00000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), float 0x403DF87900000000)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), float 0x406776BD20000000)
ret i32 0
}