#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 EXIT_SUCCESS;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int qtd_pontos;
  printf(
      "Insira a quantidade de pontos conhecidos da função a ser interpolada: ");
  scanf("%d", &qtd_pontos);
  assert(qtd_pontos <= 10);
  double temperatura[10], ro[10];
  printf("Valores de x pré existentes: \n");
  for (int i = 0; i < qtd_pontos; i++) {
    printf("Insira o valor de x_%d :", i);
    scanf("%lf", &temperatura[i]);
  }
  printf("Valores de f(x) pré existentes: \n");
  for (int i = 0; i < qtd_pontos; i++) {
    printf("Insira o valor de x_%d :", i);
    scanf("%lf", &ro[i]);
  }
  double x;
  printf("Insira o valor de x para o qual deseja obter f(x): ");
  scanf("%lf", &x);
  double l[10];
  for (int i = 0; i < 10; i++) {
    l[i] = 0.0;
  }
  for (int i = 0; i < qtd_pontos; i++) {
    double num = 1.0, den = 1.0;
    for (int j = 0; j < qtd_pontos; j++) {
      if (i != j) {
        num *= (x - temperatura[j]);
        den *= (temperatura[i] - temperatura[j]);
      }
    }
    l[i] += num / den;
  }
  double p = 0.0;
  for (int i = 0; i < qtd_pontos; i++) {
    p += ro[i] * l[i];
  }
  printf("O valor de f(x) é: %lf\n", p);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
