#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 pow(double, double);
void computeVariables(double voi, double *states, double *rates,
                      double *variables) {
  variables[7] = variables[0] * (states[3] - variables[6]);
  variables[9] = variables[4] * pow(states[0], 3.0) * states[1] *
                 (states[3] - variables[8]);
  variables[10] =
      0.1 * (states[3] + 25.0) / (exp((states[3] + 25.0) / 10.0) - 1.0);
  variables[11] = 4.0 * exp(states[3] / 18.0);
  variables[12] = 0.07 * exp(states[3] / 20.0);
  variables[13] = 1.0 / (exp((states[3] + 30.0) / 10.0) + 1.0);
  variables[15] =
      variables[3] * pow(states[2], 4.0) * (states[3] - variables[14]);
  variables[16] =
      0.01 * (states[3] + 10.0) / (exp((states[3] + 10.0) / 10.0) - 1.0);
  variables[17] = 0.125 * exp(states[3] / 80.0);
}


x86 assembly (clang, -O0):
<computeVariables>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x20(%rbp),%rax
subsd  0x30(%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x20(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xee2(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x20(%rbp),%rax
subsd  0x40(%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0xe8d(%rip),%xmm1
addsd  0x18(%rax),%xmm1
movsd  0xe88(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xe6b(%rip),%xmm0
addsd  0x18(%rax),%xmm0
movsd  0xe26(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
movsd  0xe05(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  0xe1b(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xde7(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  0xde1(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xdc5(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0xda4(%rip),%xmm0
addsd  0x18(%rax),%xmm0
movsd  0xd7f(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xd63(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xd57(%rip),%xmm0
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  0xd43(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x20(%rbp),%rax
subsd  0x70(%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%rax)
mov    -0x10(%rbp),%rax
movsd  0xcf7(%rip),%xmm1
addsd  0x18(%rax),%xmm1
movsd  0xcf2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movsd  0xcd5(%rip),%xmm0
addsd  0x18(%rax),%xmm0
movsd  0xcc8(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xca7(%rip),%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x80(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  0xc7a(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xc5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x88(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<computeVariables>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %rdi,%r14
movsd  0x18(%rdi),%xmm0
subsd  0x30(%rdx),%xmm0
mulsd  (%rdx),%xmm0
movsd  %xmm0,0x38(%rdx)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,(%rsp)
movsd  (%rdi),%xmm0
movsd  0xead(%rip),%xmm1
call   1040 <pow@plt>
mulsd  (%rsp),%xmm0
mulsd  0x8(%r14),%xmm0
movsd  0x18(%r14),%xmm1
subsd  0x40(%rbx),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x48(%rbx)
movsd  0x18(%r14),%xmm0
addsd  0xe83(%rip),%xmm0
movsd  0xe83(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rsp)
divsd  0xe7a(%rip),%xmm0
call   1030 <exp@plt>
addsd  0xe75(%rip),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x50(%rbx)
movsd  0x18(%r14),%xmm0
divsd  0xe61(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xe5c(%rip),%xmm0
movsd  %xmm0,0x58(%rbx)
movsd  0x18(%r14),%xmm0
divsd  0xe51(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xe4c(%rip),%xmm0
movsd  %xmm0,0x60(%rbx)
movsd  0x18(%r14),%xmm0
addsd  0xe41(%rip),%xmm0
divsd  0xe09(%rip),%xmm0
call   1030 <exp@plt>
movsd  0xe34(%rip),%xmm1
addsd  %xmm1,%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x68(%rbx)
movsd  0x18(%rbx),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%r14),%xmm0
movsd  0xdef(%rip),%xmm1
call   1040 <pow@plt>
movsd  0x18(%r14),%xmm1
subsd  0x70(%rbx),%xmm1
mulsd  (%rsp),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x78(%rbx)
movsd  0x18(%r14),%xmm0
movsd  0xdab(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xddf(%rip),%xmm2
mulsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
addsd  0xd8d(%rip),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x80(%rbx)
movsd  0x18(%r14),%xmm0
divsd  0xdae(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xda9(%rip),%xmm0
movsd  %xmm0,0x88(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @computeVariables(double %0, double* %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
store double %0, double* %5
store double* %1, double** %6
store double* %2, double** %7
store double* %3, double** %8
%9 = load double*, double** %8
%10 = getelementptr inbounds double, double* %9, i64 0
%11 = load double, double* %10
%12 = load double*, double** %6
%13 = getelementptr inbounds double, double* %12, i64 3
%14 = load double, double* %13
%15 = load double*, double** %8
%16 = getelementptr inbounds double, double* %15, i64 6
%17 = load double, double* %16
%18 = fsub double %14, %17
%19 = fmul double %11, %18
%20 = load double*, double** %8
%21 = getelementptr inbounds double, double* %20, i64 7
store double %19, double* %21
%22 = load double*, double** %8
%23 = getelementptr inbounds double, double* %22, i64 4
%24 = load double, double* %23
%25 = load double*, double** %6
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double, double* %26
%28 = call double @pow(double %27, double 3.000000e+00)
%29 = fmul double %24, %28
%30 = load double*, double** %6
%31 = getelementptr inbounds double, double* %30, i64 1
%32 = load double, double* %31
%33 = fmul double %29, %32
%34 = load double*, double** %6
%35 = getelementptr inbounds double, double* %34, i64 3
%36 = load double, double* %35
%37 = load double*, double** %8
%38 = getelementptr inbounds double, double* %37, i64 8
%39 = load double, double* %38
%40 = fsub double %36, %39
%41 = fmul double %33, %40
%42 = load double*, double** %8
%43 = getelementptr inbounds double, double* %42, i64 9
store double %41, double* %43
%44 = load double*, double** %6
%45 = getelementptr inbounds double, double* %44, i64 3
%46 = load double, double* %45
%47 = fadd double %46, 2.500000e+01
%48 = fmul double 1.000000e-01, %47
%49 = load double*, double** %6
%50 = getelementptr inbounds double, double* %49, i64 3
%51 = load double, double* %50
%52 = fadd double %51, 2.500000e+01
%53 = fdiv double %52, 1.000000e+01
%54 = call double @exp(double %53)
%55 = fsub double %54, 1.000000e+00
%56 = fdiv double %48, %55
%57 = load double*, double** %8
%58 = getelementptr inbounds double, double* %57, i64 10
store double %56, double* %58
%59 = load double*, double** %6
%60 = getelementptr inbounds double, double* %59, i64 3
%61 = load double, double* %60
%62 = fdiv double %61, 1.800000e+01
%63 = call double @exp(double %62)
%64 = fmul double 4.000000e+00, %63
%65 = load double*, double** %8
%66 = getelementptr inbounds double, double* %65, i64 11
store double %64, double* %66
%67 = load double*, double** %6
%68 = getelementptr inbounds double, double* %67, i64 3
%69 = load double, double* %68
%70 = fdiv double %69, 2.000000e+01
%71 = call double @exp(double %70)
%72 = fmul double 7.000000e-02, %71
%73 = load double*, double** %8
%74 = getelementptr inbounds double, double* %73, i64 12
store double %72, double* %74
%75 = load double*, double** %6
%76 = getelementptr inbounds double, double* %75, i64 3
%77 = load double, double* %76
%78 = fadd double %77, 3.000000e+01
%79 = fdiv double %78, 1.000000e+01
%80 = call double @exp(double %79)
%81 = fadd double %80, 1.000000e+00
%82 = fdiv double 1.000000e+00, %81
%83 = load double*, double** %8
%84 = getelementptr inbounds double, double* %83, i64 13
store double %82, double* %84
%85 = load double*, double** %8
%86 = getelementptr inbounds double, double* %85, i64 3
%87 = load double, double* %86
%88 = load double*, double** %6
%89 = getelementptr inbounds double, double* %88, i64 2
%90 = load double, double* %89
%91 = call double @pow(double %90, double 4.000000e+00)
%92 = fmul double %87, %91
%93 = load double*, double** %6
%94 = getelementptr inbounds double, double* %93, i64 3
%95 = load double, double* %94
%96 = load double*, double** %8
%97 = getelementptr inbounds double, double* %96, i64 14
%98 = load double, double* %97
%99 = fsub double %95, %98
%100 = fmul double %92, %99
%101 = load double*, double** %8
%102 = getelementptr inbounds double, double* %101, i64 15
store double %100, double* %102
%103 = load double*, double** %6
%104 = getelementptr inbounds double, double* %103, i64 3
%105 = load double, double* %104
%106 = fadd double %105, 1.000000e+01
%107 = fmul double 1.000000e-02, %106
%108 = load double*, double** %6
%109 = getelementptr inbounds double, double* %108, i64 3
%110 = load double, double* %109
%111 = fadd double %110, 1.000000e+01
%112 = fdiv double %111, 1.000000e+01
%113 = call double @exp(double %112)
%114 = fsub double %113, 1.000000e+00
%115 = fdiv double %107, %114
%116 = load double*, double** %8
%117 = getelementptr inbounds double, double* %116, i64 16
store double %115, double* %117
%118 = load double*, double** %6
%119 = getelementptr inbounds double, double* %118, i64 3
%120 = load double, double* %119
%121 = fdiv double %120, 8.000000e+01
%122 = call double @exp(double %121)
%123 = fmul double 1.250000e-01, %122
%124 = load double*, double** %8
%125 = getelementptr inbounds double, double* %124, i64 17
store double %123, double* %125
ret void
}

LLVM IR (-O2):
define void @computeVariables(double %0, double* nocapture %1, double* nocapture readnone %2, double* nocapture %3) {
%5 = load double, double* %3
%6 = getelementptr inbounds double, double* %1, i64 3
%7 = load double, double* %6
%8 = getelementptr inbounds double, double* %3, i64 6
%9 = load double, double* %8
%10 = fsub double %7, %9
%11 = fmul double %5, %10
%12 = getelementptr inbounds double, double* %3, i64 7
store double %11, double* %12
%13 = getelementptr inbounds double, double* %3, i64 4
%14 = load double, double* %13
%15 = load double, double* %1
%16 = tail call double @pow(double %15, double 3.000000e+00)
%17 = fmul double %14, %16
%18 = getelementptr inbounds double, double* %1, i64 1
%19 = load double, double* %18
%20 = fmul double %17, %19
%21 = load double, double* %6
%22 = getelementptr inbounds double, double* %3, i64 8
%23 = load double, double* %22
%24 = fsub double %21, %23
%25 = fmul double %20, %24
%26 = getelementptr inbounds double, double* %3, i64 9
store double %25, double* %26
%27 = load double, double* %6
%28 = fadd double %27, 2.500000e+01
%29 = fmul double %28, 1.000000e-01
%30 = fdiv double %28, 1.000000e+01
%31 = tail call double @exp(double %30)
%32 = fadd double %31, -1.000000e+00
%33 = fdiv double %29, %32
%34 = getelementptr inbounds double, double* %3, i64 10
store double %33, double* %34
%35 = load double, double* %6
%36 = fdiv double %35, 1.800000e+01
%37 = tail call double @exp(double %36)
%38 = fmul double %37, 4.000000e+00
%39 = getelementptr inbounds double, double* %3, i64 11
store double %38, double* %39
%40 = load double, double* %6
%41 = fdiv double %40, 2.000000e+01
%42 = tail call double @exp(double %41)
%43 = fmul double %42, 7.000000e-02
%44 = getelementptr inbounds double, double* %3, i64 12
store double %43, double* %44
%45 = load double, double* %6
%46 = fadd double %45, 3.000000e+01
%47 = fdiv double %46, 1.000000e+01
%48 = tail call double @exp(double %47)
%49 = fadd double %48, 1.000000e+00
%50 = fdiv double 1.000000e+00, %49
%51 = getelementptr inbounds double, double* %3, i64 13
store double %50, double* %51
%52 = getelementptr inbounds double, double* %3, i64 3
%53 = load double, double* %52
%54 = getelementptr inbounds double, double* %1, i64 2
%55 = load double, double* %54
%56 = tail call double @pow(double %55, double 4.000000e+00)
%57 = fmul double %53, %56
%58 = load double, double* %6
%59 = getelementptr inbounds double, double* %3, i64 14
%60 = load double, double* %59
%61 = fsub double %58, %60
%62 = fmul double %57, %61
%63 = getelementptr inbounds double, double* %3, i64 15
store double %62, double* %63
%64 = load double, double* %6
%65 = fadd double %64, 1.000000e+01
%66 = fmul double %65, 1.000000e-02
%67 = fdiv double %65, 1.000000e+01
%68 = tail call double @exp(double %67)
%69 = fadd double %68, -1.000000e+00
%70 = fdiv double %66, %69
%71 = getelementptr inbounds double, double* %3, i64 16
store double %70, double* %71
%72 = load double, double* %6
%73 = fdiv double %72, 8.000000e+01
%74 = tail call double @exp(double %73)
%75 = fmul double %74, 1.250000e-01
%76 = getelementptr inbounds double, double* %3, i64 17
store double %75, double* %76
ret void
}