#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 pow(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
int main() {
  double A[100][100];
  double B[100];
  double x[100];
  double k;
  int i, j;
  for (i = 0; i < 100; i++) {
    for (j = 0; j < 100; j++)
      A[i][j] = 0;
  }
  for (i = 0; i < 100 - 1; i++) {
    A[i][i] = 4;
    A[i][i + 1] = 2;
    A[i + 1][i] = 1;
  }
  A[99][99] = 4;
  A[99][98] = 1;
  for (i = 1; i <= 100; i++) {
    B[i - 1] = pow(i, 2) / 10.;
  }
  B[99] = pow(100, 2) / 10.;
  for (i = 1; i < 100; i++) {
    k = -A[i][i - 1] / A[i - 1][i - 1];
    A[i][i] = A[i][i] + k * A[i - 1][i];
    B[i] = B[i] + k * B[i - 1];
  }
  printf("Soluciones:\n\n");
  x[100 - 1] = B[100 - 1] / A[100 - 1][100 - 1];
  for (i = 100 - 2; i >= 0; i--) {
    x[i] = (B[i] - A[i][i + 1] * x[i + 1]) / A[i][i];
  }
  for (i = 0; i < 100; i++)
    printf("X%d= %lf\n", i + 1, x[i]);
  system("PAUSE");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x13ee0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x13edc(%rbp)
cmpl   $0x64,-0x13edc(%rbp)
jge    11c4 <main+0x94>
movl   $0x0,-0x13ee0(%rbp)
cmpl   $0x64,-0x13ee0(%rbp)
jge    11ab <main+0x7b>
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13ee0(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x13ee0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13ee0(%rbp)
jmp    1163 <main+0x33>
jmp    11b0 <main+0x80>
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13edc(%rbp)
jmp    114c <main+0x1c>
movl   $0x0,-0x13edc(%rbp)
cmpl   $0x63,-0x13edc(%rbp)
jge    127d <main+0x14d>
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
movsd  0xe06(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
mov    -0x13edc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xde5(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
movsd  0xd9c(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13edc(%rbp)
jmp    11ce <main+0x9e>
movsd  0xd83(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xd6e(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x1,-0x13edc(%rbp)
cmpl   $0x64,-0x13edc(%rbp)
jg     12f6 <main+0x1c6>
mov    -0x13edc(%rbp),%edi
mov    $0x2,%esi
call   1050 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd46(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x13edc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  %xmm0,-0x13bb0(%rbp,%rax,8)
fe ff
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13edc(%rbp)
jmp    12a1 <main+0x171>
mov    $0x64,%edi
mov    $0x2,%esi
call   1050 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  0xcff(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x13898(%rbp)
ff
movl   $0x1,-0x13edc(%rbp)
cmpl   $0x64,-0x13edc(%rbp)
jge    1483 <main+0x353>
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
mov    -0x13edc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x13edc(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
mov    -0x13edc(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x13ed8(%rbp)
ff
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x13ed8(%rbp),%xmm0
ff
mov    -0x13edc(%rbp),%eax
sub    $0x1,%eax
movslq %eax,%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x13edc(%rbp),%rax
movsd  -0x13bb0(%rbp,%rax,8),%xmm1
fe ff
movsd  -0x13ed8(%rbp),%xmm0
ff
mov    -0x13edc(%rbp),%eax
sub    $0x1,%eax
cltq
movsd  -0x13bb0(%rbp,%rax,8),%xmm2
fe ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x13edc(%rbp),%rax
movsd  %xmm0,-0x13bb0(%rbp,%rax,8)
fe ff
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13edc(%rbp)
jmp    1327 <main+0x1f7>
lea    0xb96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x13898(%rbp),%xmm0
ff
divsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x13bb8(%rbp)
ff
movl   $0x62,-0x13edc(%rbp)
cmpl   $0x0,-0x13edc(%rbp)
jl     1571 <main+0x441>
movslq -0x13edc(%rbp),%rax
movsd  -0x13bb0(%rbp,%rax,8),%xmm1
fe ff
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
mov    -0x13edc(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
cltq
movsd  -0x13ed0(%rbp,%rax,8),%xmm2
fe ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x13edc(%rbp),%rcx
lea    -0x13890(%rbp),%rax
imul   $0x320,%rcx,%rcx
add    %rcx,%rax
movslq -0x13edc(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movslq -0x13edc(%rbp),%rax
movsd  %xmm0,-0x13ed0(%rbp,%rax,8)
fe ff
mov    -0x13edc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x13edc(%rbp)
jmp    14b0 <main+0x380>
movl   $0x0,-0x13edc(%rbp)
cmpl   $0x64,-0x13edc(%rbp)
jge    15c3 <main+0x493>
mov    -0x13edc(%rbp),%esi
add    $0x1,%esi
movslq -0x13edc(%rbp),%rax
movsd  -0x13ed0(%rbp,%rax,8),%xmm0
fe ff
lea    0xa86(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x13edc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13edc(%rbp)
jmp    157b <main+0x44b>
lea    0xa6e(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x13ee0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x13ec8,%rsp
lea    0x640(%rsp),%rbx
mov    $0x13870,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    $0x2,%eax
movaps 0xe84(%rip),%xmm0
movabs $0x3ff0000000000000,%rcx
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,(%rbx)
mov    %rcx,0x320(%rbx)
movups %xmm0,0x328(%rbx)
mov    %rcx,0x648(%rbx)
movups %xmm0,0x650(%rbx)
mov    %rcx,0x970(%rbx)
add    $0x3,%rax
add    $0x978,%rbx
cmp    $0x65,%rax
jne    1190 <main+0x40>
movapd 0xe41(%rip),%xmm0
movapd %xmm0,0x13eb0(%rsp)
mov    $0x1,%ebx
mov    $0x2,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%edi
mov    $0x2,%esi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe25(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rsp,%rbx,8)
mov    %ebp,%edi
mov    $0x2,%esi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xe00(%rip),%xmm0
movsd  %xmm0,(%rsp,%rbx,8)
add    $0x2,%rbx
add    $0x2,%ebp
cmp    $0x65,%rbx
jne    11f0 <main+0xa0>
mov    $0x64,%edi
mov    $0x2,%esi
call   1070 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xdd0(%rip),%xmm0
movsd  %xmm0,0x318(%rsp)
movsd  0x640(%rsp),%xmm2
movsd  (%rsp),%xmm0
lea    0x968(%rsp),%rax
xor    %ecx,%ecx
movapd 0xd97(%rip),%xmm1
nopl   0x0(%rax)
movsd  -0x8(%rax),%xmm3
xorpd  %xmm1,%xmm3
divsd  %xmm2,%xmm3
mulsd  %xmm3,%xmm0
mulsd  -0x320(%rax),%xmm3
ff
addsd  (%rax),%xmm3
movsd  %xmm3,(%rax)
addsd  0x8(%rsp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rsp,%rcx,8)
add    $0x1,%rcx
add    $0x328,%rax
movapd %xmm3,%xmm2
cmp    $0x63,%rcx
jne    1290 <main+0x140>
lea    0xd70(%rip),%rdi
call   1030 <puts@plt>
movsd  0x318(%rsp),%xmm0
divsd  0x13eb8(%rsp),%xmm0
movsd  %xmm0,0x638(%rsp)
lea    0x13b98(%rsp),%rax
mov    $0x62,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
mulsd  (%rax),%xmm0
movsd  (%rsp,%rcx,8),%xmm1
subsd  %xmm0,%xmm1
divsd  -0x8(%rax),%xmm1
movsd  %xmm1,0x320(%rsp,%rcx,8)
add    $0xfffffffffffffcd8,%rax
movapd %xmm1,%xmm0
add    $0xffffffffffffffff,%rcx
jb     1310 <main+0x1c0>
xor    %ebx,%ebx
lea    0xcf4(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x320(%rsp,%rbx,8),%xmm0
add    $0x1,%rbx
mov    %rbp,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1050 <printf@plt>
cmp    $0x64,%rbx
jne    1350 <main+0x200>
lea    0xccc(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x13ec8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Soluciones:\0A\0A\00"
@.str.1 = [10 x i8] c"X%d= %lf\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x [100 x double]]
%3 = alloca [100 x double]
%4 = alloca [100 x double]
%5 = alloca double
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %6
br label %8
8: ; preds = %26, %0
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %29
11: ; preds = %8
store i32 0, i32* %7
br label %12
12: ; preds = %22, %11
%13 = load i32, i32* %7
%14 = icmp slt i32 %13, 100
br i1 %14, label %15, label %25
15: ; preds = %12
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %17
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x double], [100 x double]* %18, i64 0, i64 %20
store double 0.000000e+00, double* %21
br label %22
22: ; preds = %15
%23 = load i32, i32* %7
%24 = add nsw i32 %23, 1
store i32 %24, i32* %7
br label %12
25: ; preds = %12
br label %26
26: ; preds = %25
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %8
29: ; preds = %8
store i32 0, i32* %6
br label %30
30: ; preds = %54, %29
%31 = load i32, i32* %6
%32 = icmp slt i32 %31, 99
br i1 %32, label %33, label %57
33: ; preds = %30
%34 = load i32, i32* %6
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %35
%37 = load i32, i32* %6
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [100 x double], [100 x double]* %36, i64 0, i64 %38
store double 4.000000e+00, double* %39
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %41
%43 = load i32, i32* %6
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x double], [100 x double]* %42, i64 0, i64 %45
store double 2.000000e+00, double* %46
%47 = load i32, i32* %6
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %49
%51 = load i32, i32* %6
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x double], [100 x double]* %50, i64 0, i64 %52
store double 1.000000e+00, double* %53
br label %54
54: ; preds = %33
%55 = load i32, i32* %6
%56 = add nsw i32 %55, 1
store i32 %56, i32* %6
br label %30
57: ; preds = %30
%58 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 99
%59 = getelementptr inbounds [100 x double], [100 x double]* %58, i64 0, i64 99
store double 4.000000e+00, double* %59
%60 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 99
%61 = getelementptr inbounds [100 x double], [100 x double]* %60, i64 0, i64 98
store double 1.000000e+00, double* %61
store i32 1, i32* %6
br label %62
62: ; preds = %74, %57
%63 = load i32, i32* %6
%64 = icmp sle i32 %63, 100
br i1 %64, label %65, label %77
65: ; preds = %62
%66 = load i32, i32* %6
%67 = call i32 @pow(i32 %66, i32 2)
%68 = sitofp i32 %67 to double
%69 = fdiv double %68, 1.000000e+01
%70 = load i32, i32* %6
%71 = sub nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %72
store double %69, double* %73
br label %74
74: ; preds = %65
%75 = load i32, i32* %6
%76 = add nsw i32 %75, 1
store i32 %76, i32* %6
br label %62
77: ; preds = %62
%78 = call i32 @pow(i32 100, i32 2)
%79 = sitofp i32 %78 to double
%80 = fdiv double %79, 1.000000e+01
%81 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 99
store double %80, double* %81
store i32 1, i32* %6
br label %82
82: ; preds = %142, %77
%83 = load i32, i32* %6
%84 = icmp slt i32 %83, 100
br i1 %84, label %85, label %145
85: ; preds = %82
%86 = load i32, i32* %6
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %87
%89 = load i32, i32* %6
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [100 x double], [100 x double]* %88, i64 0, i64 %91
%93 = load double, double* %92
%94 = fneg double %93
%95 = load i32, i32* %6
%96 = sub nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %97
%99 = load i32, i32* %6
%100 = sub nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [100 x double], [100 x double]* %98, i64 0, i64 %101
%103 = load double, double* %102
%104 = fdiv double %94, %103
store double %104, double* %5
%105 = load i32, i32* %6
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %106
%108 = load i32, i32* %6
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [100 x double], [100 x double]* %107, i64 0, i64 %109
%111 = load double, double* %110
%112 = load double, double* %5
%113 = load i32, i32* %6
%114 = sub nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %115
%117 = load i32, i32* %6
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [100 x double], [100 x double]* %116, i64 0, i64 %118
%120 = load double, double* %119
%121 = call double @llvm.fmuladd.f64(double %112, double %120, double %111)
%122 = load i32, i32* %6
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %123
%125 = load i32, i32* %6
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [100 x double], [100 x double]* %124, i64 0, i64 %126
store double %121, double* %127
%128 = load i32, i32* %6
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %129
%131 = load double, double* %130
%132 = load double, double* %5
%133 = load i32, i32* %6
%134 = sub nsw i32 %133, 1
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %135
%137 = load double, double* %136
%138 = call double @llvm.fmuladd.f64(double %132, double %137, double %131)
%139 = load i32, i32* %6
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %140
store double %138, double* %141
br label %142
142: ; preds = %85
%143 = load i32, i32* %6
%144 = add nsw i32 %143, 1
store i32 %144, i32* %6
br label %82
145: ; preds = %82
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%147 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 99
%148 = load double, double* %147
%149 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 99
%150 = getelementptr inbounds [100 x double], [100 x double]* %149, i64 0, i64 99
%151 = load double, double* %150
%152 = fdiv double %148, %151
%153 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 99
store double %152, double* %153
store i32 98, i32* %6
br label %154
154: ; preds = %188, %145
%155 = load i32, i32* %6
%156 = icmp sge i32 %155, 0
br i1 %156, label %157, label %191
157: ; preds = %154
%158 = load i32, i32* %6
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %159
%161 = load double, double* %160
%162 = load i32, i32* %6
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %163
%165 = load i32, i32* %6
%166 = add nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [100 x double], [100 x double]* %164, i64 0, i64 %167
%169 = load double, double* %168
%170 = load i32, i32* %6
%171 = add nsw i32 %170, 1
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 %172
%174 = load double, double* %173
%175 = fneg double %169
%176 = call double @llvm.fmuladd.f64(double %175, double %174, double %161)
%177 = load i32, i32* %6
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %2, i64 0, i64 %178
%180 = load i32, i32* %6
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [100 x double], [100 x double]* %179, i64 0, i64 %181
%183 = load double, double* %182
%184 = fdiv double %176, %183
%185 = load i32, i32* %6
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 %186
store double %184, double* %187
br label %188
188: ; preds = %157
%189 = load i32, i32* %6
%190 = add nsw i32 %189, -1
store i32 %190, i32* %6
br label %154
191: ; preds = %154
store i32 0, i32* %6
br label %192
192: ; preds = %203, %191
%193 = load i32, i32* %6
%194 = icmp slt i32 %193, 100
br i1 %194, label %195, label %206
195: ; preds = %192
%196 = load i32, i32* %6
%197 = add nsw i32 %196, 1
%198 = load i32, i32* %6
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 %199
%201 = load double, double* %200
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %197, double %201)
br label %203
203: ; preds = %195
%204 = load i32, i32* %6
%205 = add nsw i32 %204, 1
store i32 %205, i32* %6
br label %192
206: ; preds = %192
%207 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%208 = load i32, i32* %1
ret i32 %208
}

LLVM IR (-O2):
@.str.1 = [10 x i8] c"X%d= %lf\0A\00"
@.str.2 = [6 x i8] c"PAUSE\00"
@str = [13 x i8] c"Soluciones:\0A\00"
define i32 @main() {
%1 = alloca [100 x [100 x double]]
%2 = bitcast [100 x [100 x double]]* %1 to i8*
%3 = alloca [100 x double]
%4 = alloca [100 x double]
%5 = bitcast [100 x double]* %3 to i8*
%6 = bitcast [100 x double]* %4 to i8*
br label %7
7: ; preds = %7, %0
%8 = phi i64 [ 0, %0 ], [ %18, %7 ]
%9 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %8, i64 %8
%10 = add nuw nsw i64 %8, 1
%11 = bitcast double* %9 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 2.000000e+00>, <2 x double>* %11
%12 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %10, i64 %8
store double 1.000000e+00, double* %12
%13 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %10, i64 %10
%14 = add nuw nsw i64 %8, 2
%15 = bitcast double* %13 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 2.000000e+00>, <2 x double>* %15
%16 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %14, i64 %10
store double 1.000000e+00, double* %16
%17 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %14, i64 %14
%18 = add nuw nsw i64 %8, 3
%19 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 4.000000e+00, double 2.000000e+00>, <2 x double>* %19
%20 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %18, i64 %14
store double 1.000000e+00, double* %20
%21 = icmp eq i64 %18, 99
br i1 %21, label %22, label %7
22: ; preds = %7
%23 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 99, i64 99
%24 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 99, i64 98
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 4.000000e+00>, <2 x double>* %25
br label %26
26: ; preds = %26, %22
%27 = phi i64 [ 1, %22 ], [ %40, %26 ]
%28 = trunc i64 %27 to i32
%29 = tail call i32 @pow(i32 %28, i32 2)
%30 = sitofp i32 %29 to double
%31 = fdiv double %30, 1.000000e+01
%32 = add nsw i64 %27, -1
%33 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %32
store double %31, double* %33
%34 = trunc i64 %27 to i32
%35 = add i32 %34, 1
%36 = tail call i32 @pow(i32 %35, i32 2)
%37 = sitofp i32 %36 to double
%38 = fdiv double %37, 1.000000e+01
%39 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %27
store double %38, double* %39
%40 = add nuw nsw i64 %27, 2
%41 = icmp eq i64 %40, 101
br i1 %41, label %42, label %26
42: ; preds = %26
%43 = tail call i32 @pow(i32 100, i32 2)
%44 = sitofp i32 %43 to double
%45 = fdiv double %44, 1.000000e+01
%46 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 99
store double %45, double* %46
%47 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 0, i64 0
%48 = load double, double* %47
%49 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 0
%50 = load double, double* %49
br label %51
51: ; preds = %42, %51
%52 = phi double [ %50, %42 ], [ %67, %51 ]
%53 = phi double [ %48, %42 ], [ %64, %51 ]
%54 = phi i64 [ 1, %42 ], [ %68, %51 ]
%55 = add nsw i64 %54, -1
%56 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %54, i64 %55
%57 = load double, double* %56
%58 = fneg double %57
%59 = fdiv double %58, %53
%60 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %54, i64 %54
%61 = load double, double* %60
%62 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %55, i64 %54
%63 = load double, double* %62
%64 = tail call double @llvm.fmuladd.f64(double %59, double %63, double %61)
store double %64, double* %60
%65 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %54
%66 = load double, double* %65
%67 = tail call double @llvm.fmuladd.f64(double %59, double %52, double %66)
store double %67, double* %65
%68 = add nuw nsw i64 %54, 1
%69 = icmp eq i64 %68, 100
br i1 %69, label %70, label %51
70: ; preds = %51
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%72 = load double, double* %46
%73 = load double, double* %23
%74 = fdiv double %72, %73
%75 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 99
store double %74, double* %75
br label %76
76: ; preds = %70, %76
%77 = phi double [ %74, %70 ], [ %88, %76 ]
%78 = phi i64 [ 98, %70 ], [ %90, %76 ]
%79 = getelementptr inbounds [100 x double], [100 x double]* %3, i64 0, i64 %78
%80 = load double, double* %79
%81 = add nuw nsw i64 %78, 1
%82 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %78, i64 %81
%83 = load double, double* %82
%84 = fneg double %83
%85 = tail call double @llvm.fmuladd.f64(double %84, double %77, double %80)
%86 = getelementptr inbounds [100 x [100 x double]], [100 x [100 x double]]* %1, i64 0, i64 %78, i64 %78
%87 = load double, double* %86
%88 = fdiv double %85, %87
%89 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 %78
store double %88, double* %89
%90 = add nsw i64 %78, -1
%91 = icmp eq i64 %78, 0
br i1 %91, label %92, label %76
92: ; preds = %76, %92
%93 = phi i64 [ %94, %92 ], [ 0, %76 ]
%94 = add nuw nsw i64 %93, 1
%95 = getelementptr inbounds [100 x double], [100 x double]* %4, i64 0, i64 %93
%96 = load double, double* %95
%97 = trunc i64 %94 to i32
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %97, double %96)
%99 = icmp eq i64 %94, 100
br i1 %99, label %100, label %92
100: ; preds = %92
%101 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}