#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int numara, satis;
  float toplam_fiyat_1 = 0, toplam_fiyat_2 = 0, toplam_fiyat_3 = 0,
        toplam_fiyat_4 = 0, toplam_fiyat_5 = 0;
  int satilan_urun_adeti_1 = 0, satilan_urun_adeti_2 = 0,
      satilan_urun_adeti_3 = 0, satilan_urun_adeti_4 = 0,
      satilan_urun_adeti_5 = 0;
  float toplam = 0;
  printf("Programdan cikmak icin -1 giriniz\n");
  printf("Urun numarasi giriniz:");
  scanf("%d", &numara);
  while (numara != -1) {
    switch (numara) {
    case 1: {
      printf("Kac adet satis yapildi giriniz:");
      scanf("%d", &satis);
      toplam_fiyat_1 = toplam_fiyat_1 + satis * 2.98;
      satilan_urun_adeti_1 = satilan_urun_adeti_1 + satis;
      break;
    }
    case 2: {
      printf("Kac adet satis yapildi giriniz:");
      scanf("%d", &satis);
      toplam_fiyat_2 = toplam_fiyat_2 + satis * 4.50;
      satilan_urun_adeti_2 = satilan_urun_adeti_2 + satis;
      break;
    }
    case 3: {
      printf("Kac adet satis yapildi giriniz:");
      scanf("%d", &satis);
      toplam_fiyat_3 = toplam_fiyat_3 + satis * 9.98;
      satilan_urun_adeti_3 = satilan_urun_adeti_3 + satis;
      break;
    }
    case 4: {
      printf("Kac adet satis yapildi giriniz:");
      scanf("%d", &satis);
      toplam_fiyat_4 = toplam_fiyat_4 + satis * 4.48;
      satilan_urun_adeti_4 = satilan_urun_adeti_4 + satis;
      break;
    }
    case 5: {
      printf("Kac adet satis yapildi giriniz:");
      scanf("%d", &satis);
      toplam_fiyat_5 = toplam_fiyat_5 + satis * 6.87;
      satilan_urun_adeti_5 = satilan_urun_adeti_5 + satis;
      break;
    }
    default: {
      printf("Yanlis urun numarasi girdiniz.\n");
      break;
    }
    }
    printf("Urun numarasi seciniz:");
    scanf("%d", &numara);
  }
  toplam = toplam_fiyat_1 + toplam_fiyat_2 + toplam_fiyat_3 + toplam_fiyat_4 +
           toplam_fiyat_5;
  printf("Urun Numarasi\tSatilan Miktar\tToplam Parekende Fiyat\n");
  printf("1%29d%24.2f\n", satilan_urun_adeti_1, toplam_fiyat_1);
  printf("2%29d%24.2f\n", satilan_urun_adeti_2, toplam_fiyat_2);
  printf("3%29d%24.2f\n", satilan_urun_adeti_3, toplam_fiyat_3);
  printf("4%29d%24.2f\n", satilan_urun_adeti_4, toplam_fiyat_4);
  printf("5%29d%24.2f\n", satilan_urun_adeti_5, toplam_fiyat_5);
  printf("Satisi yapilan urunlerin toplam parekende fiyati = %.2f", toplam);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
