#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*/ backSubs(double **, double *, int);
int /*<<< orphan*/ clean(double *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ reorder(double *, int *, double, int);
int /*<<< orphan*/ residuo(double **, double *, int, int, int);
void solution(double A[1000][1000], double b[1000], int permutacao[1000],
              double max, int rank, int n, int m) {
  double aux[1000];
  int i, j;
  if (rank != m) {
    clean(aux, 1000);
    for (i = rank; i < m; i++)
      aux[i] = 1;
    for (i = 0; i < rank; i++)
      for (j = rank; j < m; j++)
        b[j] -= (A[i][j] * aux[j]);
  }
  backSubs(A, b, rank);
  reorder(b, permutacao, max, rank);
  printf("\nSOLUCAO: \n");
  for (i = 0; i < rank; i++)
    printf("x%d = %.5f \n", i, b[i]);
  printf("\n\n");
  residuo(A, b, rank, n, m);
}


x86 assembly (clang, -O0):
<solution>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    %r8d,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     12a0 <solution+0x150>
lea    -0x1f70(%rbp),%rdi
mov    $0x3e8,%esi
call   1050 <clean@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x1f74(%rbp)
mov    -0x1f74(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    11d8 <solution+0x88>
movslq -0x1f74(%rbp),%rax
movsd  0xe45(%rip),%xmm0
movsd  %xmm0,-0x1f70(%rbp,%rax,8)
ff ff
mov    -0x1f74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f74(%rbp)
jmp    119d <solution+0x4d>
movl   $0x0,-0x1f74(%rbp)
mov    -0x1f74(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    129b <solution+0x14b>
mov    -0x24(%rbp),%eax
mov    %eax,-0x1f78(%rbp)
mov    -0x1f78(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1282 <solution+0x132>
mov    -0x8(%rbp),%rax
movslq -0x1f74(%rbp),%rcx
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x1f78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x1f78(%rbp),%rax
movsd  -0x1f70(%rbp,%rax,8),%xmm2
ff ff
mov    -0x10(%rbp),%rax
movslq -0x1f78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1f78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f78(%rbp)
jmp    11fa <solution+0xaa>
jmp    1287 <solution+0x137>
mov    -0x1f74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f74(%rbp)
jmp    11e2 <solution+0x92>
jmp    12a0 <solution+0x150>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x24(%rbp),%edx
call   1070 <backSubs@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
movsd  -0x20(%rbp),%xmm0
mov    -0x24(%rbp),%edx
call   1060 <reorder@plt>
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1f74(%rbp)
mov    -0x1f74(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1324 <solution+0x1d4>
mov    -0x1f74(%rbp),%esi
mov    -0x10(%rbp),%rax
movslq -0x1f74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xd0b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x1f74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1f74(%rbp)
jmp    12dd <solution+0x18d>
lea    0xcf6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
call   1040 <residuo@plt>
add    $0x1f80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solution>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1f88,%rsp
mov    %r9d,%r15d
mov    %r8d,0xc(%rsp)
mov    %ecx,%r14d
movsd  %xmm0,0x28(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,%rbx
mov    %rdi,(%rsp)
cmp    %r9d,%ecx
je     144c <solution+0x2ec>
lea    0x40(%rsp),%rdi
mov    $0x3e8,%esi
call   1060 <clean@plt>
movslq %r15d,%rax
cmp    %r15d,%r14d
jge    12ae <solution+0x14e>
movslq %r14d,%rcx
mov    %rax,%r9
sub    %rcx,%r9
cmp    $0x4,%r9
jb     128c <solution+0x12c>
mov    %r9,%r8
and    $0xfffffffffffffffc,%r8
lea    -0x4(%r8),%rdx
mov    %rdx,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%ebp
and    $0x3,%ebp
cmp    $0xc,%rdx
jae    11ea <solution+0x8a>
xor    %esi,%esi
jmp    1249 <solution+0xe9>
and    $0xfffffffffffffffc,%rdi
lea    (%rsp,%rcx,8),%rdx
add    $0xb0,%rdx
xor    %esi,%esi
movapd 0xdfd(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd %xmm0,-0x70(%rdx,%rsi,8)
movupd %xmm0,-0x60(%rdx,%rsi,8)
movupd %xmm0,-0x50(%rdx,%rsi,8)
movupd %xmm0,-0x40(%rdx,%rsi,8)
movupd %xmm0,-0x30(%rdx,%rsi,8)
movupd %xmm0,-0x20(%rdx,%rsi,8)
movupd %xmm0,-0x10(%rdx,%rsi,8)
movupd %xmm0,(%rdx,%rsi,8)
add    $0x10,%rsi
add    $0xfffffffffffffffc,%rdi
jne    1210 <solution+0xb0>
test   %rbp,%rbp
je     1284 <solution+0x124>
add    %rcx,%rsi
lea    (%rsp,%rsi,8),%rdx
add    $0x50,%rdx
shl    $0x5,%rbp
xor    %esi,%esi
movapd 0xd99(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movupd %xmm0,-0x10(%rdx,%rsi,1)
movupd %xmm0,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rbp
jne    1270 <solution+0x110>
cmp    %r8,%r9
je     12ae <solution+0x14e>
add    %r8,%rcx
movabs $0x3ff0000000000000,%rdx
cs nopw 0x0(%rax,%rax,1)
mov    %rdx,0x40(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    12a0 <solution+0x140>
test   %r14d,%r14d
jle    144c <solution+0x2ec>
mov    %r14d,%r10d
lea    (%rbx,%r10,8),%rdx
lea    (%rbx,%rax,8),%rcx
mov    %rcx,0x30(%rsp)
mov    %rax,%rdi
sub    %r10,%rdi
mov    %rdi,0x10(%rsp)
and    $0xfffffffffffffffc,%rdi
lea    (%rdi,%r10,1),%rcx
mov    %rcx,0x18(%rsp)
mov    %rax,%rcx
neg    %rcx
mov    %rcx,0x38(%rsp)
mov    (%rsp),%rcx
lea    (%rcx,%r10,8),%rsi
add    $0x10,%rsi
lea    (%rsp,%r10,8),%rbp
add    $0x50,%rbp
lea    0x8(%rcx),%r13
xor    %r8d,%r8d
jmp    132b <solution+0x1cb>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r8
add    $0x1f40,%rsi
add    $0x1f40,%r13
cmp    %r10,%r8
je     144c <solution+0x2ec>
cmp    %r15d,%r14d
jge    1310 <solution+0x1b0>
imul   $0x1f40,%r8,%r9
add    (%rsp),%r9
mov    %r10,%rcx
cmpq   $0x4,0x10(%rsp)
jb     13c0 <solution+0x260>
lea    (%r9,%rax,8),%rcx
cmp    %rcx,%rdx
jae    135d <solution+0x1fd>
lea    (%r9,%r10,8),%r12
mov    %r10,%rcx
cmp    0x30(%rsp),%r12
jb     13c0 <solution+0x260>
xor    %ecx,%ecx
nop
movupd -0x10(%rsi,%rcx,8),%xmm0
movupd (%rsi,%rcx,8),%xmm1
movupd -0x10(%rbp,%rcx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x0(%rbp,%rcx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd (%rdx,%rcx,8),%xmm1
subpd  %xmm2,%xmm1
movupd 0x10(%rdx,%rcx,8),%xmm2
subpd  %xmm0,%xmm2
movupd %xmm1,(%rdx,%rcx,8)
movupd %xmm2,0x10(%rdx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rdi
jne    1360 <solution+0x200>
mov    0x18(%rsp),%rcx
cmp    %rdi,0x10(%rsp)
je     1310 <solution+0x1b0>
cs nopw 0x0(%rax,%rax,1)
mov    %r15d,%r11d
sub    %ecx,%r11d
mov    %rcx,%r12
test   $0x1,%r11b
je     13ed <solution+0x28d>
movsd  (%r9,%rcx,8),%xmm0
mulsd  0x40(%rsp,%rcx,8),%xmm0
movsd  (%rbx,%rcx,8),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rcx,8)
lea    0x1(%rcx),%r12
not    %rcx
cmp    0x38(%rsp),%rcx
je     1310 <solution+0x1b0>
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%r13,%r12,8),%xmm0
mulsd  0x40(%rsp,%r12,8),%xmm0
movsd  (%rbx,%r12,8),%xmm1
subsd  %xmm0,%xmm1
movsd  0x8(%rbx,%r12,8),%xmm0
movsd  %xmm1,(%rbx,%r12,8)
movsd  0x0(%r13,%r12,8),%xmm1
mulsd  0x48(%rsp,%r12,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rbx,%r12,8)
add    $0x2,%r12
cmp    %r12,%rax
jne    1400 <solution+0x2a0>
jmp    1310 <solution+0x1b0>
mov    (%rsp),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1080 <backSubs@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%rsi
movsd  0x28(%rsp),%xmm0
mov    %r14d,%edx
call   1070 <reorder@plt>
lea    0xba5(%rip),%rdi
call   1030 <puts@plt>
test   %r14d,%r14d
jle    14aa <solution+0x34a>
mov    %r14d,%r12d
xor    %ebp,%ebp
lea    0xb82(%rip),%r13
xchg   %ax,%ax
movsd  (%rbx,%rbp,8),%xmm0
mov    %r13,%rdi
mov    %ebp,%esi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    1490 <solution+0x330>
lea    0xb6a(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
mov    0xc(%rsp),%ecx
mov    %r15d,%r8d
call   1050 <residuo@plt>
add    $0x1f88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"\0ASOLUCAO: \0A\00"
@.str.1 = [13 x i8] c"x%d = %.5f \0A\00"
@.str.2 = [3 x i8] c"\0A\0A\00"
define void @solution([1000 x double]* %0, double* %1, i32* %2, double %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca [1000 x double]*
%9 = alloca double*
%10 = alloca i32*
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [1000 x double]
%16 = alloca i32
%17 = alloca i32
store [1000 x double]* %0, [1000 x double]** %8
store double* %1, double** %9
store i32* %2, i32** %10
store double %3, double* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%18 = load i32, i32* %12
%19 = load i32, i32* %14
%20 = icmp ne i32 %18, %19
br i1 %20, label %21, label %75
21: ; preds = %7
%22 = getelementptr inbounds [1000 x double], [1000 x double]* %15, i64 0, i64 0
%23 = call i32 @clean(double* %22, i32 1000)
%24 = load i32, i32* %12
store i32 %24, i32* %16
br label %25
25: ; preds = %33, %21
%26 = load i32, i32* %16
%27 = load i32, i32* %14
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %36
29: ; preds = %25
%30 = load i32, i32* %16
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [1000 x double], [1000 x double]* %15, i64 0, i64 %31
store double 1.000000e+00, double* %32
br label %33
33: ; preds = %29
%34 = load i32, i32* %16
%35 = add nsw i32 %34, 1
store i32 %35, i32* %16
br label %25
36: ; preds = %25
store i32 0, i32* %16
br label %37
37: ; preds = %71, %36
%38 = load i32, i32* %16
%39 = load i32, i32* %12
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %74
41: ; preds = %37
%42 = load i32, i32* %12
store i32 %42, i32* %17
br label %43
43: ; preds = %67, %41
%44 = load i32, i32* %17
%45 = load i32, i32* %14
%46 = icmp slt i32 %44, %45
br i1 %46, label %47, label %70
47: ; preds = %43
%48 = load [1000 x double]*, [1000 x double]** %8
%49 = load i32, i32* %16
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1000 x double], [1000 x double]* %48, i64 %50
%52 = load i32, i32* %17
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1000 x double], [1000 x double]* %51, i64 0, i64 %53
%55 = load double, double* %54
%56 = load i32, i32* %17
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [1000 x double], [1000 x double]* %15, i64 0, i64 %57
%59 = load double, double* %58
%60 = load double*, double** %9
%61 = load i32, i32* %17
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %60, i64 %62
%64 = load double, double* %63
%65 = fneg double %55
%66 = call double @llvm.fmuladd.f64(double %65, double %59, double %64)
store double %66, double* %63
br label %67
67: ; preds = %47
%68 = load i32, i32* %17
%69 = add nsw i32 %68, 1
store i32 %69, i32* %17
br label %43
70: ; preds = %43
br label %71
71: ; preds = %70
%72 = load i32, i32* %16
%73 = add nsw i32 %72, 1
store i32 %73, i32* %16
br label %37
74: ; preds = %37
br label %75
75: ; preds = %74, %7
%76 = load [1000 x double]*, [1000 x double]** %8
%77 = bitcast [1000 x double]* %76 to double**
%78 = load double*, double** %9
%79 = load i32, i32* %12
%80 = call i32 @backSubs(double** %77, double* %78, i32 %79)
%81 = load double*, double** %9
%82 = load i32*, i32** %10
%83 = load double, double* %11
%84 = load i32, i32* %12
%85 = call i32 @reorder(double* %81, i32* %82, double %83, i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %16
br label %87
87: ; preds = %99, %75
%88 = load i32, i32* %16
%89 = load i32, i32* %12
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %102
91: ; preds = %87
%92 = load i32, i32* %16
%93 = load double*, double** %9
%94 = load i32, i32* %16
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %93, i64 %95
%97 = load double, double* %96
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %92, double %97)
br label %99
99: ; preds = %91
%100 = load i32, i32* %16
%101 = add nsw i32 %100, 1
store i32 %101, i32* %16
br label %87
102: ; preds = %87
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%104 = load [1000 x double]*, [1000 x double]** %8
%105 = bitcast [1000 x double]* %104 to double**
%106 = load double*, double** %9
%107 = load i32, i32* %12
%108 = load i32, i32* %13
%109 = load i32, i32* %14
%110 = call i32 @residuo(double** %105, double* %106, i32 %107, i32 %108, i32 %109)
ret void
}

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