#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 */
int /*<<< orphan*/ lob_bnd_ext(double *, double const *, double const *,
                               double const *, double const *, unsigned int,
                               unsigned int, double *, unsigned int, double *);
int /*<<< orphan*/ lob_bnd_fst(double *, double const *, double const *,
                               double const *, double const *, unsigned int,
                               unsigned int, double const *);
void lob_bnd_lin_3(double *restrict b, const double *lob_bnd_data_r,
                   unsigned nr, unsigned mr, const double *lob_bnd_data_s,
                   unsigned ns, unsigned ms, const double *lob_bnd_data_t,
                   unsigned nt, unsigned mt, const double *restrict u,
                   unsigned int un, double *restrict work) {
  unsigned nst = ns * nt, mrst = mr * ms * mt, mrs = mr * ms, mr_ns = mr * ns;
  const double *zr = lob_bnd_data_r, *Qr = zr + nr, *hr = Qr + 2 * nr,
               *lb_r = hr + mr;
  const double *zs = lob_bnd_data_s, *Qs = zs + ns, *hs = Qs + 2 * ns,
               *lbnp_s = hs + ms + 2 * ns * ms;
  const double *zt = lob_bnd_data_t, *Qt = zt + nt, *ht = Qt + 2 * nt,
               *lbnp_t = ht + mt + 2 * nt * mt;
  double *a = work, *bs = a + 2 * mr * ms;
  for (; un; --un, b += 2 * mrst) {
    double *br_, *bs_;
    unsigned i;
    for (i = 0, br_ = b; i < nst; ++i, br_ += 2 * mr, u += nr)
      lob_bnd_fst(br_, zr, Qr, hr, lb_r, nr, mr, u);
    for (i = 0, br_ = b, bs_ = bs; i < nt;
         ++i, br_ += 2 * mr_ns, bs_ += 2 * mrs)
      lob_bnd_ext(bs_, zs, Qs, hs, lbnp_s, ns, ms, br_, mr, a);
    lob_bnd_ext(b, zt, Qt, ht, lbnp_t, nt, mt, bs, mrs, a);
  }
}