je     13b1 <main+0x291>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x4,%eax
ja     1380 <main+0x260>
mov    -0x40(%rbp),%rax
lea    0xe50(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe80(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xe0b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
mov    -0x24(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
jmp    138e <main+0x26e>
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2d(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xdb0(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x28(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    138e <main+0x26e>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdda(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xd55(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    138e <main+0x26e>
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd87(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xcfa(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x30(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    138e <main+0x26e>
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd34(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xc9f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x34(%rbp)
jmp    138e <main+0x26e>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
jmp    11ae <main+0x8e>
movss  -0x10(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
addss  -0x1c(%rbp),%xmm0
addss  -0x20(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd15(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd08(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcfb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcee(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%esi
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x38(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcd7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xfc9(%rip),%rdi
call   1030 <puts@plt>
lea    0xef3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xef3(%rip),%rbp
lea    0x34(%rsp),%r14
lea    0xf0a(%rip),%r15
lea    0xead(%rip),%rbx
lea    0xedc(%rip),%r12
lea    0x4(%rsp),%r13
xorps  %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x2c(%rsp)
jmp    11fa <main+0xca>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
mov    0x34(%rsp),%eax
add    $0x1,%eax
cmp    $0x6,%eax
ja     11d5 <main+0xa5>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x4(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xdd4(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
add    %eax,0x1c(%rsp)
jmp    11f0 <main+0xc0>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x4(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xd83(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
add    %eax,0x20(%rsp)
jmp    11f0 <main+0xc0>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x4(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xd2f(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x10(%rsp)
add    %eax,0x24(%rsp)
jmp    11f0 <main+0xc0>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x4(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xcdb(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x14(%rsp)
add    %eax,0x28(%rsp)
jmp    11f0 <main+0xc0>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
call   1050 <scanf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x4(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xc87(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x18(%rsp)
add    %eax,0x2c(%rsp)
jmp    11f0 <main+0xc0>
movss  0xc(%rsp),%xmm0
addss  0x8(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
addss  0x18(%rsp),%xmm0
movss  %xmm0,0x30(%rsp)
lea    0xd72(%rip),%rdi
call   1030 <puts@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcc1(%rip),%rdi
mov    0x1c(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcb2(%rip),%rdi
mov    0x20(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xca3(%rip),%rdi
mov    0x24(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc94(%rip),%rdi
mov    0x28(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc85(%rip),%rdi
mov    0x2c(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc76(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Programdan cikmak icin -1 giriniz\0A\00"
@.str.1 = [23 x i8] c"Urun numarasi giriniz:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [32 x i8] c"Kac adet satis yapildi giriniz:\00"
@.str.4 = [32 x i8] c"Yanlis urun numarasi girdiniz.\0A\00"
@.str.5 = [23 x i8] c"Urun numarasi seciniz:\00"
@.str.6 = [53 x i8] c"Urun Numarasi\09Satilan Miktar\09Toplam Parekende Fiyat\0A\00"
@.str.7 = [13 x i8] c"1%29d%24.2f\0A\00"
@.str.8 = [13 x i8] c"2%29d%24.2f\0A\00"
@.str.9 = [13 x i8] c"3%29d%24.2f\0A\00"
@.str.10 = [13 x i8] c"4%29d%24.2f\0A\00"
@.str.11 = [13 x i8] c"5%29d%24.2f\0A\00"
@.str.12 = [56 x i8] c"Satisi yapilan urunlerin toplam parekende fiyati = %.2f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store float 0.000000e+00, float* %14
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
br label %18
18: ; preds = %85, %0
%19 = load i32, i32* %2
%20 = icmp ne i32 %19, -1
br i1 %20, label %21, label %88
21: ; preds = %18
%22 = load i32, i32* %2
switch i32 %22, label %83 [
i32 1, label %23
i32 2, label %35
i32 3, label %47
i32 4, label %59
i32 5, label %71
]
23: ; preds = %21
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%26 = load float, float* %4
%27 = fpext float %26 to double
%28 = load i32, i32* %3
%29 = sitofp i32 %28 to double
%30 = call double @llvm.fmuladd.f64(double %29, double 2.980000e+00, double %27)
%31 = fptrunc double %30 to float
store float %31, float* %4
%32 = load i32, i32* %9
%33 = load i32, i32* %3
%34 = add nsw i32 %32, %33
store i32 %34, i32* %9
br label %85
35: ; preds = %21
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%38 = load float, float* %5
%39 = fpext float %38 to double
%40 = load i32, i32* %3
%41 = sitofp i32 %40 to double
%42 = call double @llvm.fmuladd.f64(double %41, double 4.500000e+00, double %39)
%43 = fptrunc double %42 to float
store float %43, float* %5
%44 = load i32, i32* %10
%45 = load i32, i32* %3
%46 = add nsw i32 %44, %45
store i32 %46, i32* %10
br label %85
47: ; preds = %21
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%50 = load float, float* %6
%51 = fpext float %50 to double
%52 = load i32, i32* %3
%53 = sitofp i32 %52 to double
%54 = call double @llvm.fmuladd.f64(double %53, double 9.980000e+00, double %51)
%55 = fptrunc double %54 to float
store float %55, float* %6
%56 = load i32, i32* %11
%57 = load i32, i32* %3
%58 = add nsw i32 %56, %57
store i32 %58, i32* %11
br label %85
59: ; preds = %21
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%61 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%62 = load float, float* %7
%63 = fpext float %62 to double
%64 = load i32, i32* %3
%65 = sitofp i32 %64 to double
%66 = call double @llvm.fmuladd.f64(double %65, double 4.480000e+00, double %63)
%67 = fptrunc double %66 to float
store float %67, float* %7
%68 = load i32, i32* %12
%69 = load i32, i32* %3
%70 = add nsw i32 %68, %69
store i32 %70, i32* %12
br label %85
71: ; preds = %21
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%73 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%74 = load float, float* %8
%75 = fpext float %74 to double
%76 = load i32, i32* %3
%77 = sitofp i32 %76 to double
%78 = call double @llvm.fmuladd.f64(double %77, double 6.870000e+00, double %75)
%79 = fptrunc double %78 to float
store float %79, float* %8
%80 = load i32, i32* %13
%81 = load i32, i32* %3
%82 = add nsw i32 %80, %81
store i32 %82, i32* %13
br label %85
83: ; preds = %21
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %85
85: ; preds = %83, %71, %59, %47, %35, %23
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%87 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
br label %18
88: ; preds = %18
%89 = load float, float* %4
%90 = load float, float* %5
%91 = fadd float %89, %90
%92 = load float, float* %6
%93 = fadd float %91, %92
%94 = load float, float* %7
%95 = fadd float %93, %94
%96 = load float, float* %8
%97 = fadd float %95, %96
store float %97, float* %14
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%99 = load i32, i32* %9
%100 = load float, float* %4
%101 = fpext float %100 to double
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %99, double %101)
%103 = load i32, i32* %10
%104 = load float, float* %5
%105 = fpext float %104 to double
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %103, double %105)
%107 = load i32, i32* %11
%108 = load float, float* %6
%109 = fpext float %108 to double
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %107, double %109)
%111 = load i32, i32* %12
%112 = load float, float* %7
%113 = fpext float %112 to double
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %111, double %113)
%115 = load i32, i32* %13
%116 = load float, float* %8
%117 = fpext float %116 to double
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %115, double %117)
%119 = load float, float* %14
%120 = fpext float %119 to double
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0), double %120)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"Urun numarasi giriniz:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [32 x i8] c"Kac adet satis yapildi giriniz:\00"
@.str.5 = [23 x i8] c"Urun numarasi seciniz:\00"
@.str.7 = [13 x i8] c"1%29d%24.2f\0A\00"
@.str.8 = [13 x i8] c"2%29d%24.2f\0A\00"
@.str.9 = [13 x i8] c"3%29d%24.2f\0A\00"
@.str.10 = [13 x i8] c"4%29d%24.2f\0A\00"
@.str.11 = [13 x i8] c"5%29d%24.2f\0A\00"
@.str.12 = [56 x i8] c"Satisi yapilan urunlerin toplam parekende fiyati = %.2f\00"
@str = [34 x i8] c"Programdan cikmak icin -1 giriniz\00"
@str.13 = [52 x i8] c"Urun Numarasi\09Satilan Miktar\09Toplam Parekende Fiyat\00"
@str.14 = [31 x i8] c"Yanlis urun numarasi girdiniz.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %7
7: ; preds = %67, %0
%8 = phi float [ 0.000000e+00, %0 ], [ %68, %67 ]
%9 = phi float [ 0.000000e+00, %0 ], [ %69, %67 ]
%10 = phi float [ 0.000000e+00, %0 ], [ %70, %67 ]
%11 = phi float [ 0.000000e+00, %0 ], [ %71, %67 ]
%12 = phi float [ 0.000000e+00, %0 ], [ %72, %67 ]
%13 = phi i32 [ 0, %0 ], [ %73, %67 ]
%14 = phi i32 [ 0, %0 ], [ %74, %67 ]
%15 = phi i32 [ 0, %0 ], [ %75, %67 ]
%16 = phi i32 [ 0, %0 ], [ %76, %67 ]
%17 = phi i32 [ 0, %0 ], [ %77, %67 ]
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
switch i32 %19, label %65 [
i32 -1, label %79
i32 1, label %20
i32 2, label %29
i32 3, label %38
i32 4, label %47
i32 5, label %56
]
20: ; preds = %7
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%23 = fpext float %8 to double
%24 = load i32, i32* %2
%25 = sitofp i32 %24 to double
%26 = call double @llvm.fmuladd.f64(double %25, double 2.980000e+00, double %23)
%27 = fptrunc double %26 to float
%28 = add nsw i32 %24, %13
br label %67
29: ; preds = %7
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%32 = fpext float %9 to double
%33 = load i32, i32* %2
%34 = sitofp i32 %33 to double
%35 = call double @llvm.fmuladd.f64(double %34, double 4.500000e+00, double %32)
%36 = fptrunc double %35 to float
%37 = add nsw i32 %33, %14
br label %67
38: ; preds = %7
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%41 = fpext float %10 to double
%42 = load i32, i32* %2
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %43, double 9.980000e+00, double %41)
%45 = fptrunc double %44 to float
%46 = add nsw i32 %42, %15
br label %67
47: ; preds = %7
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%50 = fpext float %11 to double
%51 = load i32, i32* %2
%52 = sitofp i32 %51 to double
%53 = call double @llvm.fmuladd.f64(double %52, double 4.480000e+00, double %50)
%54 = fptrunc double %53 to float
%55 = add nsw i32 %51, %16
br label %67
56: ; preds = %7
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%59 = fpext float %12 to double
%60 = load i32, i32* %2
%61 = sitofp i32 %60 to double
%62 = call double @llvm.fmuladd.f64(double %61, double 6.870000e+00, double %59)
%63 = fptrunc double %62 to float
%64 = add nsw i32 %60, %17
br label %67
65: ; preds = %7
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.14, i64 0, i64 0))
br label %67
67: ; preds = %65, %56, %47, %38, %29, %20
%68 = phi float [ %8, %65 ], [ %8, %56 ], [ %8, %47 ], [ %8, %38 ], [ %8, %29 ], [ %27, %20 ]
%69 = phi float [ %9, %65 ], [ %9, %56 ], [ %9, %47 ], [ %9, %38 ], [ %36, %29 ], [ %9, %20 ]
%70 = phi float [ %10, %65 ], [ %10, %56 ], [ %10, %47 ], [ %45, %38 ], [ %10, %29 ], [ %10, %20 ]
%71 = phi float [ %11, %65 ], [ %11, %56 ], [ %54, %47 ], [ %11, %38 ], [ %11, %29 ], [ %11, %20 ]
%72 = phi float [ %12, %65 ], [ %63, %56 ], [ %12, %47 ], [ %12, %38 ], [ %12, %29 ], [ %12, %20 ]
%73 = phi i32 [ %13, %65 ], [ %13, %56 ], [ %13, %47 ], [ %13, %38 ], [ %13, %29 ], [ %28, %20 ]
%74 = phi i32 [ %14, %65 ], [ %14, %56 ], [ %14, %47 ], [ %14, %38 ], [ %37, %29 ], [ %14, %20 ]
%75 = phi i32 [ %15, %65 ], [ %15, %56 ], [ %15, %47 ], [ %46, %38 ], [ %15, %29 ], [ %15, %20 ]
%76 = phi i32 [ %16, %65 ], [ %16, %56 ], [ %55, %47 ], [ %16, %38 ], [ %16, %29 ], [ %16, %20 ]
%77 = phi i32 [ %17, %65 ], [ %64, %56 ], [ %17, %47 ], [ %17, %38 ], [ %17, %29 ], [ %17, %20 ]
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
br label %7
79: ; preds = %7
%80 = fadd float %8, %9
%81 = fadd float %80, %10
%82 = fadd float %81, %11
%83 = fadd float %82, %12
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.13, i64 0, i64 0))
%85 = fpext float %8 to double
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %13, double %85)
%87 = fpext float %9 to double
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %14, double %87)
%89 = fpext float %10 to double
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %15, double %89)
%91 = fpext float %11 to double
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %16, double %91)
%93 = fpext float %12 to double
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %17, double %93)
%95 = fpext float %83 to double
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0), double %95)
ret i32 0
}