#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*/ LC_ALL;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdin;
int main() {
  setlocale(LC_ALL, "");
  float total = 0;
  float parcelas[3];
  int qtdParcelas = 0;
  float valorDaCompraAntes = 0, valorDaCompraDepois = 0;
  float desconto = 0;
  int i = 0;
  for (i = 0; i < 3; i++) {
    parcelas[i] = 0;
  }
  float comissao = 0;
  int flag = 0;
  char parcelar;
  printf("Valor da compra: ");
  scanf("%f", &valorDaCompraAntes);
  printf("Desconto de 10 porcento!\n");
  desconto = valorDaCompraAntes * 0.10;
  valorDaCompraDepois = valorDaCompraAntes * 0.90;
  printf("%.2f - %.2f = %.2f\n", valorDaCompraAntes, desconto,
         valorDaCompraDepois);
  printf("Deseja parcelar? (y/n): ");
  setbuf(stdin, NULL);
  scanf("%c", &parcelar);
  if (parcelar == 'y' || parcelar == 'Y') {
    flag = 1;
    while (qtdParcelas <= 0 || qtdParcelas > 3) {
      printf("Insira a quantidade de parcelas: ");
      scanf("%d", &qtdParcelas);
      if (qtdParcelas > 3) {
        printf("Insira até 3 parcelas.\n");
      } else if (qtdParcelas <= 0) {
        printf("Insira um número positivo válido.\n");
      }
    }
    for (int i = 0; i < qtdParcelas; i++) {
      parcelas[i] = valorDaCompraDepois / (float)qtdParcelas;
      printf("Parcela %d: R$%.2f\n", i + 1, parcelas[i]);
    }
  }
  if (flag == 1) {
    comissao = valorDaCompraAntes * 0.05;
    printf("A comissão do vendedor: R$%.2f.\n", comissao);
  } else {
    comissao = valorDaCompraDepois * 0.05;
    printf("A comissão do vendedor: R$%.2f.\n", comissao);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
lea    0xee7(%rip),%rsi
call   1050 <setlocale@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movl   $0x0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    11be <main+0x7e>
movslq -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp,%rax,4)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1199 <main+0x59>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe48(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdfc(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdd6(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x20(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xdee(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    0x2d73(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <setbuf@plt>
lea    0xded(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movsbl -0x31(%rbp),%eax
cmp    $0x79,%eax
je     12ac <main+0x16c>
movsbl -0x31(%rbp),%eax
cmp    $0x59,%eax
jne    139b <main+0x25b>
movl   $0x1,-0x30(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x39(%rbp)
jle    12cc <main+0x18c>
cmpl   $0x3,-0x18(%rbp)
setg   %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    12dc <main+0x19c>
jmp    133b <main+0x1fb>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xda8(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x3,-0x18(%rbp)
jle    1319 <main+0x1d9>
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1336 <main+0x1f6>
cmpl   $0x0,-0x18(%rbp)
jg     1331 <main+0x1f1>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1336 <main+0x1f6>
jmp    12b3 <main+0x173>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1396 <main+0x256>
movss  -0x20(%rbp),%xmm0
cvtsi2ssl -0x18(%rbp),%xmm1
divss  %xmm1,%xmm0
movslq -0x38(%rbp),%rax
movss  %xmm0,-0x14(%rbp,%rax,4)
mov    -0x38(%rbp),%esi
add    $0x1,%esi
movslq -0x38(%rbp),%rax
movss  -0x14(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd59(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1342 <main+0x202>
jmp    139b <main+0x25b>
cmpl   $0x1,-0x30(%rbp)
jne    13df <main+0x29f>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc5a(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd1b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1414 <main+0x2d4>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc20(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
lea    0xf4a(%rip),%rsi
call   1060 <setlocale@plt>
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe93(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe3f(%rip),%xmm1
mulsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
movsd  0xe37(%rip),%xmm2
mulsd  %xmm0,%xmm2
cvtsd2ss %xmm2,%xmm2
cvtss2sd %xmm1,%xmm1
movss  %xmm2,0x14(%rsp)
cvtss2sd %xmm2,%xmm2
movsd  %xmm2,0x18(%rsp)
lea    0xe39(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
lea    0xe3f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dd8(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   1040 <setbuf@plt>
lea    0xe3a(%rip),%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
movsd  0x18(%rsp),%xmm0
mov    0xb(%rsp),%al
and    $0xdf,%al
cmp    $0x59,%al
jne    12f9 <main+0x1a9>
lea    0xe16(%rip),%r14
lea    0xe31(%rip),%r15
lea    0xc(%rsp),%r12
lea    0xe9b(%rip),%rbx
lea    0xe70(%rip),%r13
jmp    1281 <main+0x131>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1030 <puts@plt>
mov    0xc(%rsp),%eax
lea    -0x4(%rax),%ecx
cmp    $0xfffffffd,%ecx
jae    12ad <main+0x15d>
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
mov    %rbx,%rdi
cmp    $0x3,%eax
jg     1270 <main+0x120>
mov    %r13,%rdi
test   %eax,%eax
jg     1275 <main+0x125>
jmp    1270 <main+0x120>
xor    %ebx,%ebx
lea    0xdcc(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x14(%rsp),%xmm1
divss  %xmm0,%xmm1
add    $0x1,%ebx
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0xc(%rsp),%eax
cmp    %eax,%ebx
jl     12c0 <main+0x170>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xd0f(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd86(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [18 x i8] c"Valor da compra: \00"
@.str.2 = [3 x i8] c"%f\00"
@.str.3 = [26 x i8] c"Desconto de 10 porcento!\0A\00"
@.str.4 = [20 x i8] c"%.2f - %.2f = %.2f\0A\00"
@.str.5 = [25 x i8] c"Deseja parcelar? (y/n): \00"
@stdin = global i32 0
@.str.6 = [3 x i8] c"%c\00"
@.str.7 = [34 x i8] c"Insira a quantidade de parcelas: \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [25 x i8] c"Insira at\C3\A9 3 parcelas.\0A\00"
@.str.10 = [37 x i8] c"Insira um n\C3\BAmero positivo v\C3\A1lido.\0A\00"
@.str.11 = [20 x i8] c"Parcela %d: R$%.2f\0A\00"
@.str.12 = [34 x i8] c"A comiss\C3\A3o do vendedor: R$%.2f.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca [3 x float]
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca i32
%9 = alloca float
%10 = alloca i32
%11 = alloca i8
%12 = alloca i32
store i32 0, i32* %1
%13 = load i32, i32* @LC_ALL
%14 = call i32 @setlocale(i32 %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
store float 0.000000e+00, float* %2
store i32 0, i32* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store i32 0, i32* %8
store i32 0, i32* %8
br label %15
15: ; preds = %22, %0
%16 = load i32, i32* %8
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = load i32, i32* %8
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 %20
store float 0.000000e+00, float* %21
br label %22
22: ; preds = %18
%23 = load i32, i32* %8
%24 = add nsw i32 %23, 1
store i32 %24, i32* %8
br label %15
25: ; preds = %15
store float 0.000000e+00, float* %9
store i32 0, i32* %10
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %5)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%29 = load float, float* %5
%30 = fpext float %29 to double
%31 = fmul double %30, 1.000000e-01
%32 = fptrunc double %31 to float
store float %32, float* %7
%33 = load float, float* %5
%34 = fpext float %33 to double
%35 = fmul double %34, 9.000000e-01
%36 = fptrunc double %35 to float
store float %36, float* %6
%37 = load float, float* %5
%38 = fpext float %37 to double
%39 = load float, float* %7
%40 = fpext float %39 to double
%41 = load float, float* %6
%42 = fpext float %41 to double
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %38, double %40, double %42)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%45 = load i32, i32* @stdin
%46 = call i32 @setbuf(i32 %45, i32* null)
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %11)
%48 = load i8, i8* %11
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 121
br i1 %50, label %55, label %51
51: ; preds = %25
%52 = load i8, i8* %11
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 89
br i1 %54, label %55, label %103
55: ; preds = %51, %25
store i32 1, i32* %10
br label %56
56: ; preds = %77, %55
%57 = load i32, i32* %4
%58 = icmp sle i32 %57, 0
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = load i32, i32* %4
%61 = icmp sgt i32 %60, 3
br label %62
62: ; preds = %59, %56
%63 = phi i1 [ true, %56 ], [ %61, %59 ]
br i1 %63, label %64, label %78
64: ; preds = %62
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %4)
%67 = load i32, i32* %4
%68 = icmp sgt i32 %67, 3
br i1 %68, label %69, label %71
69: ; preds = %64
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0))
br label %77
71: ; preds = %64
%72 = load i32, i32* %4
%73 = icmp sle i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0))
br label %76
76: ; preds = %74, %71
br label %77
77: ; preds = %76, %69
br label %56
78: ; preds = %62
store i32 0, i32* %12
br label %79
79: ; preds = %99, %78
%80 = load i32, i32* %12
%81 = load i32, i32* %4
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %102
83: ; preds = %79
%84 = load float, float* %6
%85 = load i32, i32* %4
%86 = sitofp i32 %85 to float
%87 = fdiv float %84, %86
%88 = load i32, i32* %12
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 %89
store float %87, float* %90
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
%93 = load i32, i32* %12
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 %94
%96 = load float, float* %95
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i32 %92, double %97)
br label %99
99: ; preds = %83
%100 = load i32, i32* %12
%101 = add nsw i32 %100, 1
store i32 %101, i32* %12
br label %79
102: ; preds = %79
br label %103
103: ; preds = %102, %51
%104 = load i32, i32* %10
%105 = icmp eq i32 %104, 1
br i1 %105, label %106, label %114
106: ; preds = %103
%107 = load float, float* %5
%108 = fpext float %107 to double
%109 = fmul double %108, 5.000000e-02
%110 = fptrunc double %109 to float
store float %110, float* %9
%111 = load float, float* %9
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), double %112)
br label %122
114: ; preds = %103
%115 = load float, float* %6
%116 = fpext float %115 to double
%117 = fmul double %116, 5.000000e-02
%118 = fptrunc double %117 to float
store float %118, float* %9
%119 = load float, float* %9
%120 = fpext float %119 to double
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), double %120)
br label %122
122: ; preds = %114, %106
ret i32 0
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [1 x i8] zeroinitializer
@.str.1 = [18 x i8] c"Valor da compra: \00"
@.str.2 = [3 x i8] c"%f\00"
@.str.4 = [20 x i8] c"%.2f - %.2f = %.2f\0A\00"
@.str.5 = [25 x i8] c"Deseja parcelar? (y/n): \00"
@stdin = global i32 0
@.str.6 = [3 x i8] c"%c\00"
@.str.7 = [34 x i8] c"Insira a quantidade de parcelas: \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.11 = [20 x i8] c"Parcela %d: R$%.2f\0A\00"
@.str.12 = [34 x i8] c"A comiss\C3\A3o do vendedor: R$%.2f.\0A\00"
@str = [25 x i8] c"Desconto de 10 porcento!\00"
@str.13 = [36 x i8] c"Insira um n\C3\BAmero positivo v\C3\A1lido.\00"
@str.14 = [24 x i8] c"Insira at\C3\A9 3 parcelas.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = load i32, i32* @LC_ALL
%5 = tail call i32 @setlocale(i32 %4, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%6 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%7 = bitcast float* %2 to i8*
store float 0.000000e+00, float* %2
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), float* %2)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%11 = load float, float* %2
%12 = fpext float %11 to double
%13 = fmul double %12, 1.000000e-01
%14 = fptrunc double %13 to float
%15 = fmul double %12, 9.000000e-01
%16 = fptrunc double %15 to float
%17 = fpext float %14 to double
%18 = fpext float %16 to double
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %12, double %17, double %18)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32, i32* @stdin
%22 = call i32 @setbuf(i32 %21, i32* null)
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* %3)
%24 = load i8, i8* %3
%25 = and i8 %24, -33
%26 = icmp eq i8 %25, 89
br i1 %26, label %27, label %54
27: ; preds = %0, %37
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%30 = load i32, i32* %1
%31 = icmp sgt i32 %30, 3
br i1 %31, label %34, label %32
32: ; preds = %27
%33 = icmp slt i32 %30, 1
br i1 %33, label %34, label %37
34: ; preds = %32, %27
%35 = phi i8* [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.14, i64 0, i64 0), %27 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @str.13, i64 0, i64 0), %32 ]
%36 = call i32 @puts(i8* dereferenceable(1) %35)
br label %37
37: ; preds = %34, %32
%38 = load i32, i32* %1
%39 = add i32 %38, -4
%40 = icmp ult i32 %39, -3
br i1 %40, label %27, label %41
41: ; preds = %37, %41
%42 = phi i32 [ %49, %41 ], [ %38, %37 ]
%43 = phi i32 [ %46, %41 ], [ 0, %37 ]
%44 = sitofp i32 %42 to float
%45 = fdiv float %16, %44
%46 = add nuw nsw i32 %43, 1
%47 = fpext float %45 to double
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i32 %46, double %47)
%49 = load i32, i32* %1
%50 = icmp slt i32 %46, %49
br i1 %50, label %41, label %51
51: ; preds = %41
%52 = load float, float* %2
%53 = fpext float %52 to double
br label %54
54: ; preds = %0, %51
%55 = phi double [ %53, %51 ], [ %18, %0 ]
%56 = fmul double %55, 5.000000e-02
%57 = fptrunc double %56 to float
%58 = fpext float %57 to double
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), double %58)
ret i32 0
}