#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() {
  printf("Programdan cikmak icin -1 giriniz\n");
  printf("1-Mudurler\n");
  printf("2-Vardiyali isciler\n");
  printf("3-Komisyon iscileri\n");
  printf("4-Parca iscileri\n");
  int sira_numarasi = 0;
  while (sira_numarasi != -1) {
    printf(
        "Maasinin hesaplanmasini istediginiz calisan turunun kodunu giriniz: ");
    scanf("%d", &sira_numarasi);
    if (sira_numarasi == -1) {
      break;
    }
    int vardiyali_isci_calisma_saati;
    int vardiyali_isci_sabit_ucret;
    int vardiyali_isci_toplam_ucret;
    int komisyon_isci_satis;
    float komisyon_isci_satistan_alinan_ucret;
    float komisyon_isci_toplam_ucret;
    int parca_iscisi_uretim;
    int parca_iscisi_parca_fiyat;
    int parca_iscisi_maas;
    switch (sira_numarasi) {
    case 1:
      printf("Mudurun haftalik maasi = %dTL\n", 2000);
      break;
    case 2:
      printf("Vardiyali iscinin calisma saatini giriniz(Mınumum saatin uzeri "
             "sabit ucretin 1.5 katidir): ");
      scanf("%d", &vardiyali_isci_calisma_saati);
      printf("Vardiyali iscinin saatlik sabit ucretini giriniz: ");
      scanf("%d", &vardiyali_isci_sabit_ucret);
      if (vardiyali_isci_calisma_saati <= 40) {
        vardiyali_isci_toplam_ucret =
            vardiyali_isci_calisma_saati * vardiyali_isci_sabit_ucret;
      } else {
        vardiyali_isci_toplam_ucret = ((vardiyali_isci_calisma_saati - 40) *
                                       1.5 * vardiyali_isci_sabit_ucret) +
                                      (40 * vardiyali_isci_sabit_ucret);
      }
      printf("Vardiyali iscinin haftalik maasi = %dTL\n",
             vardiyali_isci_toplam_ucret);
      break;
    case 3:
      printf("Komisyon iscisinin haftalik yaptigi satisi giriniz: ");
      scanf("%d", &komisyon_isci_satis);
      komisyon_isci_satistan_alinan_ucret = komisyon_isci_satis * 0.057;
      komisyon_isci_toplam_ucret = 250 + komisyon_isci_satistan_alinan_ucret;
      printf("Komisyon iscisinin haftalik maasi = %.2fTL\n",
             komisyon_isci_toplam_ucret);
      break;
    case 4:
      printf("Parca iscisinin malzeme basina ucretini giriniz: ");
      scanf("%d", &parca_iscisi_parca_fiyat);
      printf("Parca iscisinin urettigi malzeme sayisini giriniz: ");
      scanf("%d", &parca_iscisi_uretim);
      parca_iscisi_maas = parca_iscisi_parca_fiyat * parca_iscisi_uretim;
      printf("Parca iscisinin haftalik maasi = %dTL\n", parca_iscisi_maas);
      break;
    default:
      printf("Yanlis kod numarasi girdiniz!\n");
      break;
    }
  }
  printf("Programdan ciktiniz :)");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