cmpl   $0xa,-0x8(%rbp)
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11e2 <main+0xb2>
mov    -0xb4(%rbp),%esi
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xb4(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    118b <main+0x5b>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xb8(%rbp)
mov    -0xb8(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1254 <main+0x124>
mov    -0xb8(%rbp),%esi
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xb8(%rbp),%rax
lea    -0xb0(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    11fa <main+0xca>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe24(%rip),%rdi
lea    -0xc0(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movl   $0x0,-0x114(%rbp)
cmpl   $0xa,-0x114(%rbp)
jge    12b5 <main+0x185>
movslq -0x114(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x110(%rbp,%rax,8)
ff ff
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1281 <main+0x151>
movl   $0x0,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13be <main+0x28e>
movsd  0xd2a(%rip),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  0xd1a(%rip),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movl   $0x0,-0x12c(%rbp)
mov    -0x12c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1381 <main+0x251>
mov    -0x118(%rbp),%eax
cmp    -0x12c(%rbp),%eax
je     1368 <main+0x238>
movsd  -0xc0(%rbp),%xmm0
ff
movslq -0x12c(%rbp),%rax
subsd  -0x60(%rbp,%rax,8),%xmm0
mulsd  -0x120(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movslq -0x118(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm0
movslq -0x12c(%rbp),%rax
subsd  -0x60(%rbp,%rax,8),%xmm0
mulsd  -0x128(%rbp),%xmm0
ff
movsd  %xmm0,-0x128(%rbp)
ff
jmp    136d <main+0x23d>
mov    -0x12c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x12c(%rbp)
jmp    12f8 <main+0x1c8>
movsd  -0x120(%rbp),%xmm0
ff
divsd  -0x128(%rbp),%xmm0
ff
movslq -0x118(%rbp),%rax
addsd  -0x110(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x110(%rbp,%rax,8)
ff ff
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    12bf <main+0x18f>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movl   $0x0,-0x13c(%rbp)
mov    -0x13c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    142e <main+0x2fe>
movslq -0x13c(%rbp),%rax
movsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x13c(%rbp),%rax
movsd  -0x110(%rbp,%rax,8),%xmm2
movsd  -0x138(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    -0x13c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13c(%rbp)
jmp    13d3 <main+0x2a3>
movsd  -0x138(%rbp),%xmm0
ff
lea    0xcab(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2b95(%rip),%rax
mov    (%rax),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x108,%rsp
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
xor    %edi,%edi
cmpl   $0xb,0x4(%rsp)
setl   %dil
call   1050 <assert@plt>
lea    0xf40(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    11db <main+0x9b>
lea    0x60(%rsp),%r12
lea    0xebe(%rip),%r14
lea    0xed0(%rip),%r15
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
add    $0x8,%r12
cmp    %rax,%rbx
jl     11b0 <main+0x70>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x4(%rsp)
jle    123b <main+0xfb>
lea    0xb0(%rsp),%r12
lea    0xe5f(%rip),%r14
lea    0xe71(%rip),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
add    $0x1,%rbx
movslq 0x4(%rsp),%rax
add    $0x8,%r12
cmp    %rax,%rbx
jl     1210 <main+0xd0>
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe25(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
xorpd  %xmm0,%xmm0
movapd %xmm0,0x50(%rsp)
movapd %xmm0,0x40(%rsp)
movapd %xmm0,0x30(%rsp)
movapd %xmm0,0x20(%rsp)
movapd %xmm0,0x10(%rsp)
mov    0x4(%rsp),%eax
xorpd  %xmm0,%xmm0
test   %eax,%eax
jle    1447 <main+0x307>
lea    -0x1(%rax),%rcx
movsd  0x8(%rsp),%xmm1
mov    %eax,%edx
and    $0xfffffffe,%edx
xor    %esi,%esi
movapd 0xd59(%rip),%xmm2
jmp    12d5 <main+0x195>
nopl   0x0(%rax)
movapd %xmm3,%xmm4
unpckhpd %xmm3,%xmm4
divsd  %xmm4,%xmm3
addsd  0x10(%rsp,%rsi,8),%xmm3
movsd  %xmm3,0x10(%rsp,%rsi,8)
add    $0x1,%rsi
cmp    %rax,%rsi
je     1398 <main+0x258>
test   %rcx,%rcx
je     1360 <main+0x220>
xor    %edi,%edi
movapd %xmm2,%xmm3
jmp    12f9 <main+0x1b9>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rdi
cmp    %rdx,%rdi
je     1350 <main+0x210>
mov    %rdi,%rbx
cmp    %rdi,%rsi
je     131d <main+0x1dd>
movapd %xmm1,%xmm4
movhpd 0x60(%rsp,%rsi,8),%xmm4
movsd  0x60(%rsp,%rbx,8),%xmm5
unpcklpd %xmm5,%xmm5
subpd  %xmm5,%xmm4
mulpd  %xmm4,%xmm3
lea    0x1(%rbx),%rdi
cmp    %rdi,%rsi
je     12f0 <main+0x1b0>
movapd %xmm1,%xmm4
movhpd 0x60(%rsp,%rsi,8),%xmm4
movsd  0x68(%rsp,%rbx,8),%xmm5
unpcklpd %xmm5,%xmm5
subpd  %xmm5,%xmm4
mulpd  %xmm4,%xmm3
jmp    12f0 <main+0x1b0>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x2,%rbx
test   $0x1,%al
je     12b0 <main+0x170>
jmp    136e <main+0x22e>
xchg   %ax,%ax
xor    %ebx,%ebx
movapd %xmm2,%xmm3
test   $0x1,%al
je     12b0 <main+0x170>
cmp    %rbx,%rsi
je     12b0 <main+0x170>
movapd %xmm1,%xmm4
movhpd 0x60(%rsp,%rsi,8),%xmm4
movsd  0x60(%rsp,%rbx,8),%xmm5
unpcklpd %xmm5,%xmm5
subpd  %xmm5,%xmm4
mulpd  %xmm4,%xmm3
jmp    12b0 <main+0x170>
test   %eax,%eax
jle    1447 <main+0x307>
mov    %eax,%edx
and    $0x3,%edx
cmp    $0x3,%rcx
jae    13b3 <main+0x273>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    1415 <main+0x2d5>
and    $0xfffffffc,%eax
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
nopl   0x0(%rax)
movsd  0xb0(%rsp,%rcx,8),%xmm1
movsd  0xb8(%rsp,%rcx,8),%xmm2
mulsd  0x10(%rsp,%rcx,8),%xmm1
mulsd  0x18(%rsp,%rcx,8),%xmm2
addsd  %xmm0,%xmm1
movsd  0xc0(%rsp,%rcx,8),%xmm3
mulsd  0x20(%rsp,%rcx,8),%xmm3
addsd  %xmm1,%xmm2
movsd  0xc8(%rsp,%rcx,8),%xmm0
mulsd  0x28(%rsp,%rcx,8),%xmm0
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
add    $0x4,%rcx
cmp    %rcx,%rax
jne    13c0 <main+0x280>
test   %rdx,%rdx
je     1447 <main+0x307>
lea    (%rsp,%rcx,8),%rax
add    $0x10,%rax
lea    (%rsp,%rcx,8),%rcx
add    $0xb0,%rcx
xor    %esi,%esi
nop
movsd  (%rcx,%rsi,8),%xmm1
mulsd  (%rax,%rsi,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rsi
cmp    %rsi,%rdx
jne    1430 <main+0x2f0>
lea    0xc5f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2b84(%rip),%rax
mov    (%rax),%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [73 x i8] c"Insira a quantidade de pontos conhecidos da fun\C3\A7\C3\A3o a ser interpolada: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"Valores de x pr\C3\A9 existentes: \0A\00"
@.str.3 = [25 x i8] c"Insira o valor de x_%d :\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [35 x i8] c"Valores de f(x) pr\C3\A9 existentes: \0A\00"
@.str.6 = [52 x i8] c"Insira o valor de x para o qual deseja obter f(x): \00"
@.str.7 = [25 x i8] c"O valor de f(x) \C3\A9: %lf\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x double]
%4 = alloca [10 x double]
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca [10 x double]
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca i32
%14 = alloca double
%15 = alloca i32
store i32 0, i32* %1
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%18 = load i32, i32* %2
%19 = icmp sle i32 %18, 10
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %5
br label %23
23: ; preds = %34, %0
%24 = load i32, i32* %5
%25 = load i32, i32* %2
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %37
27: ; preds = %23
%28 = load i32, i32* %5
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = load i32, i32* %5
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %31
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %32)
br label %34
34: ; preds = %27
%35 = load i32, i32* %5
%36 = add nsw i32 %35, 1
store i32 %36, i32* %5
br label %23
37: ; preds = %23
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %6
br label %39
39: ; preds = %50, %37
%40 = load i32, i32* %6
%41 = load i32, i32* %2
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %53
43: ; preds = %39
%44 = load i32, i32* %6
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %44)
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x double], [10 x double]* %4, i64 0, i64 %47
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %48)
br label %50
50: ; preds = %43
%51 = load i32, i32* %6
%52 = add nsw i32 %51, 1
store i32 %52, i32* %6
br label %39
53: ; preds = %39
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %7)
store i32 0, i32* %9
br label %56
56: ; preds = %63, %53
%57 = load i32, i32* %9
%58 = icmp slt i32 %57, 10
br i1 %58, label %59, label %66
59: ; preds = %56
%60 = load i32, i32* %9
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x double], [10 x double]* %8, i64 0, i64 %61
store double 0.000000e+00, double* %62
br label %63
63: ; preds = %59
%64 = load i32, i32* %9
%65 = add nsw i32 %64, 1
store i32 %65, i32* %9
br label %56
66: ; preds = %56
store i32 0, i32* %10
br label %67
67: ; preds = %113, %66
%68 = load i32, i32* %10
%69 = load i32, i32* %2
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %116
71: ; preds = %67
store double 1.000000e+00, double* %11
store double 1.000000e+00, double* %12
store i32 0, i32* %13
br label %72
72: ; preds = %101, %71
%73 = load i32, i32* %13
%74 = load i32, i32* %2
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %104
76: ; preds = %72
%77 = load i32, i32* %10
%78 = load i32, i32* %13
%79 = icmp ne i32 %77, %78
br i1 %79, label %80, label %100
80: ; preds = %76
%81 = load double, double* %7
%82 = load i32, i32* %13
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %83
%85 = load double, double* %84
%86 = fsub double %81, %85
%87 = load double, double* %11
%88 = fmul double %87, %86
store double %88, double* %11
%89 = load i32, i32* %10
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %90
%92 = load double, double* %91
%93 = load i32, i32* %13
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %94
%96 = load double, double* %95
%97 = fsub double %92, %96
%98 = load double, double* %12
%99 = fmul double %98, %97
store double %99, double* %12
br label %100
100: ; preds = %80, %76
br label %101
101: ; preds = %100
%102 = load i32, i32* %13
%103 = add nsw i32 %102, 1
store i32 %103, i32* %13
br label %72
104: ; preds = %72
%105 = load double, double* %11
%106 = load double, double* %12
%107 = fdiv double %105, %106
%108 = load i32, i32* %10
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [10 x double], [10 x double]* %8, i64 0, i64 %109
%111 = load double, double* %110
%112 = fadd double %111, %107
store double %112, double* %110
br label %113
113: ; preds = %104
%114 = load i32, i32* %10
%115 = add nsw i32 %114, 1
store i32 %115, i32* %10
br label %67
116: ; preds = %67
store double 0.000000e+00, double* %14
store i32 0, i32* %15
br label %117
117: ; preds = %132, %116
%118 = load i32, i32* %15
%119 = load i32, i32* %2
%120 = icmp slt i32 %118, %119
br i1 %120, label %121, label %135
121: ; preds = %117
%122 = load i32, i32* %15
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [10 x double], [10 x double]* %4, i64 0, i64 %123
%125 = load double, double* %124
%126 = load i32, i32* %15
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [10 x double], [10 x double]* %8, i64 0, i64 %127
%129 = load double, double* %128
%130 = load double, double* %14
%131 = call double @llvm.fmuladd.f64(double %125, double %129, double %130)
store double %131, double* %14
br label %132
132: ; preds = %121
%133 = load i32, i32* %15
%134 = add nsw i32 %133, 1
store i32 %134, i32* %15
br label %117
135: ; preds = %117
%136 = load double, double* %14
%137 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), double %136)
%138 = load i32, i32* @EXIT_SUCCESS
ret i32 %138
}

LLVM IR (-O2):
@.str = [73 x i8] c"Insira a quantidade de pontos conhecidos da fun\C3\A7\C3\A3o a ser interpolada: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [25 x i8] c"Insira o valor de x_%d :\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.6 = [52 x i8] c"Insira o valor de x para o qual deseja obter f(x): \00"
@.str.7 = [25 x i8] c"O valor de f(x) \C3\A9: %lf\0A\00"
@EXIT_SUCCESS = global i32 0
@str = [31 x i8] c"Valores de x pr\C3\A9 existentes: \00"
@str.8 = [34 x i8] c"Valores de f(x) pr\C3\A9 existentes: \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x double]
%3 = alloca [10 x double]
%4 = alloca double
%5 = alloca [10 x double]
%6 = bitcast [10 x double]* %5 to i8*
%7 = bitcast i32* %1 to i8*
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = icmp slt i32 %10, 11
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = bitcast [10 x double]* %2 to i8*
%15 = bitcast [10 x double]* %3 to i8*
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%17 = load i32, i32* %1
%18 = icmp sgt i32 %17, 0
br i1 %18, label %23, label %19
19: ; preds = %23, %0
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.8, i64 0, i64 0))
%21 = load i32, i32* %1
%22 = icmp sgt i32 %21, 0
br i1 %22, label %39, label %33
23: ; preds = %0, %23
%24 = phi i64 [ %29, %23 ], [ 0, %0 ]
%25 = trunc i64 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %24
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %27)
%29 = add nuw nsw i64 %24, 1
%30 = load i32, i32* %1
%31 = sext i32 %30 to i64
%32 = icmp slt i64 %29, %31
br i1 %32, label %23, label %19
33: ; preds = %39, %19
%34 = bitcast double* %4 to i8*
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %4)
%37 = load i32, i32* %1
%38 = icmp sgt i32 %37, 0
br i1 %38, label %49, label %141
39: ; preds = %19, %39
%40 = phi i64 [ %45, %39 ], [ 0, %19 ]
%41 = trunc i64 %40 to i32
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %41)
%43 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %40
%44 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %43)
%45 = add nuw nsw i64 %40, 1
%46 = load i32, i32* %1
%47 = sext i32 %46 to i64
%48 = icmp slt i64 %45, %47
br i1 %48, label %39, label %33
49: ; preds = %33
%50 = load double, double* %4
%51 = zext i32 %37 to i64
%52 = add nsw i64 %51, -1
%53 = insertelement <2 x double> poison, double %50, i64 0
%54 = and i64 %51, 1
%55 = icmp eq i64 %52, 0
%56 = and i64 %51, 4294967294
%57 = icmp eq i64 %54, 0
br label %58
58: ; preds = %82, %49
%59 = phi i64 [ 0, %49 ], [ %90, %82 ]
%60 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %59
br i1 %55, label %67, label %92
61: ; preds = %82
br i1 %38, label %62, label %141
62: ; preds = %61
%63 = and i64 %51, 3
%64 = icmp ult i64 %52, 3
br i1 %64, label %124, label %65
65: ; preds = %62
%66 = and i64 %51, 4294967292
br label %145
67: ; preds = %119, %58
%68 = phi <2 x double> [ undef, %58 ], [ %120, %119 ]
%69 = phi i64 [ 0, %58 ], [ %121, %119 ]
%70 = phi <2 x double> [ <double 1.000000e+00, double 1.000000e+00>, %58 ], [ %120, %119 ]
br i1 %57, label %82, label %71
71: ; preds = %67
%72 = icmp eq i64 %59, %69
br i1 %72, label %82, label %73
73: ; preds = %71
%74 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %69
%75 = load double, double* %74
%76 = load double, double* %60
%77 = insertelement <2 x double> %53, double %76, i64 1
%78 = insertelement <2 x double> poison, double %75, i64 0
%79 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
%80 = fsub <2 x double> %77, %79
%81 = fmul <2 x double> %70, %80
br label %82
82: ; preds = %71, %73, %67
%83 = phi <2 x double> [ %68, %67 ], [ %81, %73 ], [ %70, %71 ]
%84 = extractelement <2 x double> %83, i64 0
%85 = extractelement <2 x double> %83, i64 1
%86 = fdiv double %84, %85
%87 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %59
%88 = load double, double* %87
%89 = fadd double %86, %88
store double %89, double* %87
%90 = add nuw nsw i64 %59, 1
%91 = icmp eq i64 %90, %51
br i1 %91, label %61, label %58
92: ; preds = %58, %119
%93 = phi i64 [ %121, %119 ], [ 0, %58 ]
%94 = phi <2 x double> [ %120, %119 ], [ <double 1.000000e+00, double 1.000000e+00>, %58 ]
%95 = phi i64 [ %122, %119 ], [ 0, %58 ]
%96 = icmp eq i64 %59, %93
br i1 %96, label %106, label %97
97: ; preds = %92
%98 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %93
%99 = load double, double* %98
%100 = load double, double* %60
%101 = insertelement <2 x double> %53, double %100, i64 1
%102 = insertelement <2 x double> poison, double %99, i64 0
%103 = shufflevector <2 x double> %102, <2 x double> poison, <2 x i32> zeroinitializer
%104 = fsub <2 x double> %101, %103
%105 = fmul <2 x double> %94, %104
br label %106
106: ; preds = %92, %97
%107 = phi <2 x double> [ %105, %97 ], [ %94, %92 ]
%108 = or i64 %93, 1
%109 = icmp eq i64 %59, %108
br i1 %109, label %119, label %110
110: ; preds = %106
%111 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 %108
%112 = load double, double* %111
%113 = load double, double* %60
%114 = insertelement <2 x double> %53, double %113, i64 1
%115 = insertelement <2 x double> poison, double %112, i64 0
%116 = shufflevector <2 x double> %115, <2 x double> poison, <2 x i32> zeroinitializer
%117 = fsub <2 x double> %114, %116
%118 = fmul <2 x double> %107, %117
br label %119
119: ; preds = %110, %106
%120 = phi <2 x double> [ %118, %110 ], [ %107, %106 ]
%121 = add nuw nsw i64 %93, 2
%122 = add i64 %95, 2
%123 = icmp eq i64 %122, %56
br i1 %123, label %67, label %92
124: ; preds = %145, %62
%125 = phi double [ undef, %62 ], [ %171, %145 ]
%126 = phi i64 [ 0, %62 ], [ %172, %145 ]
%127 = phi double [ 0.000000e+00, %62 ], [ %171, %145 ]
%128 = icmp eq i64 %63, 0
br i1 %128, label %141, label %129
129: ; preds = %124, %129
%130 = phi i64 [ %138, %129 ], [ %126, %124 ]
%131 = phi double [ %137, %129 ], [ %127, %124 ]
%132 = phi i64 [ %139, %129 ], [ 0, %124 ]
%133 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %130
%134 = load double, double* %133
%135 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %130
%136 = load double, double* %135
%137 = call double @llvm.fmuladd.f64(double %134, double %136, double %131)
%138 = add nuw nsw i64 %130, 1
%139 = add i64 %132, 1
%140 = icmp eq i64 %139, %63
br i1 %140, label %141, label %129
141: ; preds = %124, %129, %33, %61
%142 = phi double [ 0.000000e+00, %61 ], [ 0.000000e+00, %33 ], [ %125, %124 ], [ %137, %129 ]
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), double %142)
%144 = load i32, i32* @EXIT_SUCCESS
ret i32 %144
145: ; preds = %145, %65
%146 = phi i64 [ 0, %65 ], [ %172, %145 ]
%147 = phi double [ 0.000000e+00, %65 ], [ %171, %145 ]
%148 = phi i64 [ 0, %65 ], [ %173, %145 ]
%149 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %146
%150 = load double, double* %149
%151 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %146
%152 = load double, double* %151
%153 = call double @llvm.fmuladd.f64(double %150, double %152, double %147)
%154 = or i64 %146, 1
%155 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %154
%156 = load double, double* %155
%157 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %154
%158 = load double, double* %157
%159 = call double @llvm.fmuladd.f64(double %156, double %158, double %153)
%160 = or i64 %146, 2
%161 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %160
%162 = load double, double* %161
%163 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %160
%164 = load double, double* %163
%165 = call double @llvm.fmuladd.f64(double %162, double %164, double %159)
%166 = or i64 %146, 3
%167 = getelementptr inbounds [10 x double], [10 x double]* %3, i64 0, i64 %166
%168 = load double, double* %167
%169 = getelementptr inbounds [10 x double], [10 x double]* %5, i64 0, i64 %166
%170 = load double, double* %169
%171 = call double @llvm.fmuladd.f64(double %168, double %170, double %165)
%172 = add nuw nsw i64 %146, 4
%173 = add i64 %148, 4
%174 = icmp eq i64 %173, %66
br i1 %174, label %124, label %145
}