#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*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
void tile_vec(double *vec, double **mat, int m, int n, int direct) {
  int i;
  int j;
  if (direct == 0) {
    for (i = 0; i < m; i++)
      for (j = 0; j < n; j++)
        mat[i][j] = vec[j];
  } else if (direct == 1) {
    for (i = 0; i < m; i++)
      for (j = 0; j < n; j++)
        mat[i][j] = vec[i];
  } else {
    printf("Invalid direction!!!\n");
    fflush(stdout);
    exit(1);
  }
}


x86 assembly (clang, -O0):
<tile_vec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jne    11c2 <tile_vec+0x92>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11bd <tile_vec+0x8d>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11aa <tile_vec+0x7a>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    116e <tile_vec+0x3e>
jmp    11af <tile_vec+0x7f>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    115b <tile_vec+0x2b>
jmp    1263 <tile_vec+0x133>
cmpl   $0x1,-0x1c(%rbp)
jne    123a <tile_vec+0x10a>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1235 <tile_vec+0x105>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1222 <tile_vec+0xf2>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e6 <tile_vec+0xb6>
jmp    1227 <tile_vec+0xf7>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11d3 <tile_vec+0xa3>
jmp    125e <tile_vec+0x12e>
lea    0xdbf(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
jmp    1263 <tile_vec+0x133>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tile_vec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
test   %r8d,%r8d
je     12f3 <tile_vec+0x1c3>
cmp    $0x1,%r8d
jne    14db <tile_vec+0x3ab>
test   %edx,%edx
jle    14cc <tile_vec+0x39c>
mov    %edx,%r14d
mov    %ecx,%r13d
mov    %r13d,%r8d
and    $0xfffffffc,%r8d
lea    -0x4(%r8),%r10
mov    %r10,0x8(%rsp)
shr    $0x2,%r10
add    $0x1,%r10
mov    %r10d,%r11d
and    $0x3,%r11d
and    $0xfffffffffffffffc,%r10
mov    %r13d,%r9d
and    $0x3,%r9d
mov    %r11,%r12
shl    $0x5,%r12
xor    %ebx,%ebx
jmp    11ad <tile_vec+0x7d>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
cmp    %r14,%rbx
je     14cc <tile_vec+0x39c>
test   %ecx,%ecx
jle    11a0 <tile_vec+0x70>
mov    (%rsi,%rbx,8),%rbp
cmp    $0x4,%ecx
jb     11df <tile_vec+0xaf>
lea    (%rdi,%rbx,8),%rax
add    $0x8,%rax
cmp    %rax,%rbp
jae    125a <tile_vec+0x12a>
lea    (%rdi,%rbx,8),%rax
lea    0x0(,%r13,8),%rdx
add    %rbp,%rdx
cmp    %rdx,%rax
jae    125a <tile_vec+0x12a>
xor    %eax,%eax
mov    %rax,%rdx
not    %rdx
add    %r13,%rdx
test   %r9,%r9
je     1215 <tile_vec+0xe5>
mov    %r9,%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%r15
jne    1200 <tile_vec+0xd0>
cmp    $0x3,%rdx
jb     11a0 <tile_vec+0x70>
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rax,8)
movsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rbp,%rax,8)
movsd  (%rdi,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rbp,%rax,8)
add    $0x4,%rax
cmp    %rax,%r13
jne    1220 <tile_vec+0xf0>
jmp    11a0 <tile_vec+0x70>
cmpq   $0xc,0x8(%rsp)
jae    1266 <tile_vec+0x136>
xor    %eax,%eax
jmp    12b2 <tile_vec+0x182>
movsd  (%rdi,%rbx,8),%xmm0
movlhps %xmm0,%xmm0
mov    %r10,%rdx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,0x0(%rbp,%rax,8)
movups %xmm0,0x10(%rbp,%rax,8)
movups %xmm0,0x20(%rbp,%rax,8)
movups %xmm0,0x30(%rbp,%rax,8)
movups %xmm0,0x40(%rbp,%rax,8)
movups %xmm0,0x50(%rbp,%rax,8)
movups %xmm0,0x60(%rbp,%rax,8)
movups %xmm0,0x70(%rbp,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rdx
jne    1280 <tile_vec+0x150>
test   %r11,%r11
je     12e2 <tile_vec+0x1b2>
movsd  (%rdi,%rbx,8),%xmm0
movlhps %xmm0,%xmm0
lea    0x10(,%rax,8),%rax
add    %rbp,%rax
xor    %edx,%edx
nopl   0x0(%rax)
movups %xmm0,-0x10(%rax,%rdx,1)
movups %xmm0,(%rax,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r12
jne    12d0 <tile_vec+0x1a0>
mov    %r8,%rax
cmp    %r13,%r8
je     11a0 <tile_vec+0x70>
jmp    11e1 <tile_vec+0xb1>
test   %edx,%edx
jle    14cc <tile_vec+0x39c>
mov    %edx,%r12d
mov    %ecx,%r15d
lea    (%rdi,%r15,8),%r8
mov    %r15d,%r11d
and    $0xfffffffc,%r11d
lea    -0x4(%r11),%rax
mov    %rax,0x8(%rsp)
shr    $0x2,%rax
add    $0x1,%rax
mov    %eax,%r14d
and    $0x3,%r14d
and    $0xfffffffffffffffc,%rax
mov    %rax,0x10(%rsp)
mov    %r15d,%r13d
and    $0x3,%r13d
lea    0x10(%rdi),%rax
mov    %rax,0x18(%rsp)
mov    %r14,0x20(%rsp)
shl    $0x5,%r14
xor    %r10d,%r10d
jmp    135d <tile_vec+0x22d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r10
cmp    %r12,%r10
je     14cc <tile_vec+0x39c>
test   %ecx,%ecx
jle    1350 <tile_vec+0x220>
mov    (%rsi,%r10,8),%rbp
cmp    $0x4,%ecx
jb     1387 <tile_vec+0x257>
cmp    %r8,%rbp
jae    1405 <tile_vec+0x2d5>
lea    0x0(,%r15,8),%rax
add    %rbp,%rax
cmp    %rdi,%rax
jbe    1405 <tile_vec+0x2d5>
xor    %r9d,%r9d
mov    %r9,%rax
not    %rax
add    %r15,%rax
test   %r13,%r13
je     13b7 <tile_vec+0x287>
mov    %r13,%rbx
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%r9,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r9,8)
add    $0x1,%r9
add    $0xffffffffffffffff,%rbx
jne    13a0 <tile_vec+0x270>
cmp    $0x3,%rax
jb     1350 <tile_vec+0x220>
nopl   (%rax)
movsd  (%rdi,%r9,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r9,8)
movsd  0x8(%rdi,%r9,8),%xmm0
movsd  %xmm0,0x8(%rbp,%r9,8)
movsd  0x10(%rdi,%r9,8),%xmm0
movsd  %xmm0,0x10(%rbp,%r9,8)
movsd  0x18(%rdi,%r9,8),%xmm0
movsd  %xmm0,0x18(%rbp,%r9,8)
add    $0x4,%r9
cmp    %r9,%r15
jne    13c0 <tile_vec+0x290>
jmp    1350 <tile_vec+0x220>
cmpq   $0xc,0x8(%rsp)
jae    1411 <tile_vec+0x2e1>
xor    %eax,%eax
jmp    1479 <tile_vec+0x349>
mov    0x10(%rsp),%rbx
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movups (%rdi,%rax,8),%xmm0
movups 0x10(%rdi,%rax,8),%xmm1
movups %xmm0,0x0(%rbp,%rax,8)
movups %xmm1,0x10(%rbp,%rax,8)
movups 0x20(%rdi,%rax,8),%xmm0
movups 0x30(%rdi,%rax,8),%xmm1
movups %xmm0,0x20(%rbp,%rax,8)
movups %xmm1,0x30(%rbp,%rax,8)
movups 0x40(%rdi,%rax,8),%xmm0
movups 0x50(%rdi,%rax,8),%xmm1
movups %xmm0,0x40(%rbp,%rax,8)
movups %xmm1,0x50(%rbp,%rax,8)
movups 0x60(%rdi,%rax,8),%xmm0
movups 0x70(%rdi,%rax,8),%xmm1
movups %xmm0,0x60(%rbp,%rax,8)
movups %xmm1,0x70(%rbp,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rbx
jne    1420 <tile_vec+0x2f0>
cmpq   $0x0,0x20(%rsp)
je     14bb <tile_vec+0x38b>
lea    0x10(,%rax,8),%rbx
add    %rbp,%rbx
mov    0x18(%rsp),%rdx
lea    (%rdx,%rax,8),%rax
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups -0x10(%rax,%rdx,1),%xmm0
movups (%rax,%rdx,1),%xmm1
movups %xmm0,-0x10(%rbx,%rdx,1)
movups %xmm1,(%rbx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r14
jne    14a0 <tile_vec+0x370>
mov    %r11,%r9
cmp    %r15,%r11
je     1350 <tile_vec+0x220>
jmp    138a <tile_vec+0x25a>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb1e(%rip),%rdi
call   1030 <puts@plt>
mov    0x2af2(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

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

LLVM IR (-O2):
@stdout = global i32 0
@str = [21 x i8] c"Invalid direction!!!\00"
define void @tile_vec(double* nocapture %0, double** nocapture %1, i32 %2, i32 %3, i32 %4) {
switch i32 %4, label %275 [
i32 0, label %25
i32 1, label %6
]
6: ; preds = %5
%7 = icmp sgt i32 %2, 0
br i1 %7, label %8, label %280
8: ; preds = %6
%9 = icmp sgt i32 %3, 0
%10 = zext i32 %2 to i64
%11 = zext i32 %3 to i64
%12 = and i64 %11, 4294967292
%13 = add nsw i64 %12, -4
%14 = lshr exact i64 %13, 2
%15 = add nuw nsw i64 %14, 1
%16 = icmp ult i32 %3, 4
%17 = and i64 %11, 4294967292
%18 = and i64 %15, 3
%19 = icmp ult i64 %13, 12
%20 = and i64 %15, 9223372036854775804
%21 = icmp eq i64 %18, 0
%22 = icmp eq i64 %17, %11
%23 = and i64 %11, 3
%24 = icmp eq i64 %23, 0
br label %162
25: ; preds = %5
%26 = icmp sgt i32 %2, 0
br i1 %26, label %27, label %280
27: ; preds = %25
%28 = icmp sgt i32 %3, 0
%29 = zext i32 %2 to i64
%30 = zext i32 %3 to i64
%31 = getelementptr double, double* %0, i64 %30
%32 = and i64 %30, 4294967292
%33 = add nsw i64 %32, -4
%34 = lshr exact i64 %33, 2
%35 = add nuw nsw i64 %34, 1
%36 = icmp ult i32 %3, 4
%37 = and i64 %30, 4294967292
%38 = and i64 %35, 3
%39 = icmp ult i64 %33, 12
%40 = and i64 %35, 9223372036854775804
%41 = icmp eq i64 %38, 0
%42 = icmp eq i64 %37, %30
%43 = and i64 %30, 3
%44 = icmp eq i64 %43, 0
br label %45
45: ; preds = %27, %159
%46 = phi i64 [ 0, %27 ], [ %160, %159 ]
br i1 %28, label %47, label %159
47: ; preds = %45
%48 = getelementptr inbounds double*, double** %1, i64 %46
%49 = load double*, double** %48
br i1 %36, label %124, label %50
50: ; preds = %47
%51 = getelementptr double, double* %49, i64 %30
%52 = icmp ult double* %49, %31
%53 = icmp ugt double* %51, %0
%54 = and i1 %52, %53
br i1 %54, label %124, label %55
55: ; preds = %50
br i1 %39, label %105, label %56
56: ; preds = %55, %56
%57 = phi i64 [ %102, %56 ], [ 0, %55 ]
%58 = phi i64 [ %103, %56 ], [ 0, %55 ]
%59 = getelementptr inbounds double, double* %0, i64 %57
%60 = bitcast double* %59 to <2 x double>*
%61 = load <2 x double>, <2 x double>* %60
%62 = getelementptr inbounds double, double* %59, i64 2
%63 = bitcast double* %62 to <2 x double>*
%64 = load <2 x double>, <2 x double>* %63
%65 = getelementptr inbounds double, double* %49, i64 %57
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> %61, <2 x double>* %66
%67 = getelementptr inbounds double, double* %65, i64 2
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> %64, <2 x double>* %68
%69 = or i64 %57, 4
%70 = getelementptr inbounds double, double* %0, i64 %69
%71 = bitcast double* %70 to <2 x double>*
%72 = load <2 x double>, <2 x double>* %71
%73 = getelementptr inbounds double, double* %70, i64 2
%74 = bitcast double* %73 to <2 x double>*
%75 = load <2 x double>, <2 x double>* %74
%76 = getelementptr inbounds double, double* %49, i64 %69
%77 = bitcast double* %76 to <2 x double>*
store <2 x double> %72, <2 x double>* %77
%78 = getelementptr inbounds double, double* %76, i64 2
%79 = bitcast double* %78 to <2 x double>*
store <2 x double> %75, <2 x double>* %79
%80 = or i64 %57, 8
%81 = getelementptr inbounds double, double* %0, i64 %80
%82 = bitcast double* %81 to <2 x double>*
%83 = load <2 x double>, <2 x double>* %82
%84 = getelementptr inbounds double, double* %81, i64 2
%85 = bitcast double* %84 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = getelementptr inbounds double, double* %49, i64 %80
%88 = bitcast double* %87 to <2 x double>*
store <2 x double> %83, <2 x double>* %88
%89 = getelementptr inbounds double, double* %87, i64 2
%90 = bitcast double* %89 to <2 x double>*
store <2 x double> %86, <2 x double>* %90
%91 = or i64 %57, 12
%92 = getelementptr inbounds double, double* %0, i64 %91
%93 = bitcast double* %92 to <2 x double>*
%94 = load <2 x double>, <2 x double>* %93
%95 = getelementptr inbounds double, double* %92, i64 2
%96 = bitcast double* %95 to <2 x double>*
%97 = load <2 x double>, <2 x double>* %96
%98 = getelementptr inbounds double, double* %49, i64 %91
%99 = bitcast double* %98 to <2 x double>*
store <2 x double> %94, <2 x double>* %99
%100 = getelementptr inbounds double, double* %98, i64 2
%101 = bitcast double* %100 to <2 x double>*
store <2 x double> %97, <2 x double>* %101
%102 = add nuw i64 %57, 16
%103 = add nuw i64 %58, 4
%104 = icmp eq i64 %103, %40
br i1 %104, label %105, label %56
105: ; preds = %56, %55
%106 = phi i64 [ 0, %55 ], [ %102, %56 ]
br i1 %41, label %123, label %107
107: ; preds = %105, %107
%108 = phi i64 [ %120, %107 ], [ %106, %105 ]
%109 = phi i64 [ %121, %107 ], [ 0, %105 ]
%110 = getelementptr inbounds double, double* %0, i64 %108
%111 = bitcast double* %110 to <2 x double>*
%112 = load <2 x double>, <2 x double>* %111
%113 = getelementptr inbounds double, double* %110, i64 2
%114 = bitcast double* %113 to <2 x double>*
%115 = load <2 x double>, <2 x double>* %114
%116 = getelementptr inbounds double, double* %49, i64 %108
%117 = bitcast double* %116 to <2 x double>*
store <2 x double> %112, <2 x double>* %117
%118 = getelementptr inbounds double, double* %116, i64 2
%119 = bitcast double* %118 to <2 x double>*
store <2 x double> %115, <2 x double>* %119
%120 = add nuw i64 %108, 4
%121 = add i64 %109, 1
%122 = icmp eq i64 %121, %38
br i1 %122, label %123, label %107
123: ; preds = %107, %105
br i1 %42, label %159, label %124
124: ; preds = %50, %47, %123
%125 = phi i64 [ 0, %50 ], [ 0, %47 ], [ %37, %123 ]
%126 = xor i64 %125, -1
%127 = add nsw i64 %126, %30
br i1 %44, label %137, label %128
128: ; preds = %124, %128
%129 = phi i64 [ %134, %128 ], [ %125, %124 ]
%130 = phi i64 [ %135, %128 ], [ 0, %124 ]
%131 = getelementptr inbounds double, double* %0, i64 %129
%132 = load double, double* %131
%133 = getelementptr inbounds double, double* %49, i64 %129
store double %132, double* %133
%134 = add nuw nsw i64 %129, 1
%135 = add i64 %130, 1
%136 = icmp eq i64 %135, %43
br i1 %136, label %137, label %128
137: ; preds = %128, %124
%138 = phi i64 [ %125, %124 ], [ %134, %128 ]
%139 = icmp ult i64 %127, 3
br i1 %139, label %159, label %140
140: ; preds = %137, %140
%141 = phi i64 [ %157, %140 ], [ %138, %137 ]
%142 = getelementptr inbounds double, double* %0, i64 %141
%143 = load double, double* %142
%144 = getelementptr inbounds double, double* %49, i64 %141
store double %143, double* %144
%145 = add nuw nsw i64 %141, 1
%146 = getelementptr inbounds double, double* %0, i64 %145
%147 = load double, double* %146
%148 = getelementptr inbounds double, double* %49, i64 %145
store double %147, double* %148
%149 = add nuw nsw i64 %141, 2
%150 = getelementptr inbounds double, double* %0, i64 %149
%151 = load double, double* %150
%152 = getelementptr inbounds double, double* %49, i64 %149
store double %151, double* %152
%153 = add nuw nsw i64 %141, 3
%154 = getelementptr inbounds double, double* %0, i64 %153
%155 = load double, double* %154
%156 = getelementptr inbounds double, double* %49, i64 %153
store double %155, double* %156
%157 = add nuw nsw i64 %141, 4
%158 = icmp eq i64 %157, %30
br i1 %158, label %159, label %140
159: ; preds = %137, %140, %123, %45
%160 = add nuw nsw i64 %46, 1
%161 = icmp eq i64 %160, %29
br i1 %161, label %280, label %45
162: ; preds = %8, %272
%163 = phi i64 [ 0, %8 ], [ %273, %272 ]
%164 = getelementptr double, double* %0, i64 %163
%165 = add nuw i64 %163, 1
%166 = getelementptr double, double* %0, i64 %165
br i1 %9, label %167, label %272
167: ; preds = %162
%168 = getelementptr inbounds double, double* %0, i64 %163
%169 = getelementptr inbounds double*, double** %1, i64 %163
%170 = load double*, double** %169
br i1 %16, label %242, label %171
171: ; preds = %167
%172 = getelementptr double, double* %170, i64 %11
%173 = icmp ult double* %170, %166
%174 = icmp ult double* %164, %172
%175 = and i1 %173, %174
br i1 %175, label %242, label %176
176: ; preds = %171
br i1 %19, label %223, label %177
177: ; preds = %176
%178 = load double, double* %168
%179 = insertelement <2 x double> poison, double %178, i64 0
%180 = shufflevector <2 x double> %179, <2 x double> poison, <2 x i32> zeroinitializer
%181 = insertelement <2 x double> poison, double %178, i64 0
%182 = shufflevector <2 x double> %181, <2 x double> poison, <2 x i32> zeroinitializer
%183 = load double, double* %168
%184 = insertelement <2 x double> poison, double %183, i64 0
%185 = shufflevector <2 x double> %184, <2 x double> poison, <2 x i32> zeroinitializer
%186 = insertelement <2 x double> poison, double %183, i64 0
%187 = shufflevector <2 x double> %186, <2 x double> poison, <2 x i32> zeroinitializer
%188 = load double, double* %168
%189 = insertelement <2 x double> poison, double %188, i64 0
%190 = shufflevector <2 x double> %189, <2 x double> poison, <2 x i32> zeroinitializer
%191 = insertelement <2 x double> poison, double %188, i64 0
%192 = shufflevector <2 x double> %191, <2 x double> poison, <2 x i32> zeroinitializer
%193 = load double, double* %168
%194 = insertelement <2 x double> poison, double %193, i64 0
%195 = shufflevector <2 x double> %194, <2 x double> poison, <2 x i32> zeroinitializer
%196 = insertelement <2 x double> poison, double %193, i64 0
%197 = shufflevector <2 x double> %196, <2 x double> poison, <2 x i32> zeroinitializer
br label %198
198: ; preds = %198, %177
%199 = phi i64 [ 0, %177 ], [ %220, %198 ]
%200 = phi i64 [ 0, %177 ], [ %221, %198 ]
%201 = getelementptr inbounds double, double* %170, i64 %199
%202 = bitcast double* %201 to <2 x double>*
store <2 x double> %180, <2 x double>* %202
%203 = getelementptr inbounds double, double* %201, i64 2
%204 = bitcast double* %203 to <2 x double>*
store <2 x double> %182, <2 x double>* %204
%205 = or i64 %199, 4
%206 = getelementptr inbounds double, double* %170, i64 %205
%207 = bitcast double* %206 to <2 x double>*
store <2 x double> %185, <2 x double>* %207
%208 = getelementptr inbounds double, double* %206, i64 2
%209 = bitcast double* %208 to <2 x double>*
store <2 x double> %187, <2 x double>* %209
%210 = or i64 %199, 8
%211 = getelementptr inbounds double, double* %170, i64 %210
%212 = bitcast double* %211 to <2 x double>*
store <2 x double> %190, <2 x double>* %212
%213 = getelementptr inbounds double, double* %211, i64 2
%214 = bitcast double* %213 to <2 x double>*
store <2 x double> %192, <2 x double>* %214
%215 = or i64 %199, 12
%216 = getelementptr inbounds double, double* %170, i64 %215
%217 = bitcast double* %216 to <2 x double>*
store <2 x double> %195, <2 x double>* %217
%218 = getelementptr inbounds double, double* %216, i64 2
%219 = bitcast double* %218 to <2 x double>*
store <2 x double> %197, <2 x double>* %219
%220 = add nuw i64 %199, 16
%221 = add nuw i64 %200, 4
%222 = icmp eq i64 %221, %20
br i1 %222, label %223, label %198
223: ; preds = %198, %176
%224 = phi i64 [ 0, %176 ], [ %220, %198 ]
br i1 %21, label %241, label %225
225: ; preds = %223
%226 = load double, double* %168
%227 = insertelement <2 x double> poison, double %226, i64 0
%228 = shufflevector <2 x double> %227, <2 x double> poison, <2 x i32> zeroinitializer
%229 = insertelement <2 x double> poison, double %226, i64 0
%230 = shufflevector <2 x double> %229, <2 x double> poison, <2 x i32> zeroinitializer
br label %231
231: ; preds = %231, %225
%232 = phi i64 [ %224, %225 ], [ %238, %231 ]
%233 = phi i64 [ 0, %225 ], [ %239, %231 ]
%234 = getelementptr inbounds double, double* %170, i64 %232
%235 = bitcast double* %234 to <2 x double>*
store <2 x double> %228, <2 x double>* %235
%236 = getelementptr inbounds double, double* %234, i64 2
%237 = bitcast double* %236 to <2 x double>*
store <2 x double> %230, <2 x double>* %237
%238 = add nuw i64 %232, 4
%239 = add i64 %233, 1
%240 = icmp eq i64 %239, %18
br i1 %240, label %241, label %231
241: ; preds = %231, %223
br i1 %22, label %272, label %242
242: ; preds = %171, %167, %241
%243 = phi i64 [ 0, %171 ], [ 0, %167 ], [ %17, %241 ]
%244 = xor i64 %243, -1
%245 = add nsw i64 %244, %11
br i1 %24, label %254, label %246
246: ; preds = %242, %246
%247 = phi i64 [ %251, %246 ], [ %243, %242 ]
%248 = phi i64 [ %252, %246 ], [ 0, %242 ]
%249 = load double, double* %168
%250 = getelementptr inbounds double, double* %170, i64 %247
store double %249, double* %250
%251 = add nuw nsw i64 %247, 1
%252 = add i64 %248, 1
%253 = icmp eq i64 %252, %23
br i1 %253, label %254, label %246
254: ; preds = %246, %242
%255 = phi i64 [ %243, %242 ], [ %251, %246 ]
%256 = icmp ult i64 %245, 3
br i1 %256, label %272, label %257
257: ; preds = %254, %257
%258 = phi i64 [ %270, %257 ], [ %255, %254 ]
%259 = load double, double* %168
%260 = getelementptr inbounds double, double* %170, i64 %258
store double %259, double* %260
%261 = add nuw nsw i64 %258, 1
%262 = load double, double* %168
%263 = getelementptr inbounds double, double* %170, i64 %261
store double %262, double* %263
%264 = add nuw nsw i64 %258, 2
%265 = load double, double* %168
%266 = getelementptr inbounds double, double* %170, i64 %264
store double %265, double* %266
%267 = add nuw nsw i64 %258, 3
%268 = load double, double* %168
%269 = getelementptr inbounds double, double* %170, i64 %267
store double %268, double* %269
%270 = add nuw nsw i64 %258, 4
%271 = icmp eq i64 %270, %11
br i1 %271, label %272, label %257
272: ; preds = %254, %257, %241, %162
%273 = add nuw nsw i64 %163, 1
%274 = icmp eq i64 %273, %10
br i1 %274, label %280, label %162
275: ; preds = %5
%276 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%277 = load i32, i32* @stdout
%278 = tail call i32 @fflush(i32 %277)
%279 = tail call i32 @exit(i32 1)
unreachable
280: ; preds = %272, %159, %6, %25
ret void
}