#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");
  double AEPFEL_KG_KOSTEN = .85, BIRNEN_KG_KOSTEN = .95, AEPFEL_MENGE = 1.5,
         BIRNEN_MENGE = 1.2, APFELSAFT, BIRNENSAFT;
  printf("\t- - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
  printf("\t\tSaftkosten | Aepfel und Birnen\n");
  printf("\t- - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\n");
  printf("\t>>Gegeben Angaben Apfelsaft:\n\n");
  printf("\t\t>>Menge Aepfel: %.2f\n\t\t>>%.2f Kosten je Kilo\n", AEPFEL_MENGE,
         AEPFEL_KG_KOSTEN);
  APFELSAFT = (AEPFEL_MENGE * AEPFEL_KG_KOSTEN);
  printf("\n\tDie Kosten fuer einen Liter Apfelsaft betragen: %.2f EUR\n\n\n",
         APFELSAFT);
  printf("\t>>Gegeben Angaben Birnensaft:\n\n");
  printf("\t\t>>Menge Birnen: %.2f\n\t\t>>%.2f Kosten je Kilo\n", BIRNEN_MENGE,
         BIRNEN_KG_KOSTEN);
  BIRNENSAFT = (BIRNEN_MENGE * BIRNEN_KG_KOSTEN);
  printf("\n\tDie Kosten fuer einen Liter Birnensaft betragen: %.2f EUR\n",
         BIRNENSAFT);
  if (BIRNENSAFT < APFELSAFT) {
    printf("\n\t>> Die Birnensaft-Kosten sind guenstiger als die "
           "Apfelsaft-Kosten!");
    printf("\n\t>> Die Kostenersparnis betraegt: %.2f EUR",
           (APFELSAFT - BIRNENSAFT));
  } else if (BIRNENSAFT > APFELSAFT) {
    printf("\n\t>> Die Apfelsaft-Kosten sind guenstiger als die "
           "Birnensaft-Kosten!");
    printf("\n\t>> Die Kostenersparnis betraegt: %.2f EUR je Liter Fruchtsaft!",
           (BIRNENSAFT - APFELSAFT));
  } else {
    printf("\n\t>> Die Saft-Kosten sind identisch!");
  }
  printf("\n\t- - - - - - - - - - - - - - - - - - - - - - - - - - - -");
  printf("\n\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0x101b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xee3(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xeb9(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xea4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xf2d(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xf3b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xf74(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
lea    0xf82(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    125a <main+0x14a>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
lea    0xfca(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    12a8 <main+0x198>
movsd  -0x38(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    1295 <main+0x185>
lea    0xfd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
lea    0x1000(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    12a3 <main+0x193>
lea    0x102e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12a8 <main+0x198>
lea    0x1040(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf7b(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0x104e(%rip),%rdi
call   1030 <puts@plt>
lea    0x107b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1090(%rip),%rdi
call   1030 <puts@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
movsd  0xe91(%rip),%xmm0
movsd  0xe91(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
movsd  0xe83(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x109d(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
movsd  0xe69(%rip),%xmm0
movsd  0xe69(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
movsd  0xe5b(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf38(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6f(%rip),%rdi
movsd  0xe3f(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf85(%rip),%rdi
xor    %eax,%eax
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 = [58 x i8] c"\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\0A\00"
@.str.2 = [34 x i8] c"\09\09Saftkosten | Aepfel und Birnen\0A\00"
@.str.3 = [59 x i8] c"\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\0A\0A\00"
@.str.4 = [32 x i8] c"\09>>Gegeben Angaben Apfelsaft:\0A\0A\00"
@.str.5 = [48 x i8] c"\09\09>>Menge Aepfel: %.2f\0A\09\09>>%.2f Kosten je Kilo\0A\00"
@.str.6 = [62 x i8] c"\0A\09Die Kosten fuer einen Liter Apfelsaft betragen: %.2f EUR\0A\0A\0A\00"
@.str.7 = [33 x i8] c"\09>>Gegeben Angaben Birnensaft:\0A\0A\00"
@.str.8 = [48 x i8] c"\09\09>>Menge Birnen: %.2f\0A\09\09>>%.2f Kosten je Kilo\0A\00"
@.str.9 = [61 x i8] c"\0A\09Die Kosten fuer einen Liter Birnensaft betragen: %.2f EUR\0A\00"
@.str.10 = [69 x i8] c"\0A\09>> Die Birnensaft-Kosten sind guenstiger als die Apfelsaft-Kosten!\00"
@.str.11 = [44 x i8] c"\0A\09>> Die Kostenersparnis betraegt: %.2f EUR\00"
@.str.12 = [69 x i8] c"\0A\09>> Die Apfelsaft-Kosten sind guenstiger als die Birnensaft-Kosten!\00"
@.str.13 = [65 x i8] c"\0A\09>> Die Kostenersparnis betraegt: %.2f EUR je Liter Fruchtsaft!\00"
@.str.14 = [37 x i8] c"\0A\09>> Die Saft-Kosten sind identisch!\00"
@.str.15 = [58 x i8] c"\0A\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
store double 8.500000e-01, double* %2
store double 0x3FEE666666666666, double* %3
store double 1.500000e+00, double* %4
store double 1.200000e+00, double* %5
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
%13 = load double, double* %4
%14 = load double, double* %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), double %13, double %14)
%16 = load double, double* %4
%17 = load double, double* %2
%18 = fmul double %16, %17
store double %18, double* %6
%19 = load double, double* %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), double %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%22 = load double, double* %5
%23 = load double, double* %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), double %22, double %23)
%25 = load double, double* %5
%26 = load double, double* %3
%27 = fmul double %25, %26
store double %27, double* %7
%28 = load double, double* %7
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), double %28)
%30 = load double, double* %7
%31 = load double, double* %6
%32 = fcmp olt double %30, %31
br i1 %32, label %33, label %39
33: ; preds = %0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
%35 = load double, double* %6
%36 = load double, double* %7
%37 = fsub double %35, %36
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), double %37)
br label %52
39: ; preds = %0
%40 = load double, double* %7
%41 = load double, double* %6
%42 = fcmp ogt double %40, %41
br i1 %42, label %43, label %49
43: ; preds = %39
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.12, i64 0, i64 0))
%45 = load double, double* %7
%46 = load double, double* %6
%47 = fsub double %45, %46
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0), double %47)
br label %51
49: ; preds = %39
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0))
br label %51
51: ; preds = %49, %43
br label %52
52: ; preds = %51, %33
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%54 = 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.5 = [48 x i8] c"\09\09>>Menge Aepfel: %.2f\0A\09\09>>%.2f Kosten je Kilo\0A\00"
@.str.6 = [62 x i8] c"\0A\09Die Kosten fuer einen Liter Apfelsaft betragen: %.2f EUR\0A\0A\0A\00"
@.str.8 = [48 x i8] c"\09\09>>Menge Birnen: %.2f\0A\09\09>>%.2f Kosten je Kilo\0A\00"
@.str.9 = [61 x i8] c"\0A\09Die Kosten fuer einen Liter Birnensaft betragen: %.2f EUR\0A\00"
@.str.10 = [69 x i8] c"\0A\09>> Die Birnensaft-Kosten sind guenstiger als die Apfelsaft-Kosten!\00"
@.str.11 = [44 x i8] c"\0A\09>> Die Kostenersparnis betraegt: %.2f EUR\00"
@.str.15 = [58 x i8] c"\0A\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\00"
@str.16 = [57 x i8] c"\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\00"
@str.17 = [33 x i8] c"\09\09Saftkosten | Aepfel und Birnen\00"
@str.18 = [58 x i8] c"\09- - - - - - - - - - - - - - - - - - - - - - - - - - - -\0A\00"
@str.19 = [31 x i8] c"\09>>Gegeben Angaben Apfelsaft:\0A\00"
@str.20 = [32 x i8] c"\09>>Gegeben Angaben Birnensaft:\0A\00"
@str.21 = [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.21, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.16, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.18, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.19, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.5, i64 0, i64 0), double 1.500000e+00, double 8.500000e-01)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.6, i64 0, i64 0), double 1.275000e+00)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0), double 1.200000e+00, double 0x3FEE666666666666)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), double 1.140000e+00)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), double 1.350000e-01)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.21, i64 0, i64 0))
ret i32 0
}