#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 */
struct timeval {
  long tv_sec;
  long tv_usec;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, double);
double sin(double);
int main(int argc, char **argv) {
  double a[1000][1000];
  FILE *ff;
  for (int i = 0; i < 1000; ++i) {
    for (int j = 0; j < 1000; ++j) {
      a[i][j] = 10 * i + j;
    }
  }
  double timeElapsed = 0.0;
  do {
    struct timeval timeElapsed_start, timeElapsed_end;
    long timeElapsed_seconds, timeElapsed_useconds;
    gettimeofday(&timeElapsed_start, NULL);
    {
      for (int i = 0; i < 1000; ++i) {
        for (int j = 0; j < 1000; ++j) {
          for (int k = 0; k < 100; k++)
            a[i][j] = sin(0.00001 * a[i][j]);
        }
      }
    }
    gettimeofday(&timeElapsed_end, NULL);
    timeElapsed_seconds = timeElapsed_end.tv_sec - timeElapsed_start.tv_sec;
    timeElapsed_useconds = timeElapsed_end.tv_usec - timeElapsed_start.tv_usec;
    timeElapsed = (timeElapsed_seconds * 1000 + timeElapsed_useconds / 1000.0);
  } while (0);
  printf("%.6lf\n", timeElapsed);
  ff = fopen("1.out", "w");
  for (int i = 0; i < 1000; ++i) {
    for (int j = 0; j < 1000; ++j) {
      fprintf(ff, "%f ", a[i][j]);
    }
    fprintf(ff, "\n");
  }
  fclose(ff);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x7a1270,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x7a121c(%rbp)
cmpl   $0x3e8,-0x7a121c(%rbp)
jge    120f <main+0xaf>
movl   $0x0,-0x7a1220(%rbp)
cmpl   $0x3e8,-0x7a1220(%rbp)
jge    11f6 <main+0x96>
imul   $0xa,-0x7a121c(%rbp),%eax
add    -0x7a1220(%rbp),%eax
cvtsi2sd %eax,%xmm0
movslq -0x7a121c(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a1220(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7a1220(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1220(%rbp)
jmp    119d <main+0x3d>
jmp    11fb <main+0x9b>
mov    -0x7a121c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a121c(%rbp)
jmp    1183 <main+0x23>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x7a1228(%rbp)
ff
lea    -0x7a1238(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
movl   $0x0,-0x7a125c(%rbp)
cmpl   $0x3e8,-0x7a125c(%rbp)
jge    1310 <main+0x1b0>
movl   $0x0,-0x7a1260(%rbp)
cmpl   $0x3e8,-0x7a1260(%rbp)
jge    12f7 <main+0x197>
movl   $0x0,-0x7a1264(%rbp)
cmpl   $0x64,-0x7a1264(%rbp)
jge    12de <main+0x17e>
movslq -0x7a125c(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a1260(%rbp),%rcx
movsd  0xd6c(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
call   1070 <sin@plt>
movslq -0x7a125c(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a1260(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7a1264(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1264(%rbp)
jmp    1268 <main+0x108>
jmp    12e3 <main+0x183>
mov    -0x7a1260(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1260(%rbp)
jmp    124e <main+0xee>
jmp    12fc <main+0x19c>
mov    -0x7a125c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a125c(%rbp)
jmp    1234 <main+0xd4>
lea    -0x7a1248(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <gettimeofday@plt>
mov    -0x7a1248(%rbp),%rax
sub    -0x7a1238(%rbp),%rax
mov    %rax,-0x7a1250(%rbp)
mov    -0x7a1240(%rbp),%rax
sub    -0x7a1230(%rbp),%rax
mov    %rax,-0x7a1258(%rbp)
imul   $0x3e8,-0x7a1250(%rbp),%rax
cvtsi2sd %rax,%xmm0
cvtsi2sdq -0x7a1258(%rbp),%xmm1
85 ff
movsd  0xc95(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x7a1228(%rbp)
ff
movsd  -0x7a1228(%rbp),%xmm0
ff
lea    0xc86(%rip),%rdi
call   1040 <printf@plt>
lea    0xc81(%rip),%rdi
lea    0xc80(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x7a1218(%rbp)
movl   $0x0,-0x7a1268(%rbp)
cmpl   $0x3e8,-0x7a1268(%rbp)
jge    1453 <main+0x2f3>
movl   $0x0,-0x7a126c(%rbp)
cmpl   $0x3e8,-0x7a126c(%rbp)
jge    142a <main+0x2ca>
mov    -0x7a1218(%rbp),%rdi
movslq -0x7a1268(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a126c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc10(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x7a126c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a126c(%rbp)
jmp    13cd <main+0x26d>
mov    -0x7a1218(%rbp),%rdi
lea    0xbdd(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x7a1268(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1268(%rbp)
jmp    13b3 <main+0x253>
mov    -0x7a1218(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x7a1270,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x7a1220,%rsp
lea    0x20(%rsp),%rax
xor    %ecx,%ecx
movdqa 0xe72(%rip),%xmm0
movdqa 0xe7a(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
lea    (%rcx,%rcx,1),%rdx
lea    (%rdx,%rdx,4),%rsi
movq   %rsi,%xmm2
pshufd $0x44,%xmm2,%xmm2
lea    (%rdx,%rdx,4),%rdx
add    $0x2,%rdx
movq   %rdx,%xmm3
pshufd $0x44,%xmm3,%xmm3
mov    $0x2,%edx
movdqa %xmm0,%xmm4
nopl   (%rax)
movdqa %xmm4,%xmm5
paddq  %xmm2,%xmm5
movdqa %xmm3,%xmm6
paddq  %xmm4,%xmm6
pshufd $0xe8,%xmm5,%xmm5
cvtdq2pd %xmm5,%xmm5
pshufd $0xe8,%xmm6,%xmm6
cvtdq2pd %xmm6,%xmm6
movaps %xmm5,-0x10(%rax,%rdx,8)
movaps %xmm6,(%rax,%rdx,8)
paddq  %xmm1,%xmm4
add    $0x4,%rdx
cmp    $0x3ea,%rdx
jne    11d0 <main+0x60>
add    $0x1,%rcx
add    $0x1f40,%rax
cmp    $0x3e8,%rcx
jne    11a0 <main+0x30>
xor    %r14d,%r14d
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
movsd  0xdea(%rip),%xmm1
cs nopw 0x0(%rax,%rax,1)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
imul   $0x1f40,%r14,%rax
add    %rsp,%rax
add    $0x20,%rax
lea    (%rax,%rbx,8),%r15
movsd  (%rax,%rbx,8),%xmm0
mov    $0x64,%ebp
nopl   0x0(%rax)
mulsd  %xmm1,%xmm0
call   1080 <sin@plt>
mulsd  0xd9f(%rip),%xmm0
call   1080 <sin@plt>
mulsd  0xd92(%rip),%xmm0
call   1080 <sin@plt>
mulsd  0xd85(%rip),%xmm0
call   1080 <sin@plt>
mulsd  0xd78(%rip),%xmm0
call   1080 <sin@plt>
movsd  0xd6b(%rip),%xmm1
add    $0xfffffffb,%ebp
jne    1270 <main+0x100>
movsd  %xmm0,(%r15)
add    $0x1,%rbx
cmp    $0x3e8,%rbx
jne    1250 <main+0xe0>
add    $0x1,%r14
cmp    $0x3e8,%r14
jne    1240 <main+0xd0>
xor    %r15d,%r15d
mov    %rsp,%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    (%rsp),%rax
sub    0x10(%rsp),%rax
mov    0x8(%rsp),%rcx
sub    0x18(%rsp),%rcx
imul   $0x3e8,%rax,%rax
xorps  %xmm1,%xmm1
cvtsi2sd %rax,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %rcx,%xmm0
divsd  0xd0c(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xd09(%rip),%rdi
call   1040 <printf@plt>
lea    0xd04(%rip),%rdi
lea    0xd03(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r12
lea    0x20(%rsp),%rbp
lea    0xcf1(%rip),%r14
xchg   %ax,%ax
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%rbp,%rbx,8),%xmm0
mov    %r12,%rdi
mov    %r14,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
add    $0x1,%rbx
cmp    $0x3e8,%rbx
jne    1360 <main+0x1f0>
mov    $0xa,%edi
mov    %r12,%rsi
call   1060 <fputc@plt>
add    $0x1,%r15
add    $0x1f40,%rbp
cmp    $0x3e8,%r15
jne    1350 <main+0x1e0>
mov    %r12,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x7a1220,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
@.str = [7 x i8] c"%.6lf\0A\00"
@.str.1 = [6 x i8] c"1.out\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [4 x i8] c"%f \00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1000 x [1000 x double]]
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca %struct.timeval
%12 = alloca %struct.timeval
%13 = alloca i64
%14 = alloca i64
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
br label %20
20: ; preds = %43, %2
%21 = load i32, i32* %8
%22 = icmp slt i32 %21, 1000
br i1 %22, label %23, label %46
23: ; preds = %20
store i32 0, i32* %9
br label %24
24: ; preds = %39, %23
%25 = load i32, i32* %9
%26 = icmp slt i32 %25, 1000
br i1 %26, label %27, label %42
27: ; preds = %24
%28 = load i32, i32* %8
%29 = mul nsw i32 10, %28
%30 = load i32, i32* %9
%31 = add nsw i32 %29, %30
%32 = sitofp i32 %31 to double
%33 = load i32, i32* %8
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %34
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [1000 x double], [1000 x double]* %35, i64 0, i64 %37
store double %32, double* %38
br label %39
39: ; preds = %27
%40 = load i32, i32* %9
%41 = add nsw i32 %40, 1
store i32 %41, i32* %9
br label %24
42: ; preds = %24
br label %43
43: ; preds = %42
%44 = load i32, i32* %8
%45 = add nsw i32 %44, 1
store i32 %45, i32* %8
br label %20
46: ; preds = %20
store double 0.000000e+00, double* %10
br label %47
47: ; preds = %46
%48 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
store i32 0, i32* %15
br label %49
49: ; preds = %84, %47
%50 = load i32, i32* %15
%51 = icmp slt i32 %50, 1000
br i1 %51, label %52, label %87
52: ; preds = %49
store i32 0, i32* %16
br label %53
53: ; preds = %80, %52
%54 = load i32, i32* %16
%55 = icmp slt i32 %54, 1000
br i1 %55, label %56, label %83
56: ; preds = %53
store i32 0, i32* %17
br label %57
57: ; preds = %76, %56
%58 = load i32, i32* %17
%59 = icmp slt i32 %58, 100
br i1 %59, label %60, label %79
60: ; preds = %57
%61 = load i32, i32* %15
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %62
%64 = load i32, i32* %16
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [1000 x double], [1000 x double]* %63, i64 0, i64 %65
%67 = load double, double* %66
%68 = fmul double 1.000000e-05, %67
%69 = call double @sin(double %68)
%70 = load i32, i32* %15
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %71
%73 = load i32, i32* %16
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [1000 x double], [1000 x double]* %72, i64 0, i64 %74
store double %69, double* %75
br label %76
76: ; preds = %60
%77 = load i32, i32* %17
%78 = add nsw i32 %77, 1
store i32 %78, i32* %17
br label %57
79: ; preds = %57
br label %80
80: ; preds = %79
%81 = load i32, i32* %16
%82 = add nsw i32 %81, 1
store i32 %82, i32* %16
br label %53
83: ; preds = %53
br label %84
84: ; preds = %83
%85 = load i32, i32* %15
%86 = add nsw i32 %85, 1
store i32 %86, i32* %15
br label %49
87: ; preds = %49
%88 = call i32 @gettimeofday(%struct.timeval* %12, i32* null)
%89 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 0
%90 = load i64, i64* %89
%91 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 0
%92 = load i64, i64* %91
%93 = sub nsw i64 %90, %92
store i64 %93, i64* %13
%94 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 1
%95 = load i64, i64* %94
%96 = getelementptr inbounds %struct.timeval, %struct.timeval* %11, i32 0, i32 1
%97 = load i64, i64* %96
%98 = sub nsw i64 %95, %97
store i64 %98, i64* %14
%99 = load i64, i64* %13
%100 = mul nsw i64 %99, 1000
%101 = sitofp i64 %100 to double
%102 = load i64, i64* %14
%103 = sitofp i64 %102 to double
%104 = fdiv double %103, 1.000000e+03
%105 = fadd double %101, %104
store double %105, double* %10
br label %106
106: ; preds = %87
%107 = load double, double* %10
%108 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %107)
%109 = call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %109, i32** %7
store i32 0, i32* %18
br label %110
110: ; preds = %133, %106
%111 = load i32, i32* %18
%112 = icmp slt i32 %111, 1000
br i1 %112, label %113, label %136
113: ; preds = %110
store i32 0, i32* %19
br label %114
114: ; preds = %127, %113
%115 = load i32, i32* %19
%116 = icmp slt i32 %115, 1000
br i1 %116, label %117, label %130
117: ; preds = %114
%118 = load i32*, i32** %7
%119 = load i32, i32* %18
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %120
%122 = load i32, i32* %19
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [1000 x double], [1000 x double]* %121, i64 0, i64 %123
%125 = load double, double* %124
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %125)
br label %127
127: ; preds = %117
%128 = load i32, i32* %19
%129 = add nsw i32 %128, 1
store i32 %129, i32* %19
br label %114
130: ; preds = %114
%131 = load i32*, i32** %7
%132 = call i32 (i32*, i8*, ...) @fprintf(i32* %131, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %133
133: ; preds = %130
%134 = load i32, i32* %18
%135 = add nsw i32 %134, 1
store i32 %135, i32* %18
br label %110
136: ; preds = %110
%137 = load i32*, i32** %7
%138 = call i32 @fclose(i32* %137)
ret i32 0
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
@.str = [7 x i8] c"%.6lf\0A\00"
@.str.1 = [6 x i8] c"1.out\00"
@.str.2 = [2 x i8] c"w\00"
@.str.3 = [4 x i8] c"%f \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1000 x [1000 x double]]
%4 = alloca %struct.timeval
%5 = alloca %struct.timeval
%6 = bitcast [1000 x [1000 x double]]* %3 to i8*
br label %7
7: ; preds = %2, %35
%8 = phi i64 [ 0, %2 ], [ %36, %35 ]
%9 = mul nuw nsw i64 %8, 10
%10 = insertelement <2 x i64> poison, i64 %9, i64 0
%11 = shufflevector <2 x i64> %10, <2 x i64> poison, <2 x i32> zeroinitializer
%12 = add nuw i64 %9, 2
%13 = insertelement <2 x i64> poison, i64 %12, i64 0
%14 = shufflevector <2 x i64> %13, <2 x i64> poison, <2 x i32> zeroinitializer
br label %15
15: ; preds = %15, %7
%16 = phi i64 [ 0, %7 ], [ %28, %15 ]
%17 = phi <2 x i64> [ <i64 0, i64 1>, %7 ], [ %29, %15 ]
%18 = add nuw nsw <2 x i64> %17, %11
%19 = add <2 x i64> %14, %17
%20 = trunc <2 x i64> %18 to <2 x i32>
%21 = trunc <2 x i64> %19 to <2 x i32>
%22 = sitofp <2 x i32> %20 to <2 x double>
%23 = sitofp <2 x i32> %21 to <2 x double>
%24 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %8, i64 %16
%25 = bitcast double* %24 to <2 x double>*
store <2 x double> %22, <2 x double>* %25
%26 = getelementptr inbounds double, double* %24, i64 2
%27 = bitcast double* %26 to <2 x double>*
store <2 x double> %23, <2 x double>* %27
%28 = add nuw i64 %16, 4
%29 = add <2 x i64> %17, <i64 4, i64 4>
%30 = icmp eq i64 %28, 1000
br i1 %30, label %35, label %15
31: ; preds = %35
%32 = bitcast %struct.timeval* %4 to i8*
%33 = bitcast %struct.timeval* %5 to i8*
%34 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
br label %38
35: ; preds = %15
%36 = add nuw nsw i64 %8, 1
%37 = icmp eq i64 %36, 1000
br i1 %37, label %31, label %7
38: ; preds = %31, %63
%39 = phi i64 [ 0, %31 ], [ %64, %63 ]
br label %59
40: ; preds = %63
%41 = call i32 @gettimeofday(%struct.timeval* %5, i32* null)
%42 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%43 = load i64, i64* %42
%44 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%45 = load i64, i64* %44
%46 = sub nsw i64 %43, %45
%47 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%48 = load i64, i64* %47
%49 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%50 = load i64, i64* %49
%51 = sub nsw i64 %48, %50
%52 = mul nsw i64 %46, 1000
%53 = sitofp i64 %52 to double
%54 = sitofp i64 %51 to double
%55 = fdiv double %54, 1.000000e+03
%56 = fadd double %55, %53
%57 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %56)
%58 = tail call i32* @fopen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %84
59: ; preds = %38, %66
%60 = phi i64 [ 0, %38 ], [ %67, %66 ]
%61 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %39, i64 %60
%62 = load double, double* %61
br label %69
63: ; preds = %66
%64 = add nuw nsw i64 %39, 1
%65 = icmp eq i64 %64, 1000
br i1 %65, label %40, label %38
66: ; preds = %69
store double %81, double* %61
%67 = add nuw nsw i64 %60, 1
%68 = icmp eq i64 %67, 1000
br i1 %68, label %63, label %59
69: ; preds = %69, %59
%70 = phi i32 [ 0, %59 ], [ %82, %69 ]
%71 = phi double [ %62, %59 ], [ %81, %69 ]
%72 = fmul double %71, 1.000000e-05
%73 = tail call double @sin(double %72)
%74 = fmul double %73, 1.000000e-05
%75 = tail call double @sin(double %74)
%76 = fmul double %75, 1.000000e-05
%77 = tail call double @sin(double %76)
%78 = fmul double %77, 1.000000e-05
%79 = tail call double @sin(double %78)
%80 = fmul double %79, 1.000000e-05
%81 = tail call double @sin(double %80)
%82 = add nuw nsw i32 %70, 5
%83 = icmp eq i32 %82, 100
br i1 %83, label %66, label %69
84: ; preds = %40, %88
%85 = phi i64 [ 0, %40 ], [ %90, %88 ]
br label %92
86: ; preds = %88
%87 = tail call i32 @fclose(i32* %58)
ret i32 0
88: ; preds = %92
%89 = tail call i32 @fputc(i32 10, i32* %58)
%90 = add nuw nsw i64 %85, 1
%91 = icmp eq i64 %90, 1000
br i1 %91, label %86, label %84
92: ; preds = %84, %92
%93 = phi i64 [ 0, %84 ], [ %97, %92 ]
%94 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %85, i64 %93
%95 = load double, double* %94
%96 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %95)
%97 = add nuw nsw i64 %93, 1
%98 = icmp eq i64 %97, 1000
br i1 %98, label %88, label %92
}