#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*/ exit(int);
double exp(double);
double log(double);
int /*<<< orphan*/ normalize(double *, int);
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
int main(int argc, char *argv[]) {
  int i, j, npt;
  double x[1000], y[6][1000], sum0, sum1, sum2;
  npt = 100;
  if (npt >= 1000) {
    printf("npt=%d too large -or- MAXROW=%d too small\n", npt, 1000);
    exit(1);
  }
  sum0 = sum1 = sum2 = 0.0;
  for (i = 0; i < npt; i++) {
    x[i] = (double)(i + 1) / (double)npt;
    y[0][i] = sqrt(x[i]);
    y[1][i] = log(x[i]);
    y[2][i] = exp(x[i]);
    sum0 += y[0][i];
    sum1 += y[1][i];
    sum2 += y[2][i];
    y[3][i] = sum0;
    y[4][i] = sum1;
    y[5][i] = sum2;
  }
  normalize(y[3], npt);
  normalize(y[4], npt);
  normalize(y[5], npt);
  for (i = 0; i < npt; i++) {
    printf("%g", x[i]);
    printf(" %g %g %g", y[0][i], y[1][i], y[2][i]);
    printf(" %g %g %g", y[3][i], y[4][i], y[5][i]);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xdb00,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x64,-0x1c(%rbp)
cmpl   $0x3e8,-0x1c(%rbp)
jl     11ad <main+0x4d>
mov    -0x1c(%rbp),%esi
lea    0xe69(%rip),%rdi
mov    $0x3e8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xdaf8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xdaf0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xdae8(%rbp)
ff
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1302 <main+0x1a2>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x1f60(%rbp,%rax,8)
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
call   1070 <sqrt@plt>
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0xdae0(%rbp,%rax,8)
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
call   1060 <log@plt>
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0xbba0(%rbp,%rax,8)
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
call   1050 <exp@plt>
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x9c60(%rbp,%rax,8)
ff ff
movslq -0x14(%rbp),%rax
movsd  -0xdae0(%rbp,%rax,8),%xmm0
ff ff
addsd  -0xdae8(%rbp),%xmm0
ff
movsd  %xmm0,-0xdae8(%rbp)
ff
movslq -0x14(%rbp),%rax
movsd  -0xbba0(%rbp,%rax,8),%xmm0
ff ff
addsd  -0xdaf0(%rbp),%xmm0
ff
movsd  %xmm0,-0xdaf0(%rbp)
ff
movslq -0x14(%rbp),%rax
movsd  -0x9c60(%rbp,%rax,8),%xmm0
ff ff
addsd  -0xdaf8(%rbp),%xmm0
ff
movsd  %xmm0,-0xdaf8(%rbp)
ff
movsd  -0xdae8(%rbp),%xmm0
ff
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x7d20(%rbp,%rax,8)
ff ff
movsd  -0xdaf0(%rbp),%xmm0
ff
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x5de0(%rbp,%rax,8)
ff ff
movsd  -0xdaf8(%rbp),%xmm0
ff
movslq -0x14(%rbp),%rax
movsd  %xmm0,-0x3ea0(%rbp,%rax,8)
ff ff
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d5 <main+0x75>
lea    -0xdae0(%rbp),%rdi
add    $0x5dc0,%rdi
mov    -0x1c(%rbp),%esi
call   1040 <normalize@plt>
lea    -0xdae0(%rbp),%rdi
add    $0x7d00,%rdi
mov    -0x1c(%rbp),%esi
call   1040 <normalize@plt>
lea    -0xdae0(%rbp),%rdi
add    $0x9c40,%rdi
mov    -0x1c(%rbp),%esi
call   1040 <normalize@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13f8 <main+0x298>
movslq -0x14(%rbp),%rax
movsd  -0x1f60(%rbp,%rax,8),%xmm0
ff ff
lea    0xcc7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movslq -0x14(%rbp),%rax
movsd  -0xdae0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x14(%rbp),%rax
movsd  -0xbba0(%rbp,%rax,8),%xmm1
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x9c60(%rbp,%rax,8),%xmm2
ff ff
lea    0xc8b(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movslq -0x14(%rbp),%rax
movsd  -0x7d20(%rbp,%rax,8),%xmm0
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x5de0(%rbp,%rax,8),%xmm1
ff ff
movslq -0x14(%rbp),%rax
movsd  -0x3ea0(%rbp,%rax,8),%xmm2
ff ff
lea    0xc56(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
lea    0xc46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    134b <main+0x1eb>
xor    %eax,%eax
add    $0xdb00,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0xdaf0,%rsp
xor    %ebx,%ebx
xorpd  %xmm0,%xmm0
xorpd  %xmm2,%xmm2
xorpd  %xmm3,%xmm3
jmp    120f <main+0xaf>
nop
movapd %xmm1,%xmm0
call   1080 <sqrt@plt>
movsd  (%rsp),%xmm1
movsd  %xmm0,0x10(%rsp)
movsd  %xmm0,0x30(%rsp,%rbx,8)
movapd %xmm1,%xmm0
call   1070 <log@plt>
movsd  %xmm0,0x8(%rsp)
movsd  %xmm0,0x1f70(%rsp,%rbx,8)
movsd  (%rsp),%xmm0
call   1060 <exp@plt>
movsd  %xmm0,0x3eb0(%rsp,%rbx,8)
movsd  0x18(%rsp),%xmm3
addsd  0x10(%rsp),%xmm3
movsd  0x20(%rsp),%xmm2
addsd  0x8(%rsp),%xmm2
movsd  0x28(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  %xmm3,0x5df0(%rsp,%rbx,8)
movsd  %xmm2,0x7d30(%rsp,%rbx,8)
movsd  %xmm1,0x9c70(%rsp,%rbx,8)
mov    %r14,%rbx
cmp    $0x64,%r14
je     125d <main+0xfd>
lea    0x1(%rbx),%r14
xorps  %xmm1,%xmm1
cvtsi2sd %r14d,%xmm1
divsd  0xddd(%rip),%xmm1
movsd  %xmm1,0xbbb0(%rsp,%rbx,8)
ucomisd 0xdd4(%rip),%xmm1
movsd  %xmm0,0x28(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm1,(%rsp)
jb     1180 <main+0x20>
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
jmp    118e <main+0x2e>
lea    0x5df0(%rsp),%rdi
mov    $0x64,%esi
call   1050 <normalize@plt>
lea    0x7d30(%rsp),%rdi
mov    $0x64,%esi
call   1050 <normalize@plt>
lea    0x9c70(%rsp),%rdi
mov    $0x64,%esi
call   1050 <normalize@plt>
xor    %ebx,%ebx
lea    0xd7b(%rip),%r14
lea    0xd6d(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0xbbb0(%rsp,%rbx,8),%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x30(%rsp,%rbx,8),%xmm0
movsd  0x1f70(%rsp,%rbx,8),%xmm1
movsd  0x3eb0(%rsp,%rbx,8),%xmm2
mov    %r15,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movsd  0x5df0(%rsp,%rbx,8),%xmm0
movsd  0x7d30(%rsp,%rbx,8),%xmm1
movsd  0x9c70(%rsp,%rbx,8),%xmm2
mov    %r15,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x64,%rbx
jne    12b0 <main+0x150>
xor    %eax,%eax
add    $0xdaf0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [43 x i8] c"npt=%d too large -or- MAXROW=%d too small\0A\00"
@.str.1 = [3 x i8] c"%g\00"
@.str.2 = [10 x i8] c" %g %g %g\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [1000 x double]
%10 = alloca [6 x [1000 x double]]
%11 = alloca double
%12 = alloca double
%13 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 100, i32* %8
%14 = load i32, i32* %8
%15 = icmp sge i32 %14, 1000
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load i32, i32* %8
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %17, i32 1000)
%19 = call i32 @exit(i32 1)
unreachable
20: ; preds = %2
store double 0.000000e+00, double* %13
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %11
store i32 0, i32* %6
br label %21
21: ; preds = %98, %20
%22 = load i32, i32* %6
%23 = load i32, i32* %8
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %101
25: ; preds = %21
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
%28 = sitofp i32 %27 to double
%29 = load i32, i32* %8
%30 = sitofp i32 %29 to double
%31 = fdiv double %28, %30
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1000 x double], [1000 x double]* %9, i64 0, i64 %33
store double %31, double* %34
%35 = load i32, i32* %6
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [1000 x double], [1000 x double]* %9, i64 0, i64 %36
%38 = load double, double* %37
%39 = call double @sqrt(double %38)
%40 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 0
%41 = load i32, i32* %6
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [1000 x double], [1000 x double]* %40, i64 0, i64 %42
store double %39, double* %43
%44 = load i32, i32* %6
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [1000 x double], [1000 x double]* %9, i64 0, i64 %45
%47 = load double, double* %46
%48 = call double @log(double %47)
%49 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 1
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1000 x double], [1000 x double]* %49, i64 0, i64 %51
store double %48, double* %52
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1000 x double], [1000 x double]* %9, i64 0, i64 %54
%56 = load double, double* %55
%57 = call double @exp(double %56)
%58 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 2
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [1000 x double], [1000 x double]* %58, i64 0, i64 %60
store double %57, double* %61
%62 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 0
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [1000 x double], [1000 x double]* %62, i64 0, i64 %64
%66 = load double, double* %65
%67 = load double, double* %11
%68 = fadd double %67, %66
store double %68, double* %11
%69 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 1
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [1000 x double], [1000 x double]* %69, i64 0, i64 %71
%73 = load double, double* %72
%74 = load double, double* %12
%75 = fadd double %74, %73
store double %75, double* %12
%76 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 2
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [1000 x double], [1000 x double]* %76, i64 0, i64 %78
%80 = load double, double* %79
%81 = load double, double* %13
%82 = fadd double %81, %80
store double %82, double* %13
%83 = load double, double* %11
%84 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 3
%85 = load i32, i32* %6
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [1000 x double], [1000 x double]* %84, i64 0, i64 %86
store double %83, double* %87
%88 = load double, double* %12
%89 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 4
%90 = load i32, i32* %6
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [1000 x double], [1000 x double]* %89, i64 0, i64 %91
store double %88, double* %92
%93 = load double, double* %13
%94 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 5
%95 = load i32, i32* %6
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [1000 x double], [1000 x double]* %94, i64 0, i64 %96
store double %93, double* %97
br label %98
98: ; preds = %25
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %21
101: ; preds = %21
%102 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 3
%103 = getelementptr inbounds [1000 x double], [1000 x double]* %102, i64 0, i64 0
%104 = load i32, i32* %8
%105 = call i32 @normalize(double* %103, i32 %104)
%106 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 4
%107 = getelementptr inbounds [1000 x double], [1000 x double]* %106, i64 0, i64 0
%108 = load i32, i32* %8
%109 = call i32 @normalize(double* %107, i32 %108)
%110 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 5
%111 = getelementptr inbounds [1000 x double], [1000 x double]* %110, i64 0, i64 0
%112 = load i32, i32* %8
%113 = call i32 @normalize(double* %111, i32 %112)
store i32 0, i32* %6
br label %114
114: ; preds = %157, %101
%115 = load i32, i32* %6
%116 = load i32, i32* %8
%117 = icmp slt i32 %115, %116
br i1 %117, label %118, label %160
118: ; preds = %114
%119 = load i32, i32* %6
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [1000 x double], [1000 x double]* %9, i64 0, i64 %120
%122 = load double, double* %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), double %122)
%124 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 0
%125 = load i32, i32* %6
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [1000 x double], [1000 x double]* %124, i64 0, i64 %126
%128 = load double, double* %127
%129 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 1
%130 = load i32, i32* %6
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [1000 x double], [1000 x double]* %129, i64 0, i64 %131
%133 = load double, double* %132
%134 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 2
%135 = load i32, i32* %6
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [1000 x double], [1000 x double]* %134, i64 0, i64 %136
%138 = load double, double* %137
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %128, double %133, double %138)
%140 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 3
%141 = load i32, i32* %6
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [1000 x double], [1000 x double]* %140, i64 0, i64 %142
%144 = load double, double* %143
%145 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 4
%146 = load i32, i32* %6
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [1000 x double], [1000 x double]* %145, i64 0, i64 %147
%149 = load double, double* %148
%150 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %10, i64 0, i64 5
%151 = load i32, i32* %6
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds [1000 x double], [1000 x double]* %150, i64 0, i64 %152
%154 = load double, double* %153
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %144, double %149, double %154)
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %157
157: ; preds = %118
%158 = load i32, i32* %6
%159 = add nsw i32 %158, 1
store i32 %159, i32* %6
br label %114
160: ; preds = %114
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%g\00"
@.str.2 = [10 x i8] c" %g %g %g\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1000 x double]
%4 = alloca [6 x [1000 x double]]
%5 = bitcast [1000 x double]* %3 to i8*
%6 = bitcast [6 x [1000 x double]]* %4 to i8*
br label %7
7: ; preds = %2, %7
%8 = phi i64 [ 0, %2 ], [ %12, %7 ]
%9 = phi double [ 0.000000e+00, %2 ], [ %25, %7 ]
%10 = phi double [ 0.000000e+00, %2 ], [ %24, %7 ]
%11 = phi double [ 0.000000e+00, %2 ], [ %23, %7 ]
%12 = add nuw nsw i64 %8, 1
%13 = trunc i64 %12 to i32
%14 = sitofp i32 %13 to double
%15 = fdiv double %14, 1.000000e+02
%16 = getelementptr inbounds [1000 x double], [1000 x double]* %3, i64 0, i64 %8
store double %15, double* %16
%17 = tail call double @sqrt(double %15)
%18 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 0, i64 %8
store double %17, double* %18
%19 = tail call double @log(double %15)
%20 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 1, i64 %8
store double %19, double* %20
%21 = tail call double @exp(double %15)
%22 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 2, i64 %8
store double %21, double* %22
%23 = fadd double %11, %17
%24 = fadd double %10, %19
%25 = fadd double %9, %21
%26 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 3, i64 %8
store double %23, double* %26
%27 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 4, i64 %8
store double %24, double* %27
%28 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 5, i64 %8
store double %25, double* %28
%29 = icmp eq i64 %12, 100
br i1 %29, label %30, label %7
30: ; preds = %7
%31 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 3, i64 0
%32 = call i32 @normalize(double* %31, i32 100)
%33 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 4, i64 0
%34 = call i32 @normalize(double* %33, i32 100)
%35 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 5, i64 0
%36 = call i32 @normalize(double* %35, i32 100)
br label %37
37: ; preds = %30, %37
%38 = phi i64 [ 0, %30 ], [ %57, %37 ]
%39 = getelementptr inbounds [1000 x double], [1000 x double]* %3, i64 0, i64 %38
%40 = load double, double* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), double %40)
%42 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 0, i64 %38
%43 = load double, double* %42
%44 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 1, i64 %38
%45 = load double, double* %44
%46 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 2, i64 %38
%47 = load double, double* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %43, double %45, double %47)
%49 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 3, i64 %38
%50 = load double, double* %49
%51 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 4, i64 %38
%52 = load double, double* %51
%53 = getelementptr inbounds [6 x [1000 x double]], [6 x [1000 x double]]* %4, i64 0, i64 5, i64 %38
%54 = load double, double* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %50, double %52, double %54)
%56 = call i32 @putchar(i32 10)
%57 = add nuw nsw i64 %38, 1
%58 = icmp eq i64 %57, 100
br i1 %58, label %59, label %37
59: ; preds = %37
ret i32 0
}