#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 */
double exp(double);
double rnormal(int);
int rweibull(double, double);
double sqrt(double);
int rel_single_ecr(int id, int arg_bcr, int arg_sex, int arg_age,
                   int arg_sexor) {
  double befdur1;
  double befdur2;
  double befdur3;
  double befdur4;
  double befdur5;
  double befdur6;
  befdur1 = (double)(100 - arg_bcr) / 365;
  if (befdur1 >= 30) {
    befdur1 = 30;
  }
  befdur2 = befdur1 * befdur1;
  befdur3 = befdur2 * befdur1;
  befdur4 = befdur3 * befdur1;
  befdur5 = befdur4 * befdur1;
  befdur6 = befdur5 * befdur1;
  double mu;
  double sigma;
  mu = 31.7957032104883 + 0.243575821828405 * arg_sex -
       0.16357453436092 * arg_sexor + sqrt(0.510540557400565) * rnormal(id) -
       6.68293057847908 * arg_age + 0.54909519430458 * (arg_age * arg_age) -
       0.021909227574598 * (arg_age * arg_age * arg_age) +
       0.000427451560082975 * (arg_age * arg_age * arg_age * arg_age) -
       0.00000326795090171358 *
           (arg_age * arg_age * arg_age * arg_age * arg_age) +
       0.0500964076675074 * befdur1 - 0.0281480536301023 * befdur2 +
       0.00372041809520928 * befdur3 - 0.000223759143615591 * befdur4 +
       0.00000674808532236945 * befdur5 - 0.0000000835218749639112 * befdur6;
  sigma = -6.20642059757102 - 0.028527416744719 * arg_sex +
          0.0357281740921485 * arg_sexor + 1.11378838652714 * arg_age -
          0.067938761209021 * (arg_age * arg_age) +
          0.00182536653429785 * (arg_age * arg_age * arg_age) -
          0.0000224878375337562 * (arg_age * arg_age * arg_age * arg_age) +
          0.000000107834215112116 *
              (arg_age * arg_age * arg_age * arg_age * arg_age) +
          0.223925971786167 * befdur1 - 0.0616047635527968 * befdur2 +
          0.00984539583466668 * befdur3 - 0.000800891252438947 * befdur4 +
          0.000029931584033257 * befdur5 - 0.000000403677855052203 * befdur6;
  mu = exp(mu);
  sigma = exp(sigma);
  int dummy1 = rweibull(mu, sigma) * 360;
  int ecr = (int)dummy1;
  return (ecr);
}