je     1366 <main+0x246>
lea    0xf06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
jne    11b3 <main+0x93>
jmp    1366 <main+0x246>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x3,%eax
ja     1353 <main+0x233>
mov    -0x38(%rbp),%rax
lea    0xe45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xef8(%rip),%rdi
mov    $0x7d0,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1361 <main+0x241>
lea    0xeff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xf3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x28,-0xc(%rbp)
jg     1249 <main+0x129>
mov    -0xc(%rbp),%eax
imul   -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    127b <main+0x15b>
mov    -0xc(%rbp),%eax
sub    $0x28,%eax
cvtsi2sd %eax,%xmm0
movsd  0xdb5(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x10(%rbp),%xmm2
imul   $0x28,-0x10(%rbp),%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1361 <main+0x241>
lea    0xf1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe32(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <scanf@plt>
cvtsi2sdl -0x18(%rbp),%xmm0
movsd  0xd4c(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xd2f(%rip),%xmm0
addss  -0x1c(%rbp),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xefd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1361 <main+0x241>
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdcc(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xf2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdae(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x28(%rbp),%eax
imul   -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xf33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1361 <main+0x241>
lea    0xf47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117c <main+0x5c>
lea    0xf53(%rip),%rdi
mov    $0x0,%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    $0x18,%rsp
lea    0x1104(%rip),%rdi
call   1030 <puts@plt>
lea    0x111a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1119(%rip),%rdi
call   1030 <puts@plt>
lea    0x1121(%rip),%rdi
call   1030 <puts@plt>
lea    0x1129(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,0x14(%rsp)
lea    0xe9b(%rip),%r14
lea    0xed9(%rip),%rbx
lea    0x14(%rsp),%r15
lea    0xe78(%rip),%r13
lea    0x10(%rsp),%r12
lea    0xc(%rsp),%rbp
jmp    11fc <main+0xcc>
lea    0xff6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <scanf@plt>
lea    0x100f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
imul   0xc(%rsp),%esi
lea    0x1021(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0xffffffff,0x14(%rsp)
je     1320 <main+0x1f0>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
mov    0x14(%rsp),%eax
cmp    $0xffffffff,%eax
je     1320 <main+0x1f0>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     123e <main+0x10e>
movslq 0x0(%r13,%rax,4),%rax
add    %r13,%rax
jmp    *%rax
lea    0xe35(%rip),%rdi
mov    $0x7d0,%esi
jmp    11ea <main+0xba>
lea    0x106a(%rip),%rdi
call   1030 <puts@plt>
jmp    11f1 <main+0xc1>
lea    0xe38(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1050 <scanf@plt>
mov    0x10(%rsp),%esi
cmp    $0x28,%esi
jg     12de <main+0x1ae>
imul   0xc(%rsp),%esi
jmp    1314 <main+0x1e4>
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
mulsd  0xd45(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
addss  0xd49(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    11f1 <main+0xc1>
add    $0xffffffd8,%esi
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
mulsd  0xd18(%rip),%xmm0
mov    0xc(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
shl    $0x3,%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
mulsd  %xmm0,%xmm1
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%esi
lea    0xe00(%rip),%rdi
jmp    11ea <main+0xba>
lea    0xf0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%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 = [12 x i8] c"1-Mudurler\0A\00"
@.str.2 = [21 x i8] c"2-Vardiyali isciler\0A\00"
@.str.3 = [21 x i8] c"3-Komisyon iscileri\0A\00"
@.str.4 = [18 x i8] c"4-Parca iscileri\0A\00"
@.str.5 = [69 x i8] c"Maasinin hesaplanmasini istediginiz calisan turunun kodunu giriniz: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [31 x i8] c"Mudurun haftalik maasi = %dTL\0A\00"
@.str.8 = [93 x i8] c"Vardiyali iscinin calisma saatini giriniz(M\C4\B1numum saatin uzeri sabit ucretin 1.5 katidir): \00"
@.str.9 = [51 x i8] c"Vardiyali iscinin saatlik sabit ucretini giriniz: \00"
@.str.10 = [41 x i8] c"Vardiyali iscinin haftalik maasi = %dTL\0A\00"
@.str.11 = [53 x i8] c"Komisyon iscisinin haftalik yaptigi satisi giriniz: \00"
@.str.12 = [44 x i8] c"Komisyon iscisinin haftalik maasi = %.2fTL\0A\00"
@.str.13 = [50 x i8] c"Parca iscisinin malzeme basina ucretini giriniz: \00"
@.str.14 = [52 x i8] c"Parca iscisinin urettigi malzeme sayisini giriniz: \00"
@.str.15 = [39 x i8] c"Parca iscisinin haftalik maasi = %dTL\0A\00"
@.str.16 = [31 x i8] c"Yanlis kod numarasi girdiniz!\0A\00"
@.str.17 = [23 x i8] c"Programdan ciktiniz :)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %17
17: ; preds = %80, %0
%18 = load i32, i32* %2
%19 = icmp ne i32 %18, -1
br i1 %19, label %20, label %81
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %26
25: ; preds = %20
br label %81
26: ; preds = %20
%27 = load i32, i32* %2
switch i32 %27, label %78 [
i32 1, label %28
i32 2, label %30
i32 3, label %56
i32 4, label %68
]
28: ; preds = %26
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 2000)
br label %80
30: ; preds = %26
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.8, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%35 = load i32, i32* %3
%36 = icmp sle i32 %35, 40
br i1 %36, label %37, label %41
37: ; preds = %30
%38 = load i32, i32* %3
%39 = load i32, i32* %4
%40 = mul nsw i32 %38, %39
store i32 %40, i32* %5
br label %53
41: ; preds = %30
%42 = load i32, i32* %3
%43 = sub nsw i32 %42, 40
%44 = sitofp i32 %43 to double
%45 = fmul double %44, 1.500000e+00
%46 = load i32, i32* %4
%47 = sitofp i32 %46 to double
%48 = load i32, i32* %4
%49 = mul nsw i32 40, %48
%50 = sitofp i32 %49 to double
%51 = call double @llvm.fmuladd.f64(double %45, double %47, double %50)
%52 = fptosi double %51 to i32
store i32 %52, i32* %5
br label %53
53: ; preds = %41, %37
%54 = load i32, i32* %5
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0), i32 %54)
br label %80
56: ; preds = %26
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
%59 = load i32, i32* %6
%60 = sitofp i32 %59 to double
%61 = fmul double %60, 5.700000e-02
%62 = fptrunc double %61 to float
store float %62, float* %7
%63 = load float, float* %7
%64 = fadd float 2.500000e+02, %63
store float %64, float* %8
%65 = load float, float* %8
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0), double %66)
br label %80
68: ; preds = %26
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%70 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %10)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0))
%72 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %9)
%73 = load i32, i32* %10
%74 = load i32, i32* %9
%75 = mul nsw i32 %73, %74
store i32 %75, i32* %11
%76 = load i32, i32* %11
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), i32 %76)
br label %80
78: ; preds = %26
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0))
br label %80
80: ; preds = %78, %68, %56, %53, %28
br label %17
81: ; preds = %25, %17
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.5 = [69 x i8] c"Maasinin hesaplanmasini istediginiz calisan turunun kodunu giriniz: \00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [31 x i8] c"Mudurun haftalik maasi = %dTL\0A\00"
@.str.8 = [93 x i8] c"Vardiyali iscinin calisma saatini giriniz(M\C4\B1numum saatin uzeri sabit ucretin 1.5 katidir): \00"
@.str.9 = [51 x i8] c"Vardiyali iscinin saatlik sabit ucretini giriniz: \00"
@.str.10 = [41 x i8] c"Vardiyali iscinin haftalik maasi = %dTL\0A\00"
@.str.11 = [53 x i8] c"Komisyon iscisinin haftalik yaptigi satisi giriniz: \00"
@.str.12 = [44 x i8] c"Komisyon iscisinin haftalik maasi = %.2fTL\0A\00"
@.str.13 = [50 x i8] c"Parca iscisinin malzeme basina ucretini giriniz: \00"
@.str.14 = [52 x i8] c"Parca iscisinin urettigi malzeme sayisini giriniz: \00"
@.str.15 = [39 x i8] c"Parca iscisinin haftalik maasi = %dTL\0A\00"
@.str.17 = [23 x i8] c"Programdan ciktiniz :)\00"
@str = [34 x i8] c"Programdan cikmak icin -1 giriniz\00"
@str.18 = [11 x i8] c"1-Mudurler\00"
@str.19 = [20 x i8] c"2-Vardiyali isciler\00"
@str.20 = [20 x i8] c"3-Komisyon iscileri\00"
@str.21 = [17 x i8] c"4-Parca iscileri\00"
@str.22 = [30 x i8] c"Yanlis kod numarasi girdiniz!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.21, i64 0, i64 0))
%12 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%13 = bitcast i32* %2 to i8*
%14 = bitcast i32* %3 to i8*
%15 = bitcast i32* %4 to i8*
%16 = bitcast i32* %5 to i8*
%17 = bitcast i32* %6 to i8*
br label %18
18: ; preds = %0, %70
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
%22 = icmp eq i32 %21, -1
br i1 %22, label %73, label %23
23: ; preds = %18
switch i32 %21, label %68 [
i32 1, label %24
i32 2, label %26
i32 3, label %49
i32 4, label %59
]
24: ; preds = %23
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 2000)
br label %70
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @.str.8, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%31 = load i32, i32* %2
%32 = icmp slt i32 %31, 41
br i1 %32, label %33, label %36
33: ; preds = %26
%34 = load i32, i32* %3
%35 = mul nsw i32 %34, %31
br label %46
36: ; preds = %26
%37 = add nsw i32 %31, -40
%38 = sitofp i32 %37 to double
%39 = fmul double %38, 1.500000e+00
%40 = load i32, i32* %3
%41 = sitofp i32 %40 to double
%42 = mul nsw i32 %40, 40
%43 = sitofp i32 %42 to double
%44 = call double @llvm.fmuladd.f64(double %39, double %41, double %43)
%45 = fptosi double %44 to i32
br label %46
46: ; preds = %36, %33
%47 = phi i32 [ %35, %33 ], [ %45, %36 ]
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0), i32 %47)
br label %70
49: ; preds = %23
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %4)
%52 = load i32, i32* %4
%53 = sitofp i32 %52 to double
%54 = fmul double %53, 5.700000e-02
%55 = fptrunc double %54 to float
%56 = fadd float %55, 2.500000e+02
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0), double %57)
br label %70
59: ; preds = %23
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0))
%61 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %6)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0))
%63 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %5)
%64 = load i32, i32* %6
%65 = load i32, i32* %5
%66 = mul nsw i32 %65, %64
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0), i32 %66)
br label %70
68: ; preds = %23
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.22, i64 0, i64 0))
br label %70
70: ; preds = %68, %59, %49, %46, %24
%71 = load i32, i32* %1
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %18
73: ; preds = %18, %70
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
ret i32 0
}