#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];
  int i, j;
  FILE *ff;
  for (i = 0; i < 1000; ++i) {
    for (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 - 1; ++i) {
        for (int j = 0; j < 1000 - 1; ++j) {
          for (int k = 0; k < 100; k++)
            a[i][j] = sin(0.00001 * a[i + 1][j + 1]);
        }
      }
    }
    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("6.out", "w");
  for (i = 0; i < 1000; ++i) {
    for (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,-0x7a1214(%rbp)
cmpl   $0x3e8,-0x7a1214(%rbp)
jge    120f <main+0xaf>
movl   $0x0,-0x7a1218(%rbp)
cmpl   $0x3e8,-0x7a1218(%rbp)
jge    11f6 <main+0x96>
imul   $0xa,-0x7a1214(%rbp),%eax
add    -0x7a1218(%rbp),%eax
cvtsi2sd %eax,%xmm0
movslq -0x7a1214(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a1218(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7a1218(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1218(%rbp)
jmp    119d <main+0x3d>
jmp    11fb <main+0x9b>
mov    -0x7a1214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1214(%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   $0x3e7,-0x7a125c(%rbp)
jge    131a <main+0x1ba>
movl   $0x0,-0x7a1260(%rbp)
cmpl   $0x3e7,-0x7a1260(%rbp)
jge    1301 <main+0x1a1>
movl   $0x0,-0x7a1264(%rbp)
cmpl   $0x64,-0x7a1264(%rbp)
jge    12e8 <main+0x188>
mov    -0x7a125c(%rbp),%eax
add    $0x1,%eax
movslq %eax,%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
mov    -0x7a1260(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xd62(%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    12ed <main+0x18d>
mov    -0x7a1260(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1260(%rbp)
jmp    124e <main+0xee>
jmp    1306 <main+0x1a6>
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  0xc8b(%rip),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x7a1228(%rbp)
ff
movsd  -0x7a1228(%rbp),%xmm0
ff
lea    0xc7c(%rip),%rdi
call   1040 <printf@plt>
lea    0xc77(%rip),%rdi
lea    0xc76(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x7a1220(%rbp)
movl   $0x0,-0x7a1214(%rbp)
cmpl   $0x3e8,-0x7a1214(%rbp)
jge    145d <main+0x2fd>
movl   $0x0,-0x7a1218(%rbp)
cmpl   $0x3e8,-0x7a1218(%rbp)
jge    1434 <main+0x2d4>
mov    -0x7a1220(%rbp),%rdi
movslq -0x7a1214(%rbp),%rcx
lea    -0x7a1210(%rbp),%rax
imul   $0x1f40,%rcx,%rcx
add    %rcx,%rax
movslq -0x7a1218(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc06(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x7a1218(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1218(%rbp)
jmp    13d7 <main+0x277>
mov    -0x7a1220(%rbp),%rdi
lea    0xbd3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x7a1214(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7a1214(%rbp)
jmp    13bd <main+0x25d>
mov    -0x7a1220(%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    $0x7a1230,%rsp
lea    0x30(%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    0x20(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
xchg   %ax,%ax
lea    0x1(%r14),%r15
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
lea    0x1(%rbx),%r12
imul   $0x1f40,%r15,%rax
add    %rsp,%rax
add    $0x30,%rax
movsd  0x8(%rax,%rbx,8),%xmm0
mulsd  0xdc0(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    $0x64,%ebp
nopl   0x0(%rax,%rax,1)
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movsd  0x8(%rsp),%xmm0
call   1080 <sin@plt>
movq   0x8(%rsp),%xmm0
call   1080 <sin@plt>
add    $0xfffffff6,%ebp
jne    1270 <main+0x100>
imul   $0x1f40,%r14,%rax
add    %rsp,%rax
add    $0x30,%rax
movq   %xmm0,(%rax,%rbx,8)
mov    %r12,%rbx
cmp    $0x3e7,%r12
jne    1240 <main+0xd0>
mov    %r15,%r14
cmp    $0x3e7,%r15
jne    1230 <main+0xc0>
xor    %r15d,%r15d
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1050 <gettimeofday@plt>
mov    0x10(%rsp),%rax
sub    0x20(%rsp),%rax
mov    0x18(%rsp),%rcx
sub    0x28(%rsp),%rcx
imul   $0x3e8,%rax,%rax
cvtsi2sd %rax,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %rcx,%xmm0
divsd  0xcd3(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0xcd0(%rip),%rdi
call   1040 <printf@plt>
lea    0xccb(%rip),%rdi
lea    0xcca(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%r12
lea    0x30(%rsp),%rbp
lea    0xcb8(%rip),%r14
nopw   0x0(%rax,%rax,1)
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    13a0 <main+0x230>
mov    $0xa,%edi
mov    %r12,%rsi
call   1060 <fputc@plt>
add    $0x1,%r15
add    $0x1f40,%rbp
cmp    $0x3e8,%r15
jne    1390 <main+0x220>
mov    %r12,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x7a1230,%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"6.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
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
br label %18
18: ; preds = %41, %2
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 1000
br i1 %20, label %21, label %44
21: ; preds = %18
store i32 0, i32* %8
br label %22
22: ; preds = %37, %21
%23 = load i32, i32* %8
%24 = icmp slt i32 %23, 1000
br i1 %24, label %25, label %40
25: ; preds = %22
%26 = load i32, i32* %7
%27 = mul nsw i32 10, %26
%28 = load i32, i32* %8
%29 = add nsw i32 %27, %28
%30 = sitofp i32 %29 to double
%31 = load i32, i32* %7
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %32
%34 = load i32, i32* %8
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1000 x double], [1000 x double]* %33, i64 0, i64 %35
store double %30, double* %36
br label %37
37: ; preds = %25
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
store i32 %39, i32* %8
br label %22
40: ; preds = %22
br label %41
41: ; preds = %40
%42 = load i32, i32* %7
%43 = add nsw i32 %42, 1
store i32 %43, i32* %7
br label %18
44: ; preds = %18
store double 0.000000e+00, double* %10
br label %45
45: ; preds = %44
%46 = call i32 @gettimeofday(%struct.timeval* %11, i32* null)
store i32 0, i32* %15
br label %47
47: ; preds = %84, %45
%48 = load i32, i32* %15
%49 = icmp slt i32 %48, 999
br i1 %49, label %50, label %87
50: ; preds = %47
store i32 0, i32* %16
br label %51
51: ; preds = %80, %50
%52 = load i32, i32* %16
%53 = icmp slt i32 %52, 999
br i1 %53, label %54, label %83
54: ; preds = %51
store i32 0, i32* %17
br label %55
55: ; preds = %76, %54
%56 = load i32, i32* %17
%57 = icmp slt i32 %56, 100
br i1 %57, label %58, label %79
58: ; preds = %55
%59 = load i32, i32* %15
%60 = add nsw i32 %59, 1
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %6, i64 0, i64 %61
%63 = load i32, i32* %16
%64 = add nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [1000 x double], [1000 x double]* %62, 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 = %58
%77 = load i32, i32* %17
%78 = add nsw i32 %77, 1
store i32 %78, i32* %17
br label %55
79: ; preds = %55
br label %80
80: ; preds = %79
%81 = load i32, i32* %16
%82 = add nsw i32 %81, 1
store i32 %82, i32* %16
br label %51
83: ; preds = %51
br label %84
84: ; preds = %83
%85 = load i32, i32* %15
%86 = add nsw i32 %85, 1
store i32 %86, i32* %15
br label %47
87: ; preds = %47
%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** %9
store i32 0, i32* %7
br label %110
110: ; preds = %133, %106
%111 = load i32, i32* %7
%112 = icmp slt i32 %111, 1000
br i1 %112, label %113, label %136
113: ; preds = %110
store i32 0, i32* %8
br label %114
114: ; preds = %127, %113
%115 = load i32, i32* %8
%116 = icmp slt i32 %115, 1000
br i1 %116, label %117, label %130
117: ; preds = %114
%118 = load i32*, i32** %9
%119 = load i32, i32* %7
%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* %8
%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* %8
%129 = add nsw i32 %128, 1
store i32 %129, i32* %8
br label %114
130: ; preds = %114
%131 = load i32*, i32** %9
%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* %7
%135 = add nsw i32 %134, 1
store i32 %135, i32* %7
br label %110
136: ; preds = %110
%137 = load i32*, i32** %9
%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"6.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, %31
%8 = phi i64 [ 0, %2 ], [ %32, %31 ]
%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 %31, label %15
31: ; preds = %15
%32 = add nuw nsw i64 %8, 1
%33 = icmp eq i64 %32, 1000
br i1 %33, label %34, label %7
34: ; preds = %31
%35 = bitcast %struct.timeval* %4 to i8*
%36 = bitcast %struct.timeval* %5 to i8*
%37 = call i32 @gettimeofday(%struct.timeval* %4, i32* null)
br label %38
38: ; preds = %34, %66
%39 = phi i64 [ 0, %34 ], [ %40, %66 ]
%40 = add nuw nsw i64 %39, 1
br label %60
41: ; preds = %66
%42 = call i32 @gettimeofday(%struct.timeval* %5, i32* null)
%43 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 0
%44 = load i64, i64* %43
%45 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 0
%46 = load i64, i64* %45
%47 = sub nsw i64 %44, %46
%48 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i64 0, i32 1
%49 = load i64, i64* %48
%50 = getelementptr inbounds %struct.timeval, %struct.timeval* %4, i64 0, i32 1
%51 = load i64, i64* %50
%52 = sub nsw i64 %49, %51
%53 = mul nsw i64 %47, 1000
%54 = sitofp i64 %53 to double
%55 = sitofp i64 %52 to double
%56 = fdiv double %55, 1.000000e+03
%57 = fadd double %56, %54
%58 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %57)
%59 = 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 %85
60: ; preds = %38, %68
%61 = phi i64 [ 0, %38 ], [ %62, %68 ]
%62 = add nuw nsw i64 %61, 1
%63 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %40, i64 %62
%64 = load double, double* %63
%65 = fmul double %64, 1.000000e-05
br label %71
66: ; preds = %68
%67 = icmp eq i64 %40, 999
br i1 %67, label %41, label %38
68: ; preds = %71
%69 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %39, i64 %61
store double %82, double* %69
%70 = icmp eq i64 %62, 999
br i1 %70, label %66, label %60
71: ; preds = %71, %60
%72 = phi i32 [ 0, %60 ], [ %83, %71 ]
%73 = tail call double @sin(double %65)
%74 = tail call double @sin(double %65)
%75 = tail call double @sin(double %65)
%76 = tail call double @sin(double %65)
%77 = tail call double @sin(double %65)
%78 = tail call double @sin(double %65)
%79 = tail call double @sin(double %65)
%80 = tail call double @sin(double %65)
%81 = tail call double @sin(double %65)
%82 = tail call double @sin(double %65)
%83 = add nuw nsw i32 %72, 10
%84 = icmp eq i32 %83, 100
br i1 %84, label %68, label %71
85: ; preds = %41, %94
%86 = phi i64 [ 0, %41 ], [ %96, %94 ]
br label %87
87: ; preds = %85, %87
%88 = phi i64 [ 0, %85 ], [ %92, %87 ]
%89 = getelementptr inbounds [1000 x [1000 x double]], [1000 x [1000 x double]]* %3, i64 0, i64 %86, i64 %88
%90 = load double, double* %89
%91 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %90)
%92 = add nuw nsw i64 %88, 1
%93 = icmp eq i64 %92, 1000
br i1 %93, label %94, label %87
94: ; preds = %87
%95 = tail call i32 @fputc(i32 10, i32* %59)
%96 = add nuw nsw i64 %86, 1
%97 = icmp eq i64 %96, 1000
br i1 %97, label %98, label %85
98: ; preds = %94
%99 = tail call i32 @fclose(i32* %59)
ret i32 0
}