x86 assembly (clang, -O0):
<rel_single_ecr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    $0x64,%eax
sub    -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe9c(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xe7e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1199 <rel_single_ecr+0x59>
movsd  0xe6c(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xef7(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xef3(%rip),%xmm0
addsd  %xmm0,%xmm1
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  0xed2(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xeb5(%rip),%xmm0
call   1060 <sqrt@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <rnormal@plt>
movsd  -0x70(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xe79(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xe56(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xe2f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xe04(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xdd5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xdb8(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xd9b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd7e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xd61(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xd44(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  0xd27(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xcfd(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcf9(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  0xcd8(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xcbb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xc98(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xc71(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xc46(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
imul   -0x10(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xc17(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  0xbfa(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xbdd(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xbc0(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xba3(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xb86(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movsd  0xb69(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
call   1050 <rweibull@plt>
imul   $0x168,%eax,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rel_single_ecr>:
push   %rbx
sub    $0x50,%rsp
mov    %ecx,%ebx
mov    $0x64,%eax
sub    %esi,%eax
cvtsi2sd %eax,%xmm0
divsd  0xeb6(%rip),%xmm0
movsd  0xeb6(%rip),%xmm3
minsd  %xmm0,%xmm3
movsd  %xmm3,0x20(%rsp)
movapd %xmm3,%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x28(%rsp)
movapd %xmm3,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movapd %xmm3,%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x40(%rsp)
movapd %xmm3,%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,0x30(%rsp)
movapd %xmm3,%xmm1
xorps  %xmm3,%xmm3
cvtsi2sd %edx,%xmm3
movsd  %xmm3,0x8(%rsp)
movsd  0xe63(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  0xe5f(%rip),%xmm0
xorps  %xmm3,%xmm3
cvtsi2sd %r8d,%xmm3
movsd  %xmm3,0x48(%rsp)
mulsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0xe47(%rip),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
call   1030 <rnormal@plt>
mulsd  0xe34(%rip),%xmm0
addsd  0x18(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
movsd  0xe27(%rip),%xmm3
mulsd  %xmm1,%xmm3
mov    %ebx,%eax
imul   %ebx,%eax
xorps  %xmm2,%xmm2
cvtsi2sd %eax,%xmm2
addsd  %xmm3,%xmm0
movsd  0xe13(%rip),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
imul   %ebx,%eax
xorps  %xmm3,%xmm3
cvtsi2sd %eax,%xmm3
movsd  0xe01(%rip),%xmm5
mulsd  %xmm3,%xmm5
imul   %ebx,%eax
cvtsi2sd %eax,%xmm4
addsd  %xmm5,%xmm0
movsd  0xdf2(%rip),%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm5,%xmm0
imul   %ebx,%eax
xorps  %xmm5,%xmm5
cvtsi2sd %eax,%xmm5
movsd  0xde0(%rip),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm6,%xmm0
movsd  0xdd8(%rip),%xmm6
movsd  0x20(%rsp),%xmm12
mulsd  %xmm12,%xmm6
addsd  %xmm6,%xmm0
movsd  0xdc8(%rip),%xmm6
movsd  0x28(%rsp),%xmm10
mulsd  %xmm10,%xmm6
addsd  %xmm6,%xmm0
movsd  0xdb8(%rip),%xmm6
movsd  0x38(%rsp),%xmm9
mulsd  %xmm9,%xmm6
addsd  %xmm6,%xmm0
movsd  0xda8(%rip),%xmm6
movsd  0x40(%rsp),%xmm8
mulsd  %xmm8,%xmm6
addsd  %xmm6,%xmm0
movsd  0xd98(%rip),%xmm6
movsd  0x30(%rsp),%xmm11
mulsd  %xmm11,%xmm6
addsd  %xmm6,%xmm0
movsd  0xd88(%rip),%xmm6
movsd  0x10(%rsp),%xmm13
mulsd  %xmm13,%xmm6
addsd  %xmm6,%xmm0
movsd  0x8(%rsp),%xmm6
mulsd  0xd72(%rip),%xmm6
addsd  0xd72(%rip),%xmm6
movsd  0x48(%rsp),%xmm7
mulsd  0xd6c(%rip),%xmm7
mulsd  0xd6c(%rip),%xmm1
addsd  %xmm6,%xmm7
addsd  %xmm7,%xmm1
mulsd  0xd64(%rip),%xmm2
addsd  %xmm1,%xmm2
mulsd  0xd60(%rip),%xmm3
addsd  %xmm2,%xmm3
mulsd  0xd5c(%rip),%xmm4
mulsd  0xd5c(%rip),%xmm5
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm5
movapd %xmm12,%xmm1
mulsd  0xd4f(%rip),%xmm1
addsd  %xmm5,%xmm1
movapd %xmm1,%xmm2
movapd %xmm10,%xmm1
mulsd  0xd42(%rip),%xmm1
addsd  %xmm2,%xmm1
movapd %xmm1,%xmm2
movapd %xmm9,%xmm3
mulsd  0xd35(%rip),%xmm3
movapd %xmm8,%xmm1
mulsd  0xd30(%rip),%xmm1
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm1
movapd %xmm1,%xmm2
movapd %xmm11,%xmm1
mulsd  0xd1f(%rip),%xmm1
addsd  %xmm2,%xmm1
movapd %xmm1,%xmm2
movapd %xmm13,%xmm1
mulsd  0xd12(%rip),%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,0x10(%rsp)
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  0x8(%rsp),%xmm0
call   1050 <rweibull@plt>
imul   $0x168,%eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @rel_single_ecr(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%21 = load i32, i32* %7
%22 = sub nsw i32 100, %21
%23 = sitofp i32 %22 to double
%24 = fdiv double %23, 3.650000e+02
store double %24, double* %11
%25 = load double, double* %11
%26 = fcmp oge double %25, 3.000000e+01
br i1 %26, label %27, label %28
27: ; preds = %5
store double 3.000000e+01, double* %11
br label %28
28: ; preds = %27, %5
%29 = load double, double* %11
%30 = load double, double* %11
%31 = fmul double %29, %30
store double %31, double* %12
%32 = load double, double* %12
%33 = load double, double* %11
%34 = fmul double %32, %33
store double %34, double* %13
%35 = load double, double* %13
%36 = load double, double* %11
%37 = fmul double %35, %36
store double %37, double* %14
%38 = load double, double* %14
%39 = load double, double* %11
%40 = fmul double %38, %39
store double %40, double* %15
%41 = load double, double* %15
%42 = load double, double* %11
%43 = fmul double %41, %42
store double %43, double* %16
%44 = load i32, i32* %8
%45 = sitofp i32 %44 to double
%46 = call double @llvm.fmuladd.f64(double 0x3FCF2D7E166CB699, double %45, double 0x403FCBB334A25E94)
%47 = load i32, i32* %10
%48 = sitofp i32 %47 to double
%49 = call double @llvm.fmuladd.f64(double 0xBFC4F002A5C4F02E, double %48, double %46)
%50 = call double @sqrt(double 0x3FE0565926AA252C)
%51 = load i32, i32* %6
%52 = call double @rnormal(i32 %51)
%53 = call double @llvm.fmuladd.f64(double %50, double %52, double %49)
%54 = load i32, i32* %9
%55 = sitofp i32 %54 to double
%56 = call double @llvm.fmuladd.f64(double 0xC01ABB5227500627, double %55, double %53)
%57 = load i32, i32* %9
%58 = load i32, i32* %9
%59 = mul nsw i32 %57, %58
%60 = sitofp i32 %59 to double
%61 = call double @llvm.fmuladd.f64(double 0x3FE1923015BDB9D9, double %60, double %56)
%62 = load i32, i32* %9
%63 = load i32, i32* %9
%64 = mul nsw i32 %62, %63
%65 = load i32, i32* %9
%66 = mul nsw i32 %64, %65
%67 = sitofp i32 %66 to double
%68 = call double @llvm.fmuladd.f64(double 0xBF966F5F5FA771BD, double %67, double %61)
%69 = load i32, i32* %9
%70 = load i32, i32* %9
%71 = mul nsw i32 %69, %70
%72 = load i32, i32* %9
%73 = mul nsw i32 %71, %72
%74 = load i32, i32* %9
%75 = mul nsw i32 %73, %74
%76 = sitofp i32 %75 to double
%77 = call double @llvm.fmuladd.f64(double 0x3F3C0372789F49F9, double %76, double %68)
%78 = load i32, i32* %9
%79 = load i32, i32* %9
%80 = mul nsw i32 %78, %79
%81 = load i32, i32* %9
%82 = mul nsw i32 %80, %81
%83 = load i32, i32* %9
%84 = mul nsw i32 %82, %83
%85 = load i32, i32* %9
%86 = mul nsw i32 %84, %85
%87 = sitofp i32 %86 to double
%88 = call double @llvm.fmuladd.f64(double 0xBECB69DF01F9C762, double %87, double %77)
%89 = load double, double* %11
%90 = call double @llvm.fmuladd.f64(double 0x3FA9A63C81287659, double %89, double %88)
%91 = load double, double* %12
%92 = call double @llvm.fmuladd.f64(double 0xBF9CD2D7E7263D5D, double %91, double %90)
%93 = load double, double* %13
%94 = call double @llvm.fmuladd.f64(double 0x3F6E7A48417BDDEE, double %93, double %92)
%95 = load double, double* %14
%96 = call double @llvm.fmuladd.f64(double 0xBF2D541C6873FD57, double %95, double %94)
%97 = load double, double* %15
%98 = call double @llvm.fmuladd.f64(double 0x3EDC4DB391BD2644, double %97, double %96)
%99 = load double, double* %16
%100 = call double @llvm.fmuladd.f64(double 0xBE766B945CF6FA3A, double %99, double %98)
store double %100, double* %17
%101 = load i32, i32* %8
%102 = sitofp i32 %101 to double
%103 = call double @llvm.fmuladd.f64(double 0xBF9D364A87D4EBD6, double %102, double 0xC018D35FEBCF273A)
%104 = load i32, i32* %10
%105 = sitofp i32 %104 to double
%106 = call double @llvm.fmuladd.f64(double 0x3FA24AF6968B0B86, double %105, double %103)
%107 = load i32, i32* %9
%108 = sitofp i32 %107 to double
%109 = call double @llvm.fmuladd.f64(double 0x3FF1D213C56CC75E, double %108, double %106)
%110 = load i32, i32* %9
%111 = load i32, i32* %9
%112 = mul nsw i32 %110, %111
%113 = sitofp i32 %112 to double
%114 = call double @llvm.fmuladd.f64(double 0xBFB1646F45860401, double %113, double %109)
%115 = load i32, i32* %9
%116 = load i32, i32* %9
%117 = mul nsw i32 %115, %116
%118 = load i32, i32* %9
%119 = mul nsw i32 %117, %118
%120 = sitofp i32 %119 to double
%121 = call double @llvm.fmuladd.f64(double 0x3F5DE824645A797C, double %120, double %114)
%122 = load i32, i32* %9
%123 = load i32, i32* %9
%124 = mul nsw i32 %122, %123
%125 = load i32, i32* %9
%126 = mul nsw i32 %124, %125
%127 = load i32, i32* %9
%128 = mul nsw i32 %126, %127
%129 = sitofp i32 %128 to double
%130 = call double @llvm.fmuladd.f64(double 0xBEF794886DA16486, double %129, double %121)
%131 = load i32, i32* %9
%132 = load i32, i32* %9
%133 = mul nsw i32 %131, %132
%134 = load i32, i32* %9
%135 = mul nsw i32 %133, %134
%136 = load i32, i32* %9
%137 = mul nsw i32 %135, %136
%138 = load i32, i32* %9
%139 = mul nsw i32 %137, %138
%140 = sitofp i32 %139 to double
%141 = call double @llvm.fmuladd.f64(double 0x3E7CF24F92FF28C0, double %140, double %130)
%142 = load double, double* %11
%143 = call double @llvm.fmuladd.f64(double 0x3FCCA99B32C5F72F, double %142, double %141)
%144 = load double, double* %12
%145 = call double @llvm.fmuladd.f64(double 0xBFAF8AA8D97961E6, double %144, double %143)
%146 = load double, double* %13
%147 = call double @llvm.fmuladd.f64(double 0x3F8429D2A9022FF2, double %146, double %145)
%148 = load double, double* %14
%149 = call double @llvm.fmuladd.f64(double 0xBF4A3E5CDE5202A7, double %148, double %147)
%150 = load double, double* %15
%151 = call double @llvm.fmuladd.f64(double 0x3EFF62B2CAEAC8F0, double %150, double %149)
%152 = load double, double* %16
%153 = call double @llvm.fmuladd.f64(double 0xBE9B1721FB65D009, double %152, double %151)
store double %153, double* %18
%154 = load double, double* %17
%155 = call double @exp(double %154)
store double %155, double* %17
%156 = load double, double* %18
%157 = call double @exp(double %156)
store double %157, double* %18
%158 = load double, double* %17
%159 = load double, double* %18
%160 = call i32 @rweibull(double %158, double %159)
%161 = mul nsw i32 %160, 360
store i32 %161, i32* %19
%162 = load i32, i32* %19
store i32 %162, i32* %20
%163 = load i32, i32* %20
ret i32 %163
}

LLVM IR (-O2):
define i32 @rel_single_ecr(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = sub nsw i32 100, %1
%7 = sitofp i32 %6 to double
%8 = fdiv double %7, 3.650000e+02
%9 = fcmp oge double %8, 3.000000e+01
%10 = select i1 %9, double 3.000000e+01, double %8
%11 = fmul double %10, %10
%12 = fmul double %10, %11
%13 = fmul double %10, %12
%14 = fmul double %10, %13
%15 = fmul double %10, %14
%16 = sitofp i32 %2 to double
%17 = tail call double @llvm.fmuladd.f64(double %16, double 0x3FCF2D7E166CB699, double 0x403FCBB334A25E94)
%18 = sitofp i32 %4 to double
%19 = tail call double @llvm.fmuladd.f64(double %18, double 0xBFC4F002A5C4F02E, double %17)
%20 = tail call double @rnormal(i32 %0)
%21 = tail call double @llvm.fmuladd.f64(double %20, double 0x3FE6DD5B94DA32E8, double %19)
%22 = sitofp i32 %3 to double
%23 = tail call double @llvm.fmuladd.f64(double %22, double 0xC01ABB5227500627, double %21)
%24 = mul nsw i32 %3, %3
%25 = sitofp i32 %24 to double
%26 = tail call double @llvm.fmuladd.f64(double %25, double 0x3FE1923015BDB9D9, double %23)
%27 = mul nsw i32 %24, %3
%28 = sitofp i32 %27 to double
%29 = tail call double @llvm.fmuladd.f64(double %28, double 0xBF966F5F5FA771BD, double %26)
%30 = mul nsw i32 %27, %3
%31 = sitofp i32 %30 to double
%32 = tail call double @llvm.fmuladd.f64(double %31, double 0x3F3C0372789F49F9, double %29)
%33 = mul nsw i32 %30, %3
%34 = sitofp i32 %33 to double
%35 = tail call double @llvm.fmuladd.f64(double %34, double 0xBECB69DF01F9C762, double %32)
%36 = tail call double @llvm.fmuladd.f64(double %10, double 0x3FA9A63C81287659, double %35)
%37 = tail call double @llvm.fmuladd.f64(double %11, double 0xBF9CD2D7E7263D5D, double %36)
%38 = tail call double @llvm.fmuladd.f64(double %12, double 0x3F6E7A48417BDDEE, double %37)
%39 = tail call double @llvm.fmuladd.f64(double %13, double 0xBF2D541C6873FD57, double %38)
%40 = tail call double @llvm.fmuladd.f64(double %14, double 0x3EDC4DB391BD2644, double %39)
%41 = tail call double @llvm.fmuladd.f64(double %15, double 0xBE766B945CF6FA3A, double %40)
%42 = tail call double @llvm.fmuladd.f64(double %16, double 0xBF9D364A87D4EBD6, double 0xC018D35FEBCF273A)
%43 = tail call double @llvm.fmuladd.f64(double %18, double 0x3FA24AF6968B0B86, double %42)
%44 = tail call double @llvm.fmuladd.f64(double %22, double 0x3FF1D213C56CC75E, double %43)
%45 = tail call double @llvm.fmuladd.f64(double %25, double 0xBFB1646F45860401, double %44)
%46 = tail call double @llvm.fmuladd.f64(double %28, double 0x3F5DE824645A797C, double %45)
%47 = tail call double @llvm.fmuladd.f64(double %31, double 0xBEF794886DA16486, double %46)
%48 = tail call double @llvm.fmuladd.f64(double %34, double 0x3E7CF24F92FF28C0, double %47)
%49 = tail call double @llvm.fmuladd.f64(double %10, double 0x3FCCA99B32C5F72F, double %48)
%50 = tail call double @llvm.fmuladd.f64(double %11, double 0xBFAF8AA8D97961E6, double %49)
%51 = tail call double @llvm.fmuladd.f64(double %12, double 0x3F8429D2A9022FF2, double %50)
%52 = tail call double @llvm.fmuladd.f64(double %13, double 0xBF4A3E5CDE5202A7, double %51)
%53 = tail call double @llvm.fmuladd.f64(double %14, double 0x3EFF62B2CAEAC8F0, double %52)
%54 = tail call double @llvm.fmuladd.f64(double %15, double 0xBE9B1721FB65D009, double %53)
%55 = tail call double @exp(double %41)
%56 = tail call double @exp(double %54)
%57 = tail call i32 @rweibull(double %55, double %56)
%58 = mul nsw i32 %57, 360
ret i32 %58
}