#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
};

/* Variables and functions */
int exp(double);
int fabs(double);
struct tm *gmtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ mtsp();
int /*<<< orphan*/ printf(char *, double, double, double);
double sqrt(int);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
main() {
  int i, n, m, l;
  int t1, t2, t3, t4, t5, t6;
  time_t ts, tp;
  struct tm t;
  double z, sum1, sum2, st, ds, at;
  double ranf();
  extern int iseed, icpt;
  extern double x, b, wt;
  n = 10000;
  m = 10000;
  l = 15;
  b = 0.4;
  z = 0.46265167;
  ts = time(&tp);
  t = *gmtime(&tp);
  t1 = t.tm_sec;
  t2 = t.tm_min;
  t3 = t.tm_hour;
  t4 = t.tm_mday;
  t5 = t.tm_mon;
  t6 = t.tm_year;
  iseed = t6 + 70 * (t5 + 12 * (t4 + 31 * (t3 + 23 * (t2 + 59 * t1))));
  if ((iseed % 2) == 0) {
    iseed = iseed - 1;
  }
  x = ranf();
  wt = (exp(x * x) - 1);
  for (i = 0; i < m; ++i) {
    mtsp();
  }
  sum1 = 0;
  sum2 = 0;
  icpt = 0;
  for (i = 0; i < n * l; ++i) {
    mtsp();
    if (i % l == 0) {
      sum1 = sum1 + (x * x / (exp(x * x) - 1));
      sum2 = sum2 + (x * x / (exp(x * x) - 1)) * (x * x / (exp(x * x) - 1));
    }
  }
  st = z * sum1 / n;
  ds = z * sqrt(fabs(sum2 / n - (sum1 / n) * (sum1 / n)) / n);
  at = 100.0 * icpt / (n * l);
  printf("%16.8lf %16.8lf %16.8lf\n", st, ds, at);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2710,-0xc(%rbp)
movl   $0x2710,-0x10(%rbp)
movl   $0xf,-0x14(%rbp)
mov    0x2e12(%rip),%rax
movsd  0xe52(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0xe3e(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
lea    -0x34(%rbp),%rdi
call   1070 <time@plt>
mov    %eax,-0x30(%rbp)
lea    -0x34(%rbp),%rdi
call   1090 <gmtime@plt>
mov    (%rax),%rcx
mov    %rcx,-0x50(%rbp)
mov    0x8(%rax),%rcx
mov    %rcx,-0x48(%rbp)
mov    0x10(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x40(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%ecx
mov    -0x28(%rbp),%eax
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edi
imul   $0x3b,-0x18(%rbp),%r8d
add    %r8d,%edi
imul   $0x17,%edi,%edi
add    %edi,%esi
imul   $0x1f,%esi,%esi
add    %esi,%edx
imul   $0xc,%edx,%edx
add    %edx,%eax
imul   $0x46,%eax,%eax
add    %eax,%ecx
mov    0x2d8f(%rip),%rax
mov    %ecx,(%rax)
mov    0x2d86(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    127a <main+0xfa>
mov    0x2d6c(%rip),%rax
mov    (%rax),%ecx
sub    $0x1,%ecx
mov    0x2d60(%rip),%rax
mov    %ecx,(%rax)
mov    $0x0,%al
call   1040 <ranf@plt>
mov    0x2d40(%rip),%rax
movsd  %xmm0,(%rax)
mov    0x2d35(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2d2a(%rip),%rax
mulsd  (%rax),%xmm0
call   1080 <exp@plt>
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    0x2d33(%rip),%rax
movsd  %xmm0,(%rax)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12e1 <main+0x161>
mov    $0x0,%al
call   1050 <mtsp@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12c0 <main+0x140>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    0x2cd8(%rip),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
imul   -0x14(%rbp),%ecx
cmp    %ecx,%eax
jge    1475 <main+0x2f5>
mov    $0x0,%al
call   1050 <mtsp@plt>
mov    -0x8(%rbp),%eax
cltd
idivl  -0x14(%rbp)
cmp    $0x0,%edx
jne    1462 <main+0x2e2>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    0x2c86(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2c7b(%rip),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x2c68(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2c5d(%rip),%rax
mulsd  (%rax),%xmm0
call   1080 <exp@plt>
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm0
ff
sub    $0x1,%eax
cvtsi2sd %eax,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x2c1c(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2c11(%rip),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    0x2bfe(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2bf3(%rip),%rax
mulsd  (%rax),%xmm0
call   1080 <exp@plt>
movsd  -0xa0(%rbp),%xmm0
ff
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x2bc8(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2bbd(%rip),%rax
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x2baa(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2b9f(%rip),%rax
mulsd  (%rax),%xmm0
call   1080 <exp@plt>
movsd  -0x98(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
sub    $0x1,%eax
cvtsi2sd %eax,%xmm3
divsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    1467 <main+0x2e7>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1305 <main+0x185>
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x68(%rbp),%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
divsd  %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
cvtsi2sdl -0xc(%rbp),%xmm2
divsd  %xmm2,%xmm0
movsd  -0x60(%rbp),%xmm2
cvtsi2sdl -0xc(%rbp),%xmm3
divsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1060 <fabs@plt>
cltd
idivl  -0xc(%rbp)
mov    %eax,%edi
call   10a0 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    0x2ac2(%rip),%rax
cvtsi2sdl (%rax),%xmm1
movsd  0xaf6(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm2
lea    0xad0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0x2e2b(%rip),%rax
movabs $0x3fd999999999999a,%rcx
99 d9 3f
mov    %rcx,(%rax)
lea    0x24(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <time@plt>
mov    %rbx,%rdi
call   1090 <gmtime@plt>
imul   $0x3b,(%rax),%ecx
add    0x4(%rax),%ecx
lea    (%rcx,%rcx,2),%edx
shl    $0x3,%edx
sub    %ecx,%edx
add    0x8(%rax),%edx
mov    %edx,%ecx
shl    $0x5,%ecx
sub    %edx,%ecx
add    0xc(%rax),%ecx
lea    (%rcx,%rcx,2),%ecx
shl    $0x2,%ecx
add    0x10(%rax),%ecx
imul   $0x46,%ecx,%ecx
add    0x14(%rax),%ecx
mov    %ecx,%eax
and    $0x1,%eax
add    %ecx,%eax
add    $0xffffffff,%eax
mov    0x2de6(%rip),%rcx
mov    %eax,(%rcx)
xor    %eax,%eax
call   1040 <ranf@plt>
mov    0x2dc6(%rip),%r12
movsd  %xmm0,(%r12)
mulsd  %xmm0,%xmm0
call   1080 <exp@plt>
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x2dc6(%rip),%rax
movsd  %xmm0,(%rax)
mov    $0x2710,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <mtsp@plt>
add    $0xffffffff,%ebx
jne    1230 <main+0xb0>
mov    0x2d8d(%rip),%r14
movl   $0x0,(%r14)
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    $0x88888889,%r15d
xor    %ebp,%ebp
xor    %r13d,%r13d
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    1283 <main+0x103>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13d
add    $0xffffffff,%ebp
cmp    $0xfffdb610,%ebp
je     1346 <main+0x1c6>
mov    %r13d,%ebx
imul   %r15,%rbx
shr    $0x23,%rbx
mov    %ebx,%eax
shl    $0x4,%eax
sub    %eax,%ebx
xor    %eax,%eax
call   1050 <mtsp@plt>
cmp    %ebp,%ebx
jne    1270 <main+0xf0>
movsd  (%r12),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
call   1080 <exp@plt>
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  (%r12),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
call   1080 <exp@plt>
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
movsd  (%r12),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
call   1080 <exp@plt>
add    $0xffffffff,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x18(%rsp),%xmm1
divsd  %xmm0,%xmm1
mulsd  (%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
jmp    1270 <main+0xf0>
movsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm3
mulsd  0xca8(%rip),%xmm3
movsd  0xca8(%rip),%xmm2
divsd  %xmm2,%xmm3
movsd  %xmm3,(%rsp)
movsd  0x8(%rsp),%xmm0
divsd  %xmm2,%xmm0
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm1
subsd  %xmm1,%xmm0
call   1060 <fabs@plt>
cltq
imul   $0x68db8bad,%rax,%rdi
mov    %rdi,%rax
shr    $0x3f,%rax
sar    $0x2c,%rdi
add    %eax,%edi
call   10a0 <sqrt@plt>
movsd  0xc59(%rip),%xmm1
mulsd  %xmm0,%xmm1
xorps  %xmm2,%xmm2
cvtsi2sdl (%r14),%xmm2
mulsd  0xc55(%rip),%xmm2
divsd  0xc55(%rip),%xmm2
lea    0xc56(%rip),%rdi
movsd  (%rsp),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@b = external global double
@iseed = external global i32
@x = external global double
@wt = external global double
@icpt = external global i32
@.str = [25 x i8] c"%16.8lf %16.8lf %16.8lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca %struct.tm
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
store i32 0, i32* %1
store i32 10000, i32* %3
store i32 10000, i32* %4
store i32 15, i32* %5
store double 4.000000e-01, double* @b
store double 0x3FDD9C15C005BF07, double* %15
%21 = call i32 @time(i32* %13)
store i32 %21, i32* %12
%22 = call %struct.tm* @gmtime(i32* %13)
%23 = bitcast %struct.tm* %14 to i8*
%24 = bitcast %struct.tm* %22 to i8*
%25 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 0
%26 = load i32, i32* %25
store i32 %26, i32* %6
%27 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 1
%28 = load i32, i32* %27
store i32 %28, i32* %7
%29 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 2
%30 = load i32, i32* %29
store i32 %30, i32* %8
%31 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 3
%32 = load i32, i32* %31
store i32 %32, i32* %9
%33 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 4
%34 = load i32, i32* %33
store i32 %34, i32* %10
%35 = getelementptr inbounds %struct.tm, %struct.tm* %14, i32 0, i32 5
%36 = load i32, i32* %35
store i32 %36, i32* %11
%37 = load i32, i32* %11
%38 = load i32, i32* %10
%39 = load i32, i32* %9
%40 = load i32, i32* %8
%41 = load i32, i32* %7
%42 = load i32, i32* %6
%43 = mul nsw i32 59, %42
%44 = add nsw i32 %41, %43
%45 = mul nsw i32 23, %44
%46 = add nsw i32 %40, %45
%47 = mul nsw i32 31, %46
%48 = add nsw i32 %39, %47
%49 = mul nsw i32 12, %48
%50 = add nsw i32 %38, %49
%51 = mul nsw i32 70, %50
%52 = add nsw i32 %37, %51
store i32 %52, i32* @iseed
%53 = load i32, i32* @iseed
%54 = srem i32 %53, 2
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %0
%57 = load i32, i32* @iseed
%58 = sub nsw i32 %57, 1
store i32 %58, i32* @iseed
br label %59
59: ; preds = %56, %0
%60 = call double (...) @ranf()
store double %60, double* @x
%61 = load double, double* @x
%62 = load double, double* @x
%63 = fmul double %61, %62
%64 = call i32 @exp(double %63)
%65 = sub nsw i32 %64, 1
%66 = sitofp i32 %65 to double
store double %66, double* @wt
store i32 0, i32* %2
br label %67
67: ; preds = %73, %59
%68 = load i32, i32* %2
%69 = load i32, i32* %4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %76
71: ; preds = %67
%72 = call i32 (...) @mtsp()
br label %73
73: ; preds = %71
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %67
76: ; preds = %67
store double 0.000000e+00, double* %16
store double 0.000000e+00, double* %17
store i32 0, i32* @icpt
store i32 0, i32* %2
br label %77
77: ; preds = %125, %76
%78 = load i32, i32* %2
%79 = load i32, i32* %3
%80 = load i32, i32* %5
%81 = mul nsw i32 %79, %80
%82 = icmp slt i32 %78, %81
br i1 %82, label %83, label %128
83: ; preds = %77
%84 = call i32 (...) @mtsp()
%85 = load i32, i32* %2
%86 = load i32, i32* %5
%87 = srem i32 %85, %86
%88 = icmp eq i32 %87, 0
br i1 %88, label %89, label %124
89: ; preds = %83
%90 = load double, double* %16
%91 = load double, double* @x
%92 = load double, double* @x
%93 = fmul double %91, %92
%94 = load double, double* @x
%95 = load double, double* @x
%96 = fmul double %94, %95
%97 = call i32 @exp(double %96)
%98 = sub nsw i32 %97, 1
%99 = sitofp i32 %98 to double
%100 = fdiv double %93, %99
%101 = fadd double %90, %100
store double %101, double* %16
%102 = load double, double* %17
%103 = load double, double* @x
%104 = load double, double* @x
%105 = fmul double %103, %104
%106 = load double, double* @x
%107 = load double, double* @x
%108 = fmul double %106, %107
%109 = call i32 @exp(double %108)
%110 = sub nsw i32 %109, 1
%111 = sitofp i32 %110 to double
%112 = fdiv double %105, %111
%113 = load double, double* @x
%114 = load double, double* @x
%115 = fmul double %113, %114
%116 = load double, double* @x
%117 = load double, double* @x
%118 = fmul double %116, %117
%119 = call i32 @exp(double %118)
%120 = sub nsw i32 %119, 1
%121 = sitofp i32 %120 to double
%122 = fdiv double %115, %121
%123 = call double @llvm.fmuladd.f64(double %112, double %122, double %102)
store double %123, double* %17
br label %124
124: ; preds = %89, %83
br label %125
125: ; preds = %124
%126 = load i32, i32* %2
%127 = add nsw i32 %126, 1
store i32 %127, i32* %2
br label %77
128: ; preds = %77
%129 = load double, double* %15
%130 = load double, double* %16
%131 = fmul double %129, %130
%132 = load i32, i32* %3
%133 = sitofp i32 %132 to double
%134 = fdiv double %131, %133
store double %134, double* %18
%135 = load double, double* %15
%136 = load double, double* %17
%137 = load i32, i32* %3
%138 = sitofp i32 %137 to double
%139 = fdiv double %136, %138
%140 = load double, double* %16
%141 = load i32, i32* %3
%142 = sitofp i32 %141 to double
%143 = fdiv double %140, %142
%144 = load double, double* %16
%145 = load i32, i32* %3
%146 = sitofp i32 %145 to double
%147 = fdiv double %144, %146
%148 = fneg double %143
%149 = call double @llvm.fmuladd.f64(double %148, double %147, double %139)
%150 = call i32 @fabs(double %149)
%151 = load i32, i32* %3
%152 = sdiv i32 %150, %151
%153 = call double @sqrt(i32 %152)
%154 = fmul double %135, %153
store double %154, double* %19
%155 = load i32, i32* @icpt
%156 = sitofp i32 %155 to double
%157 = fmul double 1.000000e+02, %156
%158 = load i32, i32* %3
%159 = load i32, i32* %5
%160 = mul nsw i32 %158, %159
%161 = sitofp i32 %160 to double
%162 = fdiv double %157, %161
store double %162, double* %20
%163 = load double, double* %18
%164 = load double, double* %19
%165 = load double, double* %20
%166 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %163, double %164, double %165)
%167 = load i32, i32* %1
ret i32 %167
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32 }
@b = external global double
@iseed = external global i32
@x = external global double
@wt = external global double
@icpt = external global i32
@.str = [25 x i8] c"%16.8lf %16.8lf %16.8lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store double 4.000000e-01, double* @b
%3 = call i32 @time(i32* %1)
%4 = call %struct.tm* @gmtime(i32* %1)
%5 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 0
%6 = load i32, i32* %5
%7 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 1
%8 = load i32, i32* %7
%9 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 2
%10 = load i32, i32* %9
%11 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 3
%12 = load i32, i32* %11
%13 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 4
%14 = load i32, i32* %13
%15 = getelementptr inbounds %struct.tm, %struct.tm* %4, i64 0, i32 5
%16 = load i32, i32* %15
%17 = mul nsw i32 %6, 59
%18 = add nsw i32 %8, %17
%19 = mul nsw i32 %18, 23
%20 = add nsw i32 %19, %10
%21 = mul nsw i32 %20, 31
%22 = add nsw i32 %21, %12
%23 = mul nsw i32 %22, 12
%24 = add nsw i32 %23, %14
%25 = mul nsw i32 %24, 70
%26 = add nsw i32 %25, %16
%27 = and i32 %26, 1
%28 = add i32 %26, -1
%29 = add i32 %28, %27
store i32 %29, i32* @iseed
%30 = call double (...) @ranf()
store double %30, double* @x
%31 = fmul double %30, %30
%32 = call i32 @exp(double %31)
%33 = add nsw i32 %32, -1
%34 = sitofp i32 %33 to double
store double %34, double* @wt
br label %35
35: ; preds = %0, %35
%36 = phi i32 [ 0, %0 ], [ %38, %35 ]
%37 = call i32 (...) @mtsp()
%38 = add nuw nsw i32 %36, 1
%39 = icmp eq i32 %38, 10000
br i1 %39, label %40, label %35
40: ; preds = %35
store i32 0, i32* @icpt
br label %41
41: ; preds = %40, %69
%42 = phi i32 [ 0, %40 ], [ %72, %69 ]
%43 = phi double [ 0.000000e+00, %40 ], [ %71, %69 ]
%44 = phi double [ 0.000000e+00, %40 ], [ %70, %69 ]
%45 = call i32 (...) @mtsp()
%46 = urem i32 %42, 15
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %69
48: ; preds = %41
%49 = load double, double* @x
%50 = fmul double %49, %49
%51 = call i32 @exp(double %50)
%52 = add nsw i32 %51, -1
%53 = sitofp i32 %52 to double
%54 = fdiv double %50, %53
%55 = fadd double %43, %54
%56 = load double, double* @x
%57 = fmul double %56, %56
%58 = call i32 @exp(double %57)
%59 = add nsw i32 %58, -1
%60 = sitofp i32 %59 to double
%61 = fdiv double %57, %60
%62 = load double, double* @x
%63 = fmul double %62, %62
%64 = call i32 @exp(double %63)
%65 = add nsw i32 %64, -1
%66 = sitofp i32 %65 to double
%67 = fdiv double %63, %66
%68 = call double @llvm.fmuladd.f64(double %61, double %67, double %44)
br label %69
69: ; preds = %41, %48
%70 = phi double [ %68, %48 ], [ %44, %41 ]
%71 = phi double [ %55, %48 ], [ %43, %41 ]
%72 = add nuw nsw i32 %42, 1
%73 = icmp eq i32 %72, 150000
br i1 %73, label %74, label %41
74: ; preds = %69
%75 = fmul double %71, 0x3FDD9C15C005BF07
%76 = fdiv double %75, 1.000000e+04
%77 = fdiv double %70, 1.000000e+04
%78 = fdiv double %71, 1.000000e+04
%79 = fneg double %78
%80 = call double @llvm.fmuladd.f64(double %79, double %78, double %77)
%81 = call i32 @fabs(double %80)
%82 = sdiv i32 %81, 10000
%83 = call double @sqrt(i32 %82)
%84 = fmul double %83, 0x3FDD9C15C005BF07
%85 = load i32, i32* @icpt
%86 = sitofp i32 %85 to double
%87 = fmul double %86, 1.000000e+02
%88 = fdiv double %87, 1.500000e+05
%89 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), double %76, double %84, double %88)
ret i32 0
}