#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*/ clr_file(char *);
int /*<<< orphan*/ file2mtrx(char *, int, int **);
int get_file_mtrx_size(char *);
scalar_t__ hadamard(int, int **);
int /*<<< orphan*/ mtrx2file(char *, int, int **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ wrt2file(char *, char *);
void get_hadamard(char *filename) {
  clr_file("hadamard.txt");
  int mtrx_size = get_file_mtrx_size(filename);
  if (mtrx_size == 4 || mtrx_size == 8 || mtrx_size == 16) {
    int mat[mtrx_size][mtrx_size];
    file2mtrx(filename, mtrx_size, mat);
    if (hadamard(mtrx_size, mat)) {
      wrt2file("hadamard.txt", "Girilen matris hadamard matristir\n\n");
      printf("\nGirilen matris hadamard matristir\n");
    } else {
      wrt2file("hadamard.txt", "Girilen matris hadamard degildir\n\n");
      printf("\nGirilen matris hadamard degildir\n");
    }
    int i, j, ioff, joff, off_cnt;
    int sub_mtrx_size;
    for (sub_mtrx_size = mtrx_size; sub_mtrx_size > 1; sub_mtrx_size--) {
      int tmp_mtrx[sub_mtrx_size][sub_mtrx_size];
      off_cnt = mtrx_size - sub_mtrx_size + 1;
      for (ioff = 0; ioff < off_cnt; ioff++) {
        for (joff = 0; joff < off_cnt; joff++) {
          for (i = 0; i < sub_mtrx_size; i++) {
            for (j = 0; j < sub_mtrx_size; j++) {
              tmp_mtrx[i][j] = mat[i + ioff][j + joff];
            }
          }
          if (hadamard(sub_mtrx_size, tmp_mtrx)) {
            mtrx2file("hadamard.txt", sub_mtrx_size, tmp_mtrx);
          }
        }
      }
    }
  } else {
    printf("get_hadamart(): Hatali matris formati\n");
  }
}


x86 assembly (clang, -O0):
<get_hadamard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe7a(%rip),%rdi
call   1030 <clr_file@plt>
mov    -0x8(%rbp),%rdi
call   1070 <get_file_mtrx_size@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
je     11b5 <get_hadamard+0x45>
cmpl   $0x8,-0xc(%rbp)
je     11b5 <get_hadamard+0x45>
cmpl   $0x10,-0xc(%rbp)
jne    13cf <get_hadamard+0x25f>
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,%rax
mov    %rax,-0x68(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x18(%rbp)
mov    %rcx,%rdx
imul   %rdx,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x60(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1060 <file2mtrx@plt>
mov    -0x60(%rbp),%rsi
mov    -0xc(%rbp),%edi
call   1050 <hadamard@plt>
cmp    $0x0,%rax
je     1236 <get_hadamard+0xc6>
lea    0xde7(%rip),%rdi
lea    0xded(%rip),%rsi
call   1090 <wrt2file@plt>
lea    0xe05(%rip),%rdi
call   1040 <printf@plt>
jmp    1255 <get_hadamard+0xe5>
lea    0xdc3(%rip),%rdi
lea    0xe11(%rip),%rsi
call   1090 <wrt2file@plt>
lea    0xe28(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x1,-0x40(%rbp)
jle    13c3 <get_hadamard+0x253>
mov    -0x40(%rbp),%eax
mov    %eax,%ecx
mov    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    %rsp,%rdx
mov    %rdx,-0x48(%rbp)
mov    %rcx,%rdx
imul   %rdx,%rdx
lea    0xf(,%rdx,4),%rsi
and    $0xfffffffffffffff0,%rsi
mov    %rsp,%rdx
sub    %rsi,%rdx
mov    %rdx,-0x70(%rbp)
mov    %rdx,%rsp
mov    %rcx,-0x50(%rbp)
mov    %rax,-0x58(%rbp)
mov    -0xc(%rbp),%eax
sub    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    13ae <get_hadamard+0x23e>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    139b <get_hadamard+0x22b>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    135f <get_hadamard+0x1ef>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x40(%rbp),%eax
jge    134c <get_hadamard+0x1dc>
mov    -0x70(%rbp),%rax
mov    -0x78(%rbp),%rsi
mov    -0x60(%rbp),%rcx
mov    -0x68(%rbp),%rdi
mov    -0x2c(%rbp),%edx
add    -0x34(%rbp),%edx
movslq %edx,%rdx
imul   %rdi,%rdx
shl    $0x2,%rdx
add    %rdx,%rcx
mov    -0x30(%rbp),%edx
add    -0x38(%rbp),%edx
movslq %edx,%rdx
mov    (%rcx,%rdx,4),%edx
movslq -0x2c(%rbp),%rcx
imul   %rsi,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12ec <get_hadamard+0x17c>
jmp    1351 <get_hadamard+0x1e1>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12d9 <get_hadamard+0x169>
mov    -0x70(%rbp),%rsi
mov    -0x40(%rbp),%edi
call   1050 <hadamard@plt>
cmp    $0x0,%rax
je     1388 <get_hadamard+0x218>
mov    -0x70(%rbp),%rdx
mov    -0x40(%rbp),%esi
lea    0xc7d(%rip),%rdi
call   1080 <mtrx2file@plt>
jmp    138d <get_hadamard+0x21d>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12c6 <get_hadamard+0x156>
jmp    13a0 <get_hadamard+0x230>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12b3 <get_hadamard+0x143>
mov    -0x48(%rbp),%rax
mov    %rax,%rsp
mov    -0x40(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x40(%rbp)
jmp    125b <get_hadamard+0xeb>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
jmp    13db <get_hadamard+0x26b>
lea    0xcc5(%rip),%rdi
call   1040 <printf@plt>
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_hadamard>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %rdi,%r14
lea    0xe62(%rip),%rdi
call   1030 <clr_file@plt>
mov    %r14,%rdi
call   1080 <get_file_mtrx_size@plt>
cmp    $0x10,%eax
ja     14dc <get_hadamard+0x35c>
mov    %eax,%ebx
mov    $0x10110,%eax
bt     %ebx,%eax
jae    14dc <get_hadamard+0x35c>
mov    %rsp,-0x70(%rbp)
mov    %ebx,%r15d
mov    %r15,%rax
imul   %r15,%rax
mov    %rsp,%r12
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r12,%rdx
call   1060 <file2mtrx@plt>
mov    %ebx,%edi
mov    %r12,%rsi
call   1050 <hadamard@plt>
test   %rax,%rax
lea    0xe29(%rip),%rax
lea    0xdfe(%rip),%rsi
cmove  %rax,%rsi
lea    0xe60(%rip),%rax
lea    0xe7b(%rip),%r14
cmove  %rax,%r14
lea    0xdd4(%rip),%rdi
call   10a0 <wrt2file@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0x0(,%r15,4),%rax
add    $0xffffffff,%ebx
mov    %r15,%rcx
neg    %rcx
mov    %rcx,-0xc0(%rbp)
mov    %r12,-0x48(%rbp)
lea    (%r12,%r15,4),%rcx
mov    %rcx,-0x78(%rbp)
lea    0x0(,%r15,8),%rcx
mov    %rcx,-0xe8(%rbp)
mov    $0x1,%edx
mov    %rdx,-0x38(%rbp)
xor    %edx,%edx
mov    %rax,-0x40(%rbp)
mov    %r15,-0x30(%rbp)
mov    %rbx,-0x80(%rbp)
jmp    12c4 <get_hadamard+0x144>
cs nopw 0x0(%rax,%rax,1)
nop
mov    -0x88(%rbp),%rsp
add    $0xffffffffffffffff,%r15
mov    -0x90(%rbp),%rdx
add    $0x1,%rdx
addq   $0x1,-0x38(%rbp)
mov    -0x58(%rbp),%rax
add    $0xfffffffffffffffc,%rax
add    $0xfffffffffffffff8,%rcx
mov    -0x80(%rbp),%rbx
cmp    %rbx,%rdx
je     14c9 <get_hadamard+0x349>
mov    %rax,-0x58(%rbp)
mov    %rcx,-0x60(%rbp)
mov    %rsp,-0x88(%rbp)
mov    %r15,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,-0xf0(%rbp)
mov    %rdx,%rax
not    %rax
mov    %rax,-0xd0(%rbp)
mov    -0x30(%rbp),%rax
sub    %rdx,%rax
mov    %rax,-0xb0(%rbp)
mov    %rdx,-0x90(%rbp)
lea    0x0(,%rdx,4),%rax
mov    -0x40(%rbp),%r12
sub    %rax,%r12
mov    %r15,%rax
imul   %r15,%rax
mov    %rsp,%r14
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    -0x48(%rbp),%rax
mov    -0x78(%rbp),%rsi
xor    %edi,%edi
mov    %r14,-0xc8(%rbp)
mov    %r15,-0xd8(%rbp)
jmp    1380 <get_hadamard+0x200>
nopl   0x0(%rax,%rax,1)
mov    -0x98(%rbp),%rdi
add    $0x1,%rdi
mov    -0x40(%rbp),%rax
mov    -0xa0(%rbp),%rsi
add    %rax,%rsi
mov    -0xa8(%rbp),%rdx
add    %rax,%rdx
mov    %rdx,%rax
cmp    -0x38(%rbp),%rdi
je     1290 <get_hadamard+0x110>
mov    %rdi,-0x98(%rbp)
imul   -0x30(%rbp),%rdi
mov    %rdi,-0xb8(%rbp)
mov    %rax,-0xa8(%rbp)
mov    %rsi,-0xa0(%rbp)
xor    %ebx,%ebx
jmp    13ce <get_hadamard+0x24e>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%rbx
mov    -0x50(%rbp),%rsi
add    $0x4,%rsi
mov    -0x68(%rbp),%rax
add    $0x4,%rax
cmp    -0x38(%rbp),%rbx
mov    -0x60(%rbp),%rcx
je     1350 <get_hadamard+0x1d0>
mov    %rbx,-0xe0(%rbp)
mov    %rsi,-0x50(%rbp)
mov    %r12,%rbx
mov    %rax,-0x68(%rbp)
mov    -0xd0(%rbp),%rax
cmp    -0xc0(%rbp),%rax
jne    1400 <get_hadamard+0x280>
xor    %r13d,%r13d
jmp    144f <get_hadamard+0x2cf>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %r12d,%r12d
xor    %r13d,%r13d
mov    -0x50(%rbp),%r15
nopw   0x0(%rax,%rax,1)
mov    -0x68(%rbp),%rax
lea    (%rax,%r12,1),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1070 <memcpy@plt>
lea    (%r15,%r12,1),%rsi
mov    -0x58(%rbp),%rax
lea    (%r14,%rax,1),%rdi
mov    %rbx,%rdx
call   1070 <memcpy@plt>
add    $0x2,%r13
add    -0xe8(%rbp),%r12
add    -0x60(%rbp),%r14
cmp    %r13,-0xf0(%rbp)
jne    1410 <get_hadamard+0x290>
mov    -0xd8(%rbp),%r15
test   $0x1,%r15b
mov    -0xc8(%rbp),%r14
mov    %rbx,%r12
mov    -0xe0(%rbp),%rbx
je     149e <get_hadamard+0x31e>
mov    -0xb8(%rbp),%rax
add    %rbx,%rax
mov    -0xb0(%rbp),%rcx
imul   %r13,%rcx
imul   -0x30(%rbp),%r13
add    %rax,%r13
mov    -0x48(%rbp),%rax
lea    (%rax,%r13,4),%rsi
lea    (%r14,%rcx,4),%rdi
mov    %r12,%rdx
call   1070 <memcpy@plt>
mov    %r15d,%edi
mov    %r14,%rsi
call   1050 <hadamard@plt>
test   %rax,%rax
je     13b0 <get_hadamard+0x230>
lea    0xb47(%rip),%rdi
mov    %r15d,%esi
mov    %r14,%rdx
call   1090 <mtrx2file@plt>
jmp    13b0 <get_hadamard+0x230>
mov    -0x70(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb71(%rip),%rdi
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"hadamard.txt\00"
@.str.1 = [36 x i8] c"Girilen matris hadamard matristir\0A\0A\00"
@.str.2 = [36 x i8] c"\0AGirilen matris hadamard matristir\0A\00"
@.str.3 = [35 x i8] c"Girilen matris hadamard degildir\0A\0A\00"
@.str.4 = [35 x i8] c"\0AGirilen matris hadamard degildir\0A\00"
@.str.5 = [39 x i8] c"get_hadamart(): Hatali matris formati\0A\00"
define void @get_hadamard(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i64
%15 = alloca i64
store i8* %0, i8** %2
%16 = call i32 @clr_file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%17 = load i8*, i8** %2
%18 = call i32 @get_file_mtrx_size(i8* %17)
store i32 %18, i32* %3
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 4
br i1 %20, label %27, label %21
21: ; preds = %1
%22 = load i32, i32* %3
%23 = icmp eq i32 %22, 8
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 16
br i1 %26, label %27, label %136
27: ; preds = %24, %21, %1
%28 = load i32, i32* %3
%29 = zext i32 %28 to i64
%30 = load i32, i32* %3
%31 = zext i32 %30 to i64
%32 = call i8* @llvm.stacksave()
store i8* %32, i8** %4
%33 = mul nuw i64 %29, %31
%34 = alloca i32, i64 %33
store i64 %29, i64* %5
store i64 %31, i64* %6
%35 = load i8*, i8** %2
%36 = load i32, i32* %3
%37 = bitcast i32* %34 to i32**
%38 = call i32 @file2mtrx(i8* %35, i32 %36, i32** %37)
%39 = load i32, i32* %3
%40 = bitcast i32* %34 to i32**
%41 = call i64 @hadamard(i32 %39, i32** %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %27
%44 = call i32 @wrt2file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%45 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
br label %49
46: ; preds = %27
%47 = call i32 @wrt2file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%48 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
br label %49
49: ; preds = %46, %43
%50 = load i32, i32* %3
store i32 %50, i32* %12
br label %51
51: ; preds = %131, %49
%52 = load i32, i32* %12
%53 = icmp sgt i32 %52, 1
br i1 %53, label %54, label %134
54: ; preds = %51
%55 = load i32, i32* %12
%56 = zext i32 %55 to i64
%57 = load i32, i32* %12
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
store i8* %59, i8** %13
%60 = mul nuw i64 %56, %58
%61 = alloca i32, i64 %60
store i64 %56, i64* %14
store i64 %58, i64* %15
%62 = load i32, i32* %3
%63 = load i32, i32* %12
%64 = sub nsw i32 %62, %63
%65 = add nsw i32 %64, 1
store i32 %65, i32* %11
store i32 0, i32* %9
br label %66
66: ; preds = %126, %54
%67 = load i32, i32* %9
%68 = load i32, i32* %11
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %129
70: ; preds = %66
store i32 0, i32* %10
br label %71
71: ; preds = %122, %70
%72 = load i32, i32* %10
%73 = load i32, i32* %11
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %125
75: ; preds = %71
store i32 0, i32* %7
br label %76
76: ; preds = %109, %75
%77 = load i32, i32* %7
%78 = load i32, i32* %12
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %112
80: ; preds = %76
store i32 0, i32* %8
br label %81
81: ; preds = %105, %80
%82 = load i32, i32* %8
%83 = load i32, i32* %12
%84 = icmp slt i32 %82, %83
br i1 %84, label %85, label %108
85: ; preds = %81
%86 = load i32, i32* %7
%87 = load i32, i32* %9
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = mul nsw i64 %89, %31
%91 = getelementptr inbounds i32, i32* %34, i64 %90
%92 = load i32, i32* %8
%93 = load i32, i32* %10
%94 = add nsw i32 %92, %93
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, i32* %91, i64 %95
%97 = load i32, i32* %96
%98 = load i32, i32* %7
%99 = sext i32 %98 to i64
%100 = mul nsw i64 %99, %58
%101 = getelementptr inbounds i32, i32* %61, i64 %100
%102 = load i32, i32* %8
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, i32* %101, i64 %103
store i32 %97, i32* %104
br label %105
105: ; preds = %85
%106 = load i32, i32* %8
%107 = add nsw i32 %106, 1
store i32 %107, i32* %8
br label %81
108: ; preds = %81
br label %109
109: ; preds = %108
%110 = load i32, i32* %7
%111 = add nsw i32 %110, 1
store i32 %111, i32* %7
br label %76
112: ; preds = %76
%113 = load i32, i32* %12
%114 = bitcast i32* %61 to i32**
%115 = call i64 @hadamard(i32 %113, i32** %114)
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %121
117: ; preds = %112
%118 = load i32, i32* %12
%119 = bitcast i32* %61 to i32**
%120 = call i32 @mtrx2file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %118, i32** %119)
br label %121
121: ; preds = %117, %112
br label %122
122: ; preds = %121
%123 = load i32, i32* %10
%124 = add nsw i32 %123, 1
store i32 %124, i32* %10
br label %71
125: ; preds = %71
br label %126
126: ; preds = %125
%127 = load i32, i32* %9
%128 = add nsw i32 %127, 1
store i32 %128, i32* %9
br label %66
129: ; preds = %66
%130 = load i8*, i8** %13
br label %131
131: ; preds = %129
%132 = load i32, i32* %12
%133 = add nsw i32 %132, -1
store i32 %133, i32* %12
br label %51
134: ; preds = %51
%135 = load i8*, i8** %4
br label %138
136: ; preds = %24
%137 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
br label %138
138: ; preds = %136, %134
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"hadamard.txt\00"
@.str.1 = [36 x i8] c"Girilen matris hadamard matristir\0A\0A\00"
@.str.3 = [35 x i8] c"Girilen matris hadamard degildir\0A\0A\00"
@str = [38 x i8] c"get_hadamart(): Hatali matris formati\00"
@str.6 = [34 x i8] c"\0AGirilen matris hadamard degildir\00"
@str.7 = [35 x i8] c"\0AGirilen matris hadamard matristir\00"
define void @get_hadamard(i8* %0) {
%2 = tail call i32 @clr_file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @get_file_mtrx_size(i8* %0)
switch i32 %3, label %92 [
i32 16, label %4
i32 8, label %4
i32 4, label %4
]
4: ; preds = %1, %1, %1
%5 = zext i32 %3 to i64
%6 = tail call i8* @llvm.stacksave()
%7 = mul nuw nsw i64 %5, %5
%8 = alloca i32, i64 %7
%9 = bitcast i32* %8 to i32**
%10 = call i32 @file2mtrx(i8* %0, i32 %3, i32** %9)
%11 = call i64 @hadamard(i32 %3, i32** %9)
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0)
%14 = select i1 %12, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @str.6, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @str.7, i64 0, i64 0)
%15 = call i32 @wrt2file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %13)
%16 = call i32 @puts(i8* dereferenceable(1) %14)
%17 = shl nuw nsw i64 %5, 2
%18 = add nsw i32 %3, -1
%19 = zext i32 %18 to i64
%20 = sub nsw i64 0, %5
br label %21
21: ; preds = %86, %4
%22 = phi i64 [ %5, %4 ], [ %87, %86 ]
%23 = phi i64 [ 1, %4 ], [ %89, %86 ]
%24 = phi i64 [ 0, %4 ], [ %88, %86 ]
%25 = xor i64 %24, -1
%26 = sub nsw i64 %5, %24
%27 = mul nsw i64 %24, -4
%28 = add nsw i64 %17, %27
%29 = call i8* @llvm.stacksave()
%30 = mul nuw nsw i64 %22, %22
%31 = alloca i32, i64 %30
%32 = bitcast i32* %31 to i32**
%33 = trunc i64 %22 to i32
%34 = and i64 %22, 1
%35 = icmp eq i64 %25, %20
%36 = and i64 %22, -2
%37 = icmp eq i64 %34, 0
br label %38
38: ; preds = %83, %21
%39 = phi i64 [ 0, %21 ], [ %84, %83 ]
%40 = mul nuw nsw i64 %39, %5
br label %41
41: ; preds = %80, %38
%42 = phi i64 [ 0, %38 ], [ %81, %80 ]
%43 = add nuw nsw i64 %40, %42
br i1 %35, label %65, label %44
44: ; preds = %41, %44
%45 = phi i64 [ %62, %44 ], [ 0, %41 ]
%46 = phi i64 [ %63, %44 ], [ 0, %41 ]
%47 = mul nuw nsw i64 %45, %5
%48 = add nuw i64 %43, %47
%49 = getelementptr i32, i32* %8, i64 %48
%50 = bitcast i32* %49 to i8*
%51 = mul nsw i64 %26, %45
%52 = getelementptr i32, i32* %31, i64 %51
%53 = bitcast i32* %52 to i8*
%54 = or i64 %45, 1
%55 = mul nuw nsw i64 %54, %5
%56 = add nuw i64 %43, %55
%57 = getelementptr i32, i32* %8, i64 %56
%58 = bitcast i32* %57 to i8*
%59 = mul nsw i64 %26, %54
%60 = getelementptr i32, i32* %31, i64 %59
%61 = bitcast i32* %60 to i8*
%62 = add nuw nsw i64 %45, 2
%63 = add i64 %46, 2
%64 = icmp eq i64 %63, %36
br i1 %64, label %65, label %44
65: ; preds = %44, %41
%66 = phi i64 [ 0, %41 ], [ %62, %44 ]
br i1 %37, label %75, label %67
67: ; preds = %65
%68 = mul nuw nsw i64 %66, %5
%69 = add nuw i64 %43, %68
%70 = getelementptr i32, i32* %8, i64 %69
%71 = bitcast i32* %70 to i8*
%72 = mul nsw i64 %26, %66
%73 = getelementptr i32, i32* %31, i64 %72
%74 = bitcast i32* %73 to i8*
br label %75
75: ; preds = %65, %67
%76 = call i64 @hadamard(i32 %33, i32** %32)
%77 = icmp eq i64 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %75
%79 = call i32 @mtrx2file(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %33, i32** %32)
br label %80
80: ; preds = %75, %78
%81 = add nuw nsw i64 %42, 1
%82 = icmp eq i64 %81, %23
br i1 %82, label %83, label %41
83: ; preds = %80
%84 = add nuw nsw i64 %39, 1
%85 = icmp eq i64 %84, %23
br i1 %85, label %86, label %38
86: ; preds = %83
%87 = add nsw i64 %22, -1
%88 = add nuw nsw i64 %24, 1
%89 = add nuw nsw i64 %23, 1
%90 = icmp eq i64 %88, %19
br i1 %90, label %91, label %21
91: ; preds = %86
br label %94
92: ; preds = %1
%93 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
br label %94
94: ; preds = %92, %91
ret void
}