#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 parList {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ flux(double *, double *, double *, int, struct parList *);
int /*<<< orphan*/ prim2cons(double *, double *, double *, double,
                             struct parList *);
int /*<<< orphan*/ wave_speeds(double *, double *, double *, double *, double *,
                               double *, int, struct parList *);
void hll_flux(double primL[], double primR[], double F[], int nq, double x[2],
              int dir, struct parList *pars) {
  double sL, sR, sC;
  double U[nq], UL[nq], UR[nq], FL[nq], FR[nq];
  prim2cons(primL, UL, x, 1.0, pars);
  prim2cons(primR, UR, x, 1.0, pars);
  flux(primL, FL, x, dir, pars);
  flux(primR, FR, x, dir, pars);
  wave_speeds(primL, primR, &sL, &sR, &sC, x, dir, pars);
  int q;
  if (sL > 0)
    for (q = 0; q < nq; q++) {
      U[q] = UL[q];
      F[q] = FL[q];
    }
  else if (sR < 0)
    for (q = 0; q < nq; q++) {
      U[q] = UR[q];
      F[q] = FR[q];
    }
  else
    for (q = 0; q < nq; q++) {
      U[q] = (sR * UR[q] - sL * UL[q] - (FR[q] - FL[q])) / (sR - sL);
      F[q] = (sR * FL[q] - sL * FR[q] + sL * sR * (UR[q] - UL[q])) / (sR - sL);
    }
}


x86 assembly (clang, -O0):
<hll_flux>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x50(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rsi
sub    %rcx,%rsi
mov    %rsi,-0xa0(%rbp)
mov    %rsi,%rsp
mov    %rax,-0x60(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x98(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x68(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x70(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x78(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    0x10(%rbp),%rcx
movsd  0xde0(%rip),%xmm0
call   1030 <prim2cons@plt>
mov    -0x98(%rbp),%rsi
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    0x10(%rbp),%rcx
movsd  0xdc0(%rip),%xmm0
call   1030 <prim2cons@plt>
mov    -0x90(%rbp),%rsi
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    0x10(%rbp),%r8
call   1050 <flux@plt>
mov    -0x88(%rbp),%rsi
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    0x10(%rbp),%r8
call   1050 <flux@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x28(%rbp),%r9
mov    -0x2c(%rbp),%r10d
mov    0x10(%rbp),%rax
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
sub    $0x10,%rsp
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <wave_speeds@plt>
add    $0x10,%rsp
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1326 <hll_flux+0x1f6>
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1321 <hll_flux+0x1f1>
mov    -0x90(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    -0xa0(%rbp),%rdx
movslq -0x7c(%rbp),%rsi
movsd  (%rdx,%rsi,8),%xmm0
movslq -0x7c(%rbp),%rdx
movsd  %xmm0,(%rcx,%rdx,8)
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    12ca <hll_flux+0x19a>
jmp    14cc <hll_flux+0x39c>
xorps  %xmm0,%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    1397 <hll_flux+0x267>
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1392 <hll_flux+0x262>
mov    -0x88(%rbp),%rax
mov    -0xa8(%rbp),%rcx
mov    -0x98(%rbp),%rdx
movslq -0x7c(%rbp),%rsi
movsd  (%rdx,%rsi,8),%xmm0
movslq -0x7c(%rbp),%rdx
movsd  %xmm0,(%rcx,%rdx,8)
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    133b <hll_flux+0x20b>
jmp    14c7 <hll_flux+0x397>
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    14c2 <hll_flux+0x392>
mov    -0xa0(%rbp),%rax
mov    -0x98(%rbp),%rcx
mov    -0x88(%rbp),%rdx
mov    -0x90(%rbp),%rsi
mov    -0xa8(%rbp),%rdi
movsd  -0x40(%rbp),%xmm0
movslq -0x7c(%rbp),%r8
movsd  (%rcx,%r8,8),%xmm2
movsd  -0x38(%rbp),%xmm1
movslq -0x7c(%rbp),%r8
mulsd  (%rax,%r8,8),%xmm1
movq   %xmm1,%r8
movabs $0x8000000000000000,%r9
xor    %r9,%r8
movq   %r8,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movslq -0x7c(%rbp),%r8
movsd  (%rdx,%r8,8),%xmm1
movslq -0x7c(%rbp),%r8
subsd  (%rsi,%r8,8),%xmm1
subsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
divsd  %xmm1,%xmm0
movslq -0x7c(%rbp),%r8
movsd  %xmm0,(%rdi,%r8,8)
movsd  -0x40(%rbp),%xmm1
movslq -0x7c(%rbp),%rdi
movsd  (%rsi,%rdi,8),%xmm2
movsd  -0x38(%rbp),%xmm0
movslq -0x7c(%rbp),%rsi
mulsd  (%rdx,%rsi,8),%xmm0
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movslq -0x7c(%rbp),%rdx
movsd  (%rcx,%rdx,8),%xmm2
movslq -0x7c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    139e <hll_flux+0x26e>
jmp    14c7 <hll_flux+0x397>
jmp    14cc <hll_flux+0x39c>
mov    -0x50(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hll_flux>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,-0x78(%rbp)
mov    %r8,%rbx
mov    %rdx,-0x48(%rbp)
mov    %rsi,-0x58(%rbp)
mov    %rsp,-0x40(%rbp)
mov    0x10(%rbp),%r9
mov    %ecx,-0x2c(%rbp)
mov    %ecx,%eax
mov    %rsp,%rsi
mov    %rax,-0x38(%rbp)
lea    0xf(,%rax,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rsi
mov    %rsi,%rsp
mov    %rsp,%r12
sub    %rax,%r12
mov    %r12,%rsp
mov    %rsp,%r14
sub    %rax,%r14
mov    %r14,%rsp
mov    %rsp,%r13
sub    %rax,%r13
mov    %r13,%rsp
movsd  0xe57(%rip),%xmm0
mov    %rdi,%r15
mov    %rdi,-0x70(%rbp)
mov    %rsi,-0x68(%rbp)
mov    %r8,%rdx
mov    %r9,%rcx
call   1030 <prim2cons@plt>
mov    -0x58(%rbp),%rdi
mov    %r12,-0x60(%rbp)
mov    %r12,%rsi
mov    %rbx,%rdx
movsd  0xe2b(%rip),%xmm0
mov    0x10(%rbp),%rcx
call   1030 <prim2cons@plt>
mov    %r15,%rdi
mov    %r14,-0x50(%rbp)
mov    %r14,%rsi
mov    %rbx,%rdx
mov    -0x78(%rbp),%r12
mov    %r12d,%ecx
mov    0x10(%rbp),%r14
mov    %r14,%r8
call   1060 <flux@plt>
mov    -0x58(%rbp),%r15
mov    %r15,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r12d,%ecx
mov    %r14,%r8
call   1060 <flux@plt>
lea    -0x88(%rbp),%rdx
lea    -0x80(%rbp),%rcx
lea    -0x90(%rbp),%r8
mov    -0x70(%rbp),%rdi
mov    %r15,%rsi
mov    %rbx,%r9
push   %r14
push   %r12
call   1040 <wave_speeds@plt>
add    $0x10,%rsp
movsd  -0x88(%rbp),%xmm0
ff
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
jbe    1269 <hll_flux+0x129>
cmpl   $0x0,-0x2c(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%r15
mov    -0x38(%rbp),%rdx
mov    -0x50(%rbp),%rsi
jg     128a <hll_flux+0x14a>
jmp    1293 <hll_flux+0x153>
mov    -0x2c(%rbp),%eax
movsd  -0x80(%rbp),%xmm1
ucomisd %xmm1,%xmm2
jbe    12a5 <hll_flux+0x165>
mov    %r13,%rsi
test   %eax,%eax
mov    -0x48(%rbp),%rdi
mov    -0x40(%rbp),%r15
mov    -0x38(%rbp),%rdx
jle    1293 <hll_flux+0x153>
shl    $0x3,%rdx
call   1050 <memcpy@plt>
mov    %r15,%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %eax,%eax
mov    -0x48(%rbp),%rdx
mov    -0x40(%rbp),%r15
mov    -0x38(%rbp),%r8
mov    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x50(%rbp),%rbx
jle    1293 <hll_flux+0x153>
movapd 0xd46(%rip),%xmm8
xorpd  %xmm0,%xmm8
movapd %xmm1,%xmm9
subsd  %xmm0,%xmm9
mulsd  %xmm1,%xmm0
cmp    $0x1,%eax
jne    12e9 <hll_flux+0x1a9>
xor    %eax,%eax
jmp    1370 <hll_flux+0x230>
mov    %r8d,%eax
and    $0xfffffffe,%eax
movapd %xmm8,%xmm4
unpcklpd %xmm8,%xmm4
movapd %xmm1,%xmm5
unpcklpd %xmm1,%xmm5
movapd %xmm0,%xmm6
unpcklpd %xmm0,%xmm6
movapd %xmm9,%xmm7
unpcklpd %xmm9,%xmm7
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movapd 0x0(%r13,%rcx,8),%xmm2
mulpd  %xmm4,%xmm2
movapd (%rbx,%rcx,8),%xmm3
mulpd  %xmm5,%xmm3
addpd  %xmm2,%xmm3
movapd (%rsi,%rcx,8),%xmm2
subpd  (%rdi,%rcx,8),%xmm2
mulpd  %xmm6,%xmm2
addpd  %xmm3,%xmm2
divpd  %xmm7,%xmm2
movupd %xmm2,(%rdx,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1320 <hll_flux+0x1e0>
cmp    %r8,%rax
je     1293 <hll_flux+0x153>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%r13,%rax,8),%xmm2
mulsd  %xmm8,%xmm2
movsd  (%rbx,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  (%rsi,%rax,8),%xmm2
subsd  (%rdi,%rax,8),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm9,%xmm2
movsd  %xmm2,(%rdx,%rax,8)
add    $0x1,%rax
cmp    %rax,%r8
jne    1370 <hll_flux+0x230>
jmp    1293 <hll_flux+0x153>

LLVM IR (-O0):
%struct.parList = type { i32 }
define void @hll_flux(double* %0, double* %1, double* %2, i32 %3, double* %4, i32 %5, %struct.parList* %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double*
%13 = alloca i32
%14 = alloca %struct.parList*
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca i8*
%19 = alloca i64
%20 = alloca i64
%21 = alloca i64
%22 = alloca i64
%23 = alloca i64
%24 = alloca i32
store double* %0, double** %8
store double* %1, double** %9
store double* %2, double** %10
store i32 %3, i32* %11
store double* %4, double** %12
store i32 %5, i32* %13
store %struct.parList* %6, %struct.parList** %14
%25 = load i32, i32* %11
%26 = zext i32 %25 to i64
%27 = call i8* @llvm.stacksave()
store i8* %27, i8** %18
%28 = alloca double, i64 %26
store i64 %26, i64* %19
%29 = load i32, i32* %11
%30 = zext i32 %29 to i64
%31 = alloca double, i64 %30
store i64 %30, i64* %20
%32 = load i32, i32* %11
%33 = zext i32 %32 to i64
%34 = alloca double, i64 %33
store i64 %33, i64* %21
%35 = load i32, i32* %11
%36 = zext i32 %35 to i64
%37 = alloca double, i64 %36
store i64 %36, i64* %22
%38 = load i32, i32* %11
%39 = zext i32 %38 to i64
%40 = alloca double, i64 %39
store i64 %39, i64* %23
%41 = load double*, double** %8
%42 = load double*, double** %12
%43 = load %struct.parList*, %struct.parList** %14
%44 = call i32 @prim2cons(double* %41, double* %31, double* %42, double 1.000000e+00, %struct.parList* %43)
%45 = load double*, double** %9
%46 = load double*, double** %12
%47 = load %struct.parList*, %struct.parList** %14
%48 = call i32 @prim2cons(double* %45, double* %34, double* %46, double 1.000000e+00, %struct.parList* %47)
%49 = load double*, double** %8
%50 = load double*, double** %12
%51 = load i32, i32* %13
%52 = load %struct.parList*, %struct.parList** %14
%53 = call i32 @flux(double* %49, double* %37, double* %50, i32 %51, %struct.parList* %52)
%54 = load double*, double** %9
%55 = load double*, double** %12
%56 = load i32, i32* %13
%57 = load %struct.parList*, %struct.parList** %14
%58 = call i32 @flux(double* %54, double* %40, double* %55, i32 %56, %struct.parList* %57)
%59 = load double*, double** %8
%60 = load double*, double** %9
%61 = load double*, double** %12
%62 = load i32, i32* %13
%63 = load %struct.parList*, %struct.parList** %14
%64 = call i32 @wave_speeds(double* %59, double* %60, double* %15, double* %16, double* %17, double* %61, i32 %62, %struct.parList* %63)
%65 = load double, double* %15
%66 = fcmp ogt double %65, 0.000000e+00
br i1 %66, label %67, label %92
67: ; preds = %7
store i32 0, i32* %24
br label %68
68: ; preds = %88, %67
%69 = load i32, i32* %24
%70 = load i32, i32* %11
%71 = icmp slt i32 %69, %70
br i1 %71, label %72, label %91
72: ; preds = %68
%73 = load i32, i32* %24
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %31, i64 %74
%76 = load double, double* %75
%77 = load i32, i32* %24
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %28, i64 %78
store double %76, double* %79
%80 = load i32, i32* %24
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, double* %37, i64 %81
%83 = load double, double* %82
%84 = load double*, double** %10
%85 = load i32, i32* %24
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double, double* %84, i64 %86
store double %83, double* %87
br label %88
88: ; preds = %72
%89 = load i32, i32* %24
%90 = add nsw i32 %89, 1
store i32 %90, i32* %24
br label %68
91: ; preds = %68
br label %195
92: ; preds = %7
%93 = load double, double* %16
%94 = fcmp olt double %93, 0.000000e+00
br i1 %94, label %95, label %120
95: ; preds = %92
store i32 0, i32* %24
br label %96
96: ; preds = %116, %95
%97 = load i32, i32* %24
%98 = load i32, i32* %11
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %119
100: ; preds = %96
%101 = load i32, i32* %24
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %34, i64 %102
%104 = load double, double* %103
%105 = load i32, i32* %24
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %28, i64 %106
store double %104, double* %107
%108 = load i32, i32* %24
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, double* %40, i64 %109
%111 = load double, double* %110
%112 = load double*, double** %10
%113 = load i32, i32* %24
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %112, i64 %114
store double %111, double* %115
br label %116
116: ; preds = %100
%117 = load i32, i32* %24
%118 = add nsw i32 %117, 1
store i32 %118, i32* %24
br label %96
119: ; preds = %96
br label %194
120: ; preds = %92
store i32 0, i32* %24
br label %121
121: ; preds = %190, %120
%122 = load i32, i32* %24
%123 = load i32, i32* %11
%124 = icmp slt i32 %122, %123
br i1 %124, label %125, label %193
125: ; preds = %121
%126 = load double, double* %16
%127 = load i32, i32* %24
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %34, i64 %128
%130 = load double, double* %129
%131 = load double, double* %15
%132 = load i32, i32* %24
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, double* %31, i64 %133
%135 = load double, double* %134
%136 = fmul double %131, %135
%137 = fneg double %136
%138 = call double @llvm.fmuladd.f64(double %126, double %130, double %137)
%139 = load i32, i32* %24
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds double, double* %40, i64 %140
%142 = load double, double* %141
%143 = load i32, i32* %24
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, double* %37, i64 %144
%146 = load double, double* %145
%147 = fsub double %142, %146
%148 = fsub double %138, %147
%149 = load double, double* %16
%150 = load double, double* %15
%151 = fsub double %149, %150
%152 = fdiv double %148, %151
%153 = load i32, i32* %24
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %28, i64 %154
store double %152, double* %155
%156 = load double, double* %16
%157 = load i32, i32* %24
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %37, i64 %158
%160 = load double, double* %159
%161 = load double, double* %15
%162 = load i32, i32* %24
%163 = sext i32 %162 to i64
%164 = getelementptr inbounds double, double* %40, i64 %163
%165 = load double, double* %164
%166 = fmul double %161, %165
%167 = fneg double %166
%168 = call double @llvm.fmuladd.f64(double %156, double %160, double %167)
%169 = load double, double* %15
%170 = load double, double* %16
%171 = fmul double %169, %170
%172 = load i32, i32* %24
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %34, i64 %173
%175 = load double, double* %174
%176 = load i32, i32* %24
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, double* %31, i64 %177
%179 = load double, double* %178
%180 = fsub double %175, %179
%181 = call double @llvm.fmuladd.f64(double %171, double %180, double %168)
%182 = load double, double* %16
%183 = load double, double* %15
%184 = fsub double %182, %183
%185 = fdiv double %181, %184
%186 = load double*, double** %10
%187 = load i32, i32* %24
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
store double %185, double* %189
br label %190
190: ; preds = %125
%191 = load i32, i32* %24
%192 = add nsw i32 %191, 1
store i32 %192, i32* %24
br label %121
193: ; preds = %121
br label %194
194: ; preds = %193, %119
br label %195
195: ; preds = %194, %91
%196 = load i8*, i8** %18
ret void
}

LLVM IR (-O2):
%struct.parList = type { i32 }
define void @hll_flux(double* %0, double* %1, double* nocapture writeonly %2, i32 %3, double* %4, i32 %5, %struct.parList* %6) {
%8 = bitcast double* %2 to i8*
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = bitcast double* %9 to i8*
%13 = bitcast double* %10 to i8*
%14 = bitcast double* %11 to i8*
%15 = zext i32 %3 to i64
%16 = tail call i8* @llvm.stacksave()
%17 = alloca double, i64 %15
%18 = alloca double, i64 %15
%19 = alloca double, i64 %15
%20 = alloca double, i64 %15
%21 = call i32 @prim2cons(double* %0, double* %17, double* %4, double 1.000000e+00, %struct.parList* %6)
%22 = call i32 @prim2cons(double* %1, double* %18, double* %4, double 1.000000e+00, %struct.parList* %6)
%23 = call i32 @flux(double* %0, double* %19, double* %4, i32 %5, %struct.parList* %6)
%24 = call i32 @flux(double* %1, double* %20, double* %4, i32 %5, %struct.parList* %6)
%25 = call i32 @wave_speeds(double* %0, double* %1, double* %9, double* %10, double* %11, double* %4, i32 %5, %struct.parList* %6)
%26 = load double, double* %9
%27 = fcmp ogt double %26, 0.000000e+00
br i1 %27, label %28, label %30
28: ; preds = %7
%29 = icmp sgt i32 %3, 0
br i1 %29, label %96, label %100
30: ; preds = %7
%31 = load double, double* %10
%32 = fcmp olt double %31, 0.000000e+00
%33 = icmp sgt i32 %3, 0
br i1 %32, label %77, label %34
34: ; preds = %30
br i1 %33, label %35, label %100
35: ; preds = %34
%36 = fneg double %26
%37 = fmul double %26, %31
%38 = fsub double %31, %26
%39 = icmp eq i32 %3, 1
br i1 %39, label %75, label %40
40: ; preds = %35
%41 = and i64 %15, 4294967294
%42 = insertelement <2 x double> poison, double %36, i64 0
%43 = shufflevector <2 x double> %42, <2 x double> poison, <2 x i32> zeroinitializer
%44 = insertelement <2 x double> poison, double %31, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> poison, <2 x i32> zeroinitializer
%46 = insertelement <2 x double> poison, double %37, i64 0
%47 = shufflevector <2 x double> %46, <2 x double> poison, <2 x i32> zeroinitializer
%48 = insertelement <2 x double> poison, double %38, i64 0
%49 = shufflevector <2 x double> %48, <2 x double> poison, <2 x i32> zeroinitializer
br label %50
50: ; preds = %50, %40
%51 = phi i64 [ 0, %40 ], [ %71, %50 ]
%52 = getelementptr inbounds double, double* %18, i64 %51
%53 = getelementptr inbounds double, double* %17, i64 %51
%54 = getelementptr inbounds double, double* %20, i64 %51
%55 = getelementptr inbounds double, double* %19, i64 %51
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = bitcast double* %54 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = fmul <2 x double> %59, %43
%61 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> %57, <2 x double> %60)
%62 = bitcast double* %52 to <2 x double>*
%63 = load <2 x double>, <2 x double>* %62
%64 = bitcast double* %53 to <2 x double>*
%65 = load <2 x double>, <2 x double>* %64
%66 = fsub <2 x double> %63, %65
%67 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %47, <2 x double> %66, <2 x double> %61)
%68 = fdiv <2 x double> %67, %49
%69 = getelementptr inbounds double, double* %2, i64 %51
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> %68, <2 x double>* %70
%71 = add nuw i64 %51, 2
%72 = icmp eq i64 %71, %41
br i1 %72, label %73, label %50
73: ; preds = %50
%74 = icmp eq i64 %41, %15
br i1 %74, label %100, label %75
75: ; preds = %35, %73
%76 = phi i64 [ 0, %35 ], [ %41, %73 ]
br label %78
77: ; preds = %30
br i1 %33, label %96, label %100
78: ; preds = %75, %78
%79 = phi i64 [ %94, %78 ], [ %76, %75 ]
%80 = getelementptr inbounds double, double* %18, i64 %79
%81 = getelementptr inbounds double, double* %17, i64 %79
%82 = getelementptr inbounds double, double* %20, i64 %79
%83 = getelementptr inbounds double, double* %19, i64 %79
%84 = load double, double* %83
%85 = load double, double* %82
%86 = fmul double %85, %36
%87 = call double @llvm.fmuladd.f64(double %31, double %84, double %86)
%88 = load double, double* %80
%89 = load double, double* %81
%90 = fsub double %88, %89
%91 = call double @llvm.fmuladd.f64(double %37, double %90, double %87)
%92 = fdiv double %91, %38
%93 = getelementptr inbounds double, double* %2, i64 %79
store double %92, double* %93
%94 = add nuw nsw i64 %79, 1
%95 = icmp eq i64 %94, %15
br i1 %95, label %100, label %78
96: ; preds = %77, %28
%97 = phi double* [ %19, %28 ], [ %20, %77 ]
%98 = bitcast double* %97 to i8*
%99 = shl nuw nsw i64 %15, 3
br label %100
100: ; preds = %78, %73, %96, %34, %77, %28
ret void
}