#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 pow(double, double);
double cvd_female_raw(int b_AF, int b_ra, int b_renal, int b_treatedhyp,
                      int b_type2, double bmi, int ethrisk, int fh_cvd,
                      double rati, double sbp, int smoke_cat, double town) {
  double a;
  double Iethrisk[10] = {0,
                         0,
                         0.3519781359171325100000000,
                         0.7125701233074622800000000,
                         0.4744736904914790800000000,
                         0.1277734031153024400000000,
                         0.0276815264451465880000000,
                         -0.3676643548251001300000000,
                         -0.2636321488403285400000000,
                         -0.0064333267101571784000000};
  double Ismoke[5] = {0, 0.1609363217948046300000000,
                      0.3282477751045009300000000, 0.4541679502935254700000000,
                      0.6076275665698729300000000};
  double dbmi = bmi;
  double bmi_1;
  dbmi = dbmi / 10;
  bmi_1 = pow(dbmi, .5);
  bmi_1 = bmi_1 - 1.605074524879456;
  rati = rati - 3.705839872360230;
  sbp = sbp - 129.823593139648440;
  town = town - -0.301369071006775;
  a = 0;
  a += Iethrisk[ethrisk];
  a += Ismoke[smoke_cat];
  a += bmi_1 * 0.2813726290228962300000000;
  a += rati * 0.1551217926855477100000000;
  a += sbp * 0.0062458135965802464000000;
  a += town * 0.0239763590547845720000000;
  a += b_AF * 0.6363540037072725800000000;
  a += b_ra * 0.3607328778130438100000000;
  a += b_renal * 0.5144859684018359100000000;
  a += b_treatedhyp * 0.2825312388249602800000000;
  a += b_type2 * 0.5114309272510256800000000;
  a += fh_cvd * 0.5135507323965317100000000;
  return a;
}


x86 assembly (clang, -O0):
<cvd_female_raw>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movsd  %xmm1,-0x30(%rbp)
movsd  %xmm2,-0x38(%rbp)
movsd  %xmm3,-0x40(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xf29(%rip),%rsi
mov    $0x50,%edx
call   1040 <memcpy@plt>
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movsd  0xefc(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xee4(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0xecc(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0xeb4(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0xe87(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  0xe63(%rip),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  0xe3e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  0xe1d(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xdff(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  0xde1(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movslq -0x24(%rbp),%rax
movsd  -0xa0(%rbp,%rax,8),%xmm0
ff ff
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movslq 0x18(%rbp),%rax
movsd  -0xd0(%rbp,%rax,8),%xmm0
ff ff
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm1
movsd  0xd85(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xd5e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xd37(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xd10(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xce9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xcc2(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xc9b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xc74(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xc4d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl 0x10(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xc26(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cvd_female_raw>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
mov    %r9d,%ebp
mov    %r8d,0x4(%rsp)
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %esi,%r13d
mov    %edi,%ebx
movslq 0x88(%rsp),%r14
xorps  %xmm1,%xmm1
movaps %xmm1,0x20(%rsp)
movaps 0xea6(%rip),%xmm1
movups %xmm1,0x28(%rsp)
movaps 0xeaa(%rip),%xmm1
movups %xmm1,0x38(%rsp)
divsd  0xead(%rip),%xmm0
movsd  0xead(%rip),%xmm1
call   1030 <pow@plt>
addsd  0xea8(%rip),%xmm0
movsd  0x8(%rsp),%xmm4
addsd  0xea2(%rip),%xmm4
movsd  0x10(%rsp),%xmm2
addsd  0xe9c(%rip),%xmm2
movsd  0x18(%rsp),%xmm3
addsd  0xe96(%rip),%xmm3
movslq %ebp,%rax
lea    0xee4(%rip),%rcx
xorpd  %xmm1,%xmm1
addsd  (%rcx,%rax,8),%xmm1
addsd  0x20(%rsp,%r14,8),%xmm1
mulsd  0xe7c(%rip),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm4,%xmm1
mulsd  0xe74(%rip),%xmm1
addsd  %xmm1,%xmm0
mulsd  0xe70(%rip),%xmm2
movapd %xmm3,%xmm1
mulsd  0xe6c(%rip),%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
mulsd  0xe5d(%rip),%xmm1
xorps  %xmm2,%xmm2
cvtsi2sd %r13d,%xmm2
addsd  %xmm1,%xmm0
mulsd  0xe51(%rip),%xmm2
addsd  %xmm2,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %r12d,%xmm1
mulsd  0xe45(%rip),%xmm1
xorps  %xmm2,%xmm2
cvtsi2sd %r15d,%xmm2
mulsd  0xe3d(%rip),%xmm2
addsd  %xmm1,%xmm0
addsd  %xmm2,%xmm0
xorps  %xmm1,%xmm1
cvtsi2sdl 0x4(%rsp),%xmm1
mulsd  0xe2c(%rip),%xmm1
xorps  %xmm2,%xmm2
cvtsi2sdl 0x80(%rsp),%xmm2
addsd  %xmm1,%xmm0
mulsd  0xe1c(%rip),%xmm2
addsd  %xmm2,%xmm0
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.cvd_female_raw.Iethrisk = [10 x double] [double 0.000000e+00, double 0.000000e+00, double 0x3FD686CF4DAAF3BF, double 0x3FE6CD5FDBF6CAA7, double 0x3FDE5DC6E5DE4B05, double 0x3FC05AE0FDD6E482, double 0x3F9C588BCB241C2D, double 0xBFD787D012F83D5B, double 0xBFD0DF59605C60EB, double 0xBF7A59D4FD319887]
define double @cvd_female_raw(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5, i32 %6, i32 %7, double %8, double %9, i32 %10, double %11) {
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca i32
%20 = alloca i32
%21 = alloca double
%22 = alloca double
%23 = alloca i32
%24 = alloca double
%25 = alloca double
%26 = alloca [10 x double]
%27 = alloca [5 x double]
%28 = alloca double
%29 = alloca double
store i32 %0, i32* %13
store i32 %1, i32* %14
store i32 %2, i32* %15
store i32 %3, i32* %16
store i32 %4, i32* %17
store double %5, double* %18
store i32 %6, i32* %19
store i32 %7, i32* %20
store double %8, double* %21
store double %9, double* %22
store i32 %10, i32* %23
store double %11, double* %24
%30 = bitcast [10 x double]* %26 to i8*
%31 = bitcast [5 x double]* %27 to i8*
%32 = bitcast i8* %31 to [5 x double]*
%33 = getelementptr inbounds [5 x double], [5 x double]* %32, i32 0, i32 1
store double 0x3FC4998FB76C71A3, double* %33
%34 = getelementptr inbounds [5 x double], [5 x double]* %32, i32 0, i32 2
store double 0x3FD50202F4C3C003, double* %34
%35 = getelementptr inbounds [5 x double], [5 x double]* %32, i32 0, i32 3
store double 0x3FDD11167359BB1D, double* %35
%36 = getelementptr inbounds [5 x double], [5 x double]* %32, i32 0, i32 4
store double 0x3FE371AF5DD219F2, double* %36
%37 = load double, double* %18
store double %37, double* %28
%38 = load double, double* %28
%39 = fdiv double %38, 1.000000e+01
store double %39, double* %28
%40 = load double, double* %28
%41 = call double @pow(double %40, double 5.000000e-01)
store double %41, double* %29
%42 = load double, double* %29
%43 = fsub double %42, 0x3FF9AE62A0000002
store double %43, double* %29
%44 = load double, double* %21
%45 = fsub double %44, 0x400DA58F60000001
store double %45, double* %21
%46 = load double, double* %22
%47 = fsub double %46, 0x40603A5AE0000000
store double %47, double* %22
%48 = load double, double* %24
%49 = fsub double %48, 0xBFD349A180000002
store double %49, double* %24
store double 0.000000e+00, double* %25
%50 = load i32, i32* %19
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [10 x double], [10 x double]* %26, i64 0, i64 %51
%53 = load double, double* %52
%54 = load double, double* %25
%55 = fadd double %54, %53
store double %55, double* %25
%56 = load i32, i32* %23
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [5 x double], [5 x double]* %27, i64 0, i64 %57
%59 = load double, double* %58
%60 = load double, double* %25
%61 = fadd double %60, %59
store double %61, double* %25
%62 = load double, double* %29
%63 = load double, double* %25
%64 = call double @llvm.fmuladd.f64(double %62, double 0x3FD2020257E924F1, double %63)
store double %64, double* %25
%65 = load double, double* %21
%66 = load double, double* %25
%67 = call double @llvm.fmuladd.f64(double %65, double 0x3FC3DB07E93D9BE0, double %66)
store double %67, double* %25
%68 = load double, double* %22
%69 = load double, double* %25
%70 = call double @llvm.fmuladd.f64(double %68, double 0x3F799535D225C860, double %69)
store double %70, double* %25
%71 = load double, double* %24
%72 = load double, double* %25
%73 = call double @llvm.fmuladd.f64(double %71, double 0x3F988D423811DF41, double %72)
store double %73, double* %25
%74 = load i32, i32* %13
%75 = sitofp i32 %74 to double
%76 = load double, double* %25
%77 = call double @llvm.fmuladd.f64(double %75, double 0x3FE45D0312533EA8, double %76)
store double %77, double* %25
%78 = load i32, i32* %14
%79 = sitofp i32 %78 to double
%80 = load double, double* %25
%81 = call double @llvm.fmuladd.f64(double %79, double 0x3FD7163F5A33229B, double %80)
store double %81, double* %25
%82 = load i32, i32* %15
%83 = sitofp i32 %82 to double
%84 = load double, double* %25
%85 = call double @llvm.fmuladd.f64(double %83, double 0x3FE076AB47112D42, double %84)
store double %85, double* %25
%86 = load i32, i32* %16
%87 = sitofp i32 %86 to double
%88 = load double, double* %25
%89 = call double @llvm.fmuladd.f64(double %87, double 0x3FD214FDE7B6801F, double %88)
store double %89, double* %25
%90 = load i32, i32* %17
%91 = sitofp i32 %90 to double
%92 = load double, double* %25
%93 = call double @llvm.fmuladd.f64(double %91, double 0x3FE05DA464569875, double %92)
store double %93, double* %25
%94 = load i32, i32* %20
%95 = sitofp i32 %94 to double
%96 = load double, double* %25
%97 = call double @llvm.fmuladd.f64(double %95, double 0x3FE06F01F20F5BC3, double %96)
store double %97, double* %25
%98 = load double, double* %25
ret double %98
}

LLVM IR (-O2):
@__const.cvd_female_raw.Iethrisk = [10 x double] [double 0.000000e+00, double 0.000000e+00, double 0x3FD686CF4DAAF3BF, double 0x3FE6CD5FDBF6CAA7, double 0x3FDE5DC6E5DE4B05, double 0x3FC05AE0FDD6E482, double 0x3F9C588BCB241C2D, double 0xBFD787D012F83D5B, double 0xBFD0DF59605C60EB, double 0xBF7A59D4FD319887]
define double @cvd_female_raw(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5, i32 %6, i32 %7, double %8, double %9, i32 %10, double %11) {
%13 = alloca [5 x double]
%14 = bitcast [5 x double]* %13 to i8*
%15 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 1
%16 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 0x3FC4998FB76C71A3, double 0x3FD50202F4C3C003>, <2 x double>* %16
%17 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 3
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 0x3FDD11167359BB1D, double 0x3FE371AF5DD219F2>, <2 x double>* %18
%19 = fdiv double %5, 1.000000e+01
%20 = tail call double @pow(double %19, double 5.000000e-01)
%21 = fadd double %20, 0xBFF9AE62A0000002
%22 = fadd double %8, 0xC00DA58F60000001
%23 = fadd double %9, 0xC0603A5AE0000000
%24 = fadd double %11, 0x3FD349A180000002
%25 = sext i32 %6 to i64
%26 = getelementptr inbounds [10 x double], [10 x double]* @__const.cvd_female_raw.Iethrisk, i64 0, i64 %25
%27 = load double, double* %26
%28 = fadd double %27, 0.000000e+00
%29 = sext i32 %10 to i64
%30 = getelementptr inbounds [5 x double], [5 x double]* %13, i64 0, i64 %29
%31 = load double, double* %30
%32 = fadd double %28, %31
%33 = tail call double @llvm.fmuladd.f64(double %21, double 0x3FD2020257E924F1, double %32)
%34 = tail call double @llvm.fmuladd.f64(double %22, double 0x3FC3DB07E93D9BE0, double %33)
%35 = tail call double @llvm.fmuladd.f64(double %23, double 0x3F799535D225C860, double %34)
%36 = tail call double @llvm.fmuladd.f64(double %24, double 0x3F988D423811DF41, double %35)
%37 = sitofp i32 %0 to double
%38 = tail call double @llvm.fmuladd.f64(double %37, double 0x3FE45D0312533EA8, double %36)
%39 = sitofp i32 %1 to double
%40 = tail call double @llvm.fmuladd.f64(double %39, double 0x3FD7163F5A33229B, double %38)
%41 = sitofp i32 %2 to double
%42 = tail call double @llvm.fmuladd.f64(double %41, double 0x3FE076AB47112D42, double %40)
%43 = sitofp i32 %3 to double
%44 = tail call double @llvm.fmuladd.f64(double %43, double 0x3FD214FDE7B6801F, double %42)
%45 = sitofp i32 %4 to double
%46 = tail call double @llvm.fmuladd.f64(double %45, double 0x3FE05DA464569875, double %44)
%47 = sitofp i32 %7 to double
%48 = tail call double @llvm.fmuladd.f64(double %47, double 0x3FE06F01F20F5BC3, double %46)
ret double %48
}