#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int finite_alphabet_likelihoods_nodisk(int nstates, int nalpha, int nobs,
                                       const double *emissions,
                                       const unsigned char *v_big,
                                       double *l_big) {
  int errcode = 0;
  int obs_index;
  int i;
  int emissions_index;
  int likelihoods_index;
  unsigned char emission;
  for (obs_index = 0; obs_index < nobs; ++obs_index) {
    emission = v_big[obs_index];
    if (emission == 127) {
      for (i = 0; i < nstates; ++i) {
        likelihoods_index = obs_index * nstates + i;
        l_big[likelihoods_index] = 1.0;
      }
    } else {
      if (emission >= nalpha) {
        fprintf(stderr, "an observation is out of range\n");
        errcode = -1;
        goto end;
      }
      for (i = 0; i < nstates; ++i) {
        emissions_index = i * nalpha + emission;
        likelihoods_index = obs_index * nstates + i;
        l_big[likelihoods_index] = emissions[emissions_index];
      }
    }
  }
end:
  return errcode;
}


x86 assembly (clang, -O0):
<finite_alphabet_likelihoods_nodisk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1248 <finite_alphabet_likelihoods_nodisk+0x138>
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x3d(%rbp)
movzbl -0x3d(%rbp),%eax
cmp    $0x7f,%eax
jne    11aa <finite_alphabet_likelihoods_nodisk+0x9a>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11a5 <finite_alphabet_likelihoods_nodisk+0x95>
mov    -0x30(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xe6e(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1169 <finite_alphabet_likelihoods_nodisk+0x59>
jmp    1235 <finite_alphabet_likelihoods_nodisk+0x125>
movzbl -0x3d(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     11d8 <finite_alphabet_likelihoods_nodisk+0xc8>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xe41(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0xffffffff,-0x2c(%rbp)
jmp    124d <finite_alphabet_likelihoods_nodisk+0x13d>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1230 <finite_alphabet_likelihoods_nodisk+0x120>
mov    -0x34(%rbp),%eax
imul   -0x8(%rbp),%eax
movzbl -0x3d(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0x30(%rbp),%eax
imul   -0x4(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11df <finite_alphabet_likelihoods_nodisk+0xcf>
jmp    1235 <finite_alphabet_likelihoods_nodisk+0x125>
jmp    123a <finite_alphabet_likelihoods_nodisk+0x12a>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    113b <finite_alphabet_likelihoods_nodisk+0x2b>
jmp    124d <finite_alphabet_likelihoods_nodisk+0x13d>
mov    -0x2c(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<finite_alphabet_likelihoods_nodisk>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %r8,0x98(%rsp)
test   %edx,%edx
jle    150d <finite_alphabet_likelihoods_nodisk+0x3fd>
mov    %esi,0x24(%rsp)
movslq %esi,%rsi
movslq %edi,%r10
mov    %edx,%eax
mov    %rax,0x90(%rsp)
mov    %r10d,%eax
mov    %eax,%edx
and    $0xfffffffc,%edx
mov    %rdx,0x30(%rsp)
add    $0xfffffffffffffffc,%rdx
mov    %rdx,0x28(%rsp)
mov    %rdx,%rbx
shr    $0x2,%rbx
add    $0x1,%rbx
cmp    $0x4,%r10d
setae  %r8b
cmp    $0x1,%esi
sete   %dl
and    %r8b,%dl
mov    %dl,0x3(%rsp)
movabs $0x7ffffffffffffffc,%rdx
ff ff 7f
or     $0x2,%rdx
and    %rbx,%rdx
mov    %rdx,0x40(%rsp)
mov    %rax,%rdx
neg    %rdx
mov    %rdx,0x80(%rsp)
mov    %ebx,%ebp
and    $0x3,%ebp
mov    %rbx,%rdx
mov    %rbx,0x60(%rsp)
and    $0xfffffffffffffffc,%rbx
mov    %rbx,0x68(%rsp)
mov    %rsi,%rdx
shl    $0x5,%rdx
mov    %rdx,0x58(%rsp)
mov    %rsi,%rdx
shl    $0x6,%rdx
mov    %rdx,0x50(%rsp)
mov    %rbp,0x78(%rsp)
mov    %rbp,%rbx
shl    $0x5,%rbx
movaps 0xe20(%rip),%xmm0
lea    (%rcx,%rax,8),%rdx
mov    %rdx,0x70(%rsp)
mov    %rcx,0x8(%rsp)
add    $0x10,%rcx
mov    %rcx,0x38(%rsp)
lea    0x30(%r9),%r15
mov    %r10,0x88(%rsp)
lea    0x0(,%r10,8),%r8
mov    %rsi,0x10(%rsp)
lea    (%rsi,%rsi,1),%rcx
mov    %rcx,0xa0(%rsp)
lea    0x8(%r9),%r12
lea    0x70(%r9),%rsi
lea    0x10(%r9),%r13
xor    %r10d,%r10d
mov    %r9,0x18(%rsp)
mov    %edi,0x4(%rsp)
mov    %rbx,0x48(%rsp)
jmp    1265 <finite_alphabet_likelihoods_nodisk+0x155>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r10
add    %r8,%r15
add    %r8,%r12
add    %r8,%rsi
add    %r8,%r13
add    %r8,%r9
cmp    0x90(%rsp),%r10
mov    0x4(%rsp),%edi
je     150d <finite_alphabet_likelihoods_nodisk+0x3fd>
mov    0x98(%rsp),%rcx
movzbl (%rcx,%r10,1),%ecx
cmp    $0x7f,%ecx
jne    1290 <finite_alphabet_likelihoods_nodisk+0x180>
test   %edi,%edi
jle    1240 <finite_alphabet_likelihoods_nodisk+0x130>
cmpl   $0x4,0x4(%rsp)
jae    1390 <finite_alphabet_likelihoods_nodisk+0x280>
xor    %ecx,%ecx
jmp    1430 <finite_alphabet_likelihoods_nodisk+0x320>
nopl   (%rax)
cmp    0x24(%rsp),%ecx
jge    1511 <finite_alphabet_likelihoods_nodisk+0x401>
test   %edi,%edi
jle    1240 <finite_alphabet_likelihoods_nodisk+0x130>
mov    %r10,%rdx
imul   0x88(%rsp),%rdx
mov    %ecx,%r14d
cmpb   $0x0,0x3(%rsp)
je     12f7 <finite_alphabet_likelihoods_nodisk+0x1e7>
mov    0x18(%rsp),%rbp
lea    0x0(,%rdx,8),%rcx
add    %rbp,%rcx
mov    0x70(%rsp),%rdi
lea    (%rdi,%r14,8),%rdi
cmp    %rdi,%rcx
jae    144c <finite_alphabet_likelihoods_nodisk+0x33c>
lea    (%rdx,%rax,1),%rcx
lea    0x0(,%rcx,8),%rcx
add    %rbp,%rcx
mov    0x8(%rsp),%rdi
lea    (%rdi,%r14,8),%rdi
cmp    %rcx,%rdi
jae    144c <finite_alphabet_likelihoods_nodisk+0x33c>
xor    %r11d,%r11d
mov    %r11,%rdi
test   $0x1,%al
je     132b <finite_alphabet_likelihoods_nodisk+0x21b>
mov    %r11,%rcx
imul   0x10(%rsp),%rcx
add    %r14,%rcx
add    %r11,%rdx
mov    0x8(%rsp),%rdi
movsd  (%rdi,%rcx,8),%xmm1
mov    0x18(%rsp),%rcx
movsd  %xmm1,(%rcx,%rdx,8)
mov    %r11,%rdi
or     $0x1,%rdi
not    %r11
cmp    0x80(%rsp),%r11
je     1240 <finite_alphabet_likelihoods_nodisk+0x130>
lea    0x1(%rdi),%rcx
mov    0x10(%rsp),%rbp
imul   %rbp,%rcx
mov    0x8(%rsp),%r11
lea    (%r11,%rcx,8),%rcx
imul   %rdi,%rbp
lea    (%r11,%rbp,8),%rbp
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%r14,8),%xmm1
movsd  %xmm1,-0x8(%r12,%rdi,8)
movsd  (%rcx,%r14,8),%xmm1
movsd  %xmm1,(%r12,%rdi,8)
add    $0x2,%rdi
add    0xa0(%rsp),%r14
cmp    %rdi,%rax
jne    1360 <finite_alphabet_likelihoods_nodisk+0x250>
jmp    1240 <finite_alphabet_likelihoods_nodisk+0x130>
cmpq   $0xc,0x28(%rsp)
jae    139c <finite_alphabet_likelihoods_nodisk+0x28c>
xor    %edi,%edi
jmp    13e1 <finite_alphabet_likelihoods_nodisk+0x2d1>
mov    0x68(%rsp),%rcx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x70(%rsi,%rdi,8)
movups %xmm0,-0x60(%rsi,%rdi,8)
movups %xmm0,-0x50(%rsi,%rdi,8)
movups %xmm0,-0x40(%rsi,%rdi,8)
movups %xmm0,-0x30(%rsi,%rdi,8)
movups %xmm0,-0x20(%rsi,%rdi,8)
movups %xmm0,-0x10(%rsi,%rdi,8)
movups %xmm0,(%rsi,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rcx
jne    13b0 <finite_alphabet_likelihoods_nodisk+0x2a0>
cmpq   $0x0,0x78(%rsp)
je     1412 <finite_alphabet_likelihoods_nodisk+0x302>
lea    0x0(,%rdi,8),%rcx
add    %r13,%rcx
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,-0x10(%rcx,%rdi,1)
movups %xmm0,(%rcx,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rbx
jne    1400 <finite_alphabet_likelihoods_nodisk+0x2f0>
mov    0x30(%rsp),%rdi
mov    %rdi,%rcx
cmp    %rax,%rdi
je     1240 <finite_alphabet_likelihoods_nodisk+0x130>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movabs $0x3ff0000000000000,%rdi
mov    %rdi,(%r9,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1430 <finite_alphabet_likelihoods_nodisk+0x320>
jmp    1240 <finite_alphabet_likelihoods_nodisk+0x130>
cmpq   $0x0,0x28(%rsp)
mov    0x58(%rsp),%rbx
mov    0x50(%rsp),%r11
je     1502 <finite_alphabet_likelihoods_nodisk+0x3f2>
mov    0x38(%rsp),%rcx
lea    (%rcx,%r14,8),%rcx
mov    0x40(%rsp),%rbp
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups -0x10(%rcx),%xmm1
movups (%rcx),%xmm2
movups %xmm1,-0x30(%r15,%rdi,8)
movups %xmm2,-0x20(%r15,%rdi,8)
movups -0x10(%rcx,%rbx,1),%xmm1
movups (%rcx,%rbx,1),%xmm2
movups %xmm1,-0x10(%r15,%rdi,8)
movups %xmm2,(%r15,%rdi,8)
add    $0x8,%rdi
add    %r11,%rcx
add    $0xfffffffffffffffe,%rbp
jne    1480 <finite_alphabet_likelihoods_nodisk+0x370>
testb  $0x1,0x60(%rsp)
je     14e7 <finite_alphabet_likelihoods_nodisk+0x3d7>
mov    %rdi,%rcx
imul   0x10(%rsp),%rcx
add    %r14,%rcx
add    %rdx,%rdi
mov    0x8(%rsp),%rbp
movups 0x0(%rbp,%rcx,8),%xmm1
movups 0x10(%rbp,%rcx,8),%xmm2
mov    0x18(%rsp),%rcx
movups %xmm1,(%rcx,%rdi,8)
movups %xmm2,0x10(%rcx,%rdi,8)
mov    0x30(%rsp),%rcx
mov    %rcx,%r11
cmp    %rax,%rcx
mov    0x48(%rsp),%rbx
je     1240 <finite_alphabet_likelihoods_nodisk+0x130>
jmp    12fa <finite_alphabet_likelihoods_nodisk+0x1ea>
xor    %edi,%edi
testb  $0x1,0x60(%rsp)
jne    14bb <finite_alphabet_likelihoods_nodisk+0x3ab>
jmp    14e7 <finite_alphabet_likelihoods_nodisk+0x3d7>
xor    %eax,%eax
jmp    152b <finite_alphabet_likelihoods_nodisk+0x41b>
mov    0x2ac8(%rip),%rax
mov    (%rax),%edi
lea    0xaef(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"an observation is out of range\0A\00"
define i32 @finite_alphabet_likelihoods_nodisk(i32 %0, i32 %1, i32 %2, double* %3, i8* %4, double* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double*
%11 = alloca i8*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store double* %3, double** %10
store i8* %4, i8** %11
store double* %5, double** %12
store i32 0, i32* %13
store i32 0, i32* %14
br label %19
19: ; preds = %90, %6
%20 = load i32, i32* %14
%21 = load i32, i32* %9
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %93
23: ; preds = %19
%24 = load i8*, i8** %11
%25 = load i32, i32* %14
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, i8* %24, i64 %26
%28 = load i8, i8* %27
store i8 %28, i8* %18
%29 = load i8, i8* %18
%30 = zext i8 %29 to i32
%31 = icmp eq i32 %30, 127
br i1 %31, label %32, label %51
32: ; preds = %23
store i32 0, i32* %15
br label %33
33: ; preds = %47, %32
%34 = load i32, i32* %15
%35 = load i32, i32* %7
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load i32, i32* %14
%39 = load i32, i32* %7
%40 = mul nsw i32 %38, %39
%41 = load i32, i32* %15
%42 = add nsw i32 %40, %41
store i32 %42, i32* %17
%43 = load double*, double** %12
%44 = load i32, i32* %17
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
store double 1.000000e+00, double* %46
br label %47
47: ; preds = %37
%48 = load i32, i32* %15
%49 = add nsw i32 %48, 1
store i32 %49, i32* %15
br label %33
50: ; preds = %33
br label %89
51: ; preds = %23
%52 = load i8, i8* %18
%53 = zext i8 %52 to i32
%54 = load i32, i32* %8
%55 = icmp sge i32 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %51
%57 = load i32, i32* @stderr
%58 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %13
br label %94
59: ; preds = %51
store i32 0, i32* %15
br label %60
60: ; preds = %85, %59
%61 = load i32, i32* %15
%62 = load i32, i32* %7
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %88
64: ; preds = %60
%65 = load i32, i32* %15
%66 = load i32, i32* %8
%67 = mul nsw i32 %65, %66
%68 = load i8, i8* %18
%69 = zext i8 %68 to i32
%70 = add nsw i32 %67, %69
store i32 %70, i32* %16
%71 = load i32, i32* %14
%72 = load i32, i32* %7
%73 = mul nsw i32 %71, %72
%74 = load i32, i32* %15
%75 = add nsw i32 %73, %74
store i32 %75, i32* %17
%76 = load double*, double** %10
%77 = load i32, i32* %16
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds double, double* %76, i64 %78
%80 = load double, double* %79
%81 = load double*, double** %12
%82 = load i32, i32* %17
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, double* %81, i64 %83
store double %80, double* %84
br label %85
85: ; preds = %64
%86 = load i32, i32* %15
%87 = add nsw i32 %86, 1
store i32 %87, i32* %15
br label %60
88: ; preds = %60
br label %89
89: ; preds = %88, %50
br label %90
90: ; preds = %89
%91 = load i32, i32* %14
%92 = add nsw i32 %91, 1
store i32 %92, i32* %14
br label %19
93: ; preds = %19
br label %94
94: ; preds = %93, %56
%95 = load i32, i32* %13
ret i32 %95
}

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