x86 assembly (clang, -O0):
<lob_bnd_lin_3>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xe8,%rsp
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
imul   0x20(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%eax
imul   0x10(%rbp),%eax
imul   0x28(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%eax
imul   0x10(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x20(%rbp),%eax
imul   -0x2c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    -0x20(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
mov    0x10(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
imul   0x10(%rbp),%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
mov    0x20(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    0x20(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
mov    0x28(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    0x20(%rbp),%ecx
shl    $0x1,%ecx
imul   0x28(%rbp),%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xa0(%rbp)
mov    0x40(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
mov    -0x20(%rbp),%ecx
shl    $0x1,%ecx
imul   0x10(%rbp),%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb0(%rbp)
cmpl   $0x0,0x38(%rbp)
je     1496 <lob_bnd_lin_3+0x376>
movl   $0x0,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x30(%rbp),%eax
jae    135a <lob_bnd_lin_3+0x23a>
mov    -0xb8(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x50(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x1c(%rbp),%r9d
mov    -0x20(%rbp),%r10d
mov    0x30(%rbp),%rax
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <lob_bnd_fst@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
mov    -0x20(%rbp),%ecx
shl    $0x1,%ecx
mov    -0xb8(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x1c(%rbp),%ecx
mov    0x30(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x30(%rbp)
jmp    12d5 <lob_bnd_lin_3+0x1b5>
movl   $0x0,-0xc4(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0xc4(%rbp),%eax
cmp    0x20(%rbp),%eax
jae    1421 <lob_bnd_lin_3+0x301>
mov    -0xc0(%rbp),%rdi
mov    -0x68(%rbp),%rsi
mov    -0x70(%rbp),%rdx
mov    -0x78(%rbp),%rcx
mov    -0x80(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%ebx
mov    -0xb8(%rbp),%r11
mov    -0x20(%rbp),%r10d
mov    -0xa8(%rbp),%rax
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1040 <lob_bnd_ext@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
mov    -0xb8(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
mov    -0xc0(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc0(%rbp)
jmp    137d <lob_bnd_lin_3+0x25d>
mov    -0x10(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x90(%rbp),%rdx
mov    -0x98(%rbp),%rcx
mov    -0xa0(%rbp),%r8
mov    0x20(%rbp),%r9d
mov    0x28(%rbp),%ebx
mov    -0xb0(%rbp),%r11
mov    -0x38(%rbp),%r10d
mov    -0xa8(%rbp),%rax
mov    %ebx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1040 <lob_bnd_ext@plt>
mov    0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,0x38(%rbp)
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    12b6 <lob_bnd_lin_3+0x196>
add    $0xe8,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<lob_bnd_lin_3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8,0x18(%rsp)
mov    0x118(%rsp),%ebp
test   %ebp,%ebp
je     13f6 <lob_bnd_lin_3+0x2d6>
mov    %ecx,%r15d
mov    %edx,%r14d
mov    %rsi,%r13
mov    %rdi,%rbx
mov    0x108(%rsp),%r8d
mov    0xf0(%rsp),%r10d
mov    0x100(%rsp),%r11d
mov    %r9,%rsi
mov    0xf8(%rsp),%r9
mov    %r11d,%eax
imul   %esi,%eax
mov    %eax,(%rsp)
mov    %r10d,%edi
imul   %ecx,%edi
mov    %edx,%r12d
lea    0x0(,%r12,8),%rdx
add    %r13,%rdx
mov    %esi,%eax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
lea    (%rsi,%rsi,1),%eax
mov    %rcx,0x60(%rsp)
lea    (%rcx,%rax,8),%rcx
mov    %rcx,0x58(%rsp)
lea    (%rcx,%r10,8),%rcx
imul   %r10d,%eax
lea    (%rcx,%rax,8),%rax
mov    %rax,0xa0(%rsp)
lea    (%r9,%r11,8),%rcx
lea    (%r11,%r11,1),%eax
mov    %rcx,0x50(%rsp)
lea    (%rcx,%rax,8),%rcx
mov    %rcx,0x48(%rsp)
lea    (%rcx,%r8,8),%rcx
imul   %r8d,%eax
mov    %r8,%r11
lea    (%rcx,%rax,8),%rax
mov    %rax,0x40(%rsp)
lea    (%r14,%r14,1),%eax
lea    (%rdx,%rax,8),%rcx
mov    %rcx,0x98(%rsp)
mov    %r15d,%eax
lea    (%rcx,%rax,8),%r8
lea    (%r15,%r15,1),%ecx
mov    %ecx,%eax
imul   %r10d,%eax
mov    0x120(%rsp),%r9
lea    (%r9,%rax,8),%rax
mov    %rax,0x8(%rsp)
mov    %ecx,%eax
imul   %esi,%ecx
mov    %rdi,0x68(%rsp)
lea    (%rdi,%rdi,1),%r9d
lea    0x0(,%r9,8),%rdi
mov    %rdi,0x80(%rsp)
imul   %r11d,%r9d
shl    $0x3,%r9
mov    %r9,0x38(%rsp)
shl    $0x3,%rax
mov    %rax,0x88(%rsp)
shl    $0x3,%r12
mov    %r12,0xa8(%rsp)
shl    $0x3,%rcx
mov    %rcx,0x90(%rsp)
mov    0x110(%rsp),%r12
mov    %rdx,0x30(%rsp)
mov    %r8,0x28(%rsp)
mov    %rsi,0xb0(%rsp)
mov    %r14,0x78(%rsp)
mov    %r13,0x70(%rsp)
mov    %r15,0x20(%rsp)
jmp    1312 <lob_bnd_lin_3+0x1f2>
nopw   0x0(%rax,%rax,1)
mov    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    0xf8(%rsp),%rsi
mov    0x50(%rsp),%rdx
mov    0x48(%rsp),%rcx
mov    0x40(%rsp),%r8
mov    0x100(%rsp),%r9d
push   0x120(%rsp)
push   0x70(%rsp)
push   0x18(%rsp)
mov    0x120(%rsp),%eax
push   %rax
call   1040 <lob_bnd_ext@plt>
add    $0x20,%rsp
add    0x38(%rsp),%rbx
mov    0x4(%rsp),%ebp
add    $0xffffffff,%ebp
mov    0x78(%rsp),%r14
mov    0x70(%rsp),%r13
mov    0x30(%rsp),%rdx
mov    0x20(%rsp),%r15
mov    0x28(%rsp),%r8
je     13f6 <lob_bnd_lin_3+0x2d6>
mov    %ebp,0x4(%rsp)
mov    %rbx,0x10(%rsp)
mov    %rbx,%rbp
mov    (%rsp),%eax
mov    %eax,%ebx
test   %eax,%eax
je     136d <lob_bnd_lin_3+0x24d>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r13,%rsi
mov    0x98(%rsp),%rcx
mov    %r14d,%r9d
push   %r12
push   %r15
call   1030 <lob_bnd_fst@plt>
mov    0x38(%rsp),%r8
mov    0x40(%rsp),%rdx
add    $0x10,%rsp
add    0x88(%rsp),%rbp
add    0xa8(%rsp),%r12
add    $0xffffffff,%ebx
jne    1330 <lob_bnd_lin_3+0x210>
mov    0x10(%rsp),%rbp
mov    0x8(%rsp),%r14
mov    0x100(%rsp),%eax
mov    %eax,%r13d
test   %eax,%eax
mov    0x60(%rsp),%r15
mov    0x58(%rsp),%rbx
je     12a0 <lob_bnd_lin_3+0x180>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r14,%rdi
mov    0x18(%rsp),%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    0xa0(%rsp),%r8
mov    0xb0(%rsp),%r9
push   0x120(%rsp)
push   0x28(%rsp)
push   %rbp
mov    0x108(%rsp),%eax
push   %rax
call   1040 <lob_bnd_ext@plt>
add    $0x20,%rsp
add    0x80(%rsp),%r14
add    0x90(%rsp),%rbp
add    $0xffffffff,%r13d
jne    13a0 <lob_bnd_lin_3+0x280>
jmp    12a0 <lob_bnd_lin_3+0x180>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @lob_bnd_lin_3(double* noalias %0, double* %1, i32 %2, i32 %3, double* %4, i32 %5, i32 %6, double* %7, i32 %8, i32 %9, double* noalias %10, i32 %11, double* noalias %12) {
%14 = mul i32 %8, %5
%15 = mul i32 %6, %3
%16 = zext i32 %2 to i64
%17 = getelementptr inbounds double, double* %1, i64 %16
%18 = shl i32 %2, 1
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds double, double* %17, i64 %19
%21 = zext i32 %3 to i64
%22 = getelementptr inbounds double, double* %20, i64 %21
%23 = zext i32 %5 to i64
%24 = getelementptr inbounds double, double* %4, i64 %23
%25 = shl i32 %5, 1
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds double, double* %24, i64 %26
%28 = zext i32 %6 to i64
%29 = getelementptr inbounds double, double* %27, i64 %28
%30 = mul i32 %25, %6
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds double, double* %29, i64 %31
%33 = zext i32 %8 to i64
%34 = getelementptr inbounds double, double* %7, i64 %33
%35 = shl i32 %8, 1
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
%38 = zext i32 %9 to i64
%39 = getelementptr inbounds double, double* %37, i64 %38
%40 = mul i32 %35, %9
%41 = zext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = shl i32 %3, 1
%44 = mul i32 %43, %6
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds double, double* %12, i64 %45
%47 = icmp eq i32 %11, 0
br i1 %47, label %87, label %48
48: ; preds = %13
%49 = icmp eq i32 %14, 0
%50 = zext i32 %43 to i64
%51 = icmp eq i32 %8, 0
%52 = mul i32 %43, %5
%53 = zext i32 %52 to i64
%54 = shl i32 %15, 1
%55 = zext i32 %54 to i64
%56 = mul i32 %54, %9
%57 = zext i32 %56 to i64
br label %58
58: ; preds = %48, %82
%59 = phi double* [ %0, %48 ], [ %85, %82 ]
%60 = phi double* [ %10, %48 ], [ %63, %82 ]
%61 = phi i32 [ %11, %48 ], [ %84, %82 ]
br i1 %49, label %62, label %64
62: ; preds = %64, %58
%63 = phi double* [ %60, %58 ], [ %71, %64 ]
br i1 %51, label %82, label %73
64: ; preds = %58, %64
%65 = phi i32 [ %69, %64 ], [ 0, %58 ]
%66 = phi double* [ %70, %64 ], [ %59, %58 ]
%67 = phi double* [ %71, %64 ], [ %60, %58 ]
%68 = tail call i32 @lob_bnd_fst(double* %66, double* %1, double* %17, double* %20, double* %22, i32 %2, i32 %3, double* %67)
%69 = add nuw i32 %65, 1
%70 = getelementptr inbounds double, double* %66, i64 %50
%71 = getelementptr inbounds double, double* %67, i64 %16
%72 = icmp eq i32 %69, %14
br i1 %72, label %62, label %64
73: ; preds = %62, %73
%74 = phi i32 [ %78, %73 ], [ 0, %62 ]
%75 = phi double* [ %80, %73 ], [ %46, %62 ]
%76 = phi double* [ %79, %73 ], [ %59, %62 ]
%77 = tail call i32 @lob_bnd_ext(double* %75, double* %4, double* %24, double* %27, double* %32, i32 %5, i32 %6, double* %76, i32 %3, double* %12)
%78 = add nuw i32 %74, 1
%79 = getelementptr inbounds double, double* %76, i64 %53
%80 = getelementptr inbounds double, double* %75, i64 %55
%81 = icmp eq i32 %78, %8
br i1 %81, label %82, label %73
82: ; preds = %73, %62
%83 = tail call i32 @lob_bnd_ext(double* %59, double* %7, double* %34, double* %37, double* %42, i32 %8, i32 %9, double* %46, i32 %15, double* %12)
%84 = add i32 %61, -1
%85 = getelementptr inbounds double, double* %59, i64 %57
%86 = icmp eq i32 %84, 0
br i1 %86, label %87, label %58
87: ; preds = %82, %13
ret void
}