LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/LPD-EPFL[P]mctop/src/mctop_aux.c
// Function: table_calloc
void**
table_calloc(const size_t rows, const size_t cols, const size_t elem_size)
{
  void** m = malloc_assert(rows * sizeof(uint64_t*));
  for (int s = 0; s < rows; s++)
    {
      m[s] = calloc_assert(cols, elem_size);
    }

  return m;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq (,%rdi,8), %rdi
callq 0x21d0
testq %rax, %rax
je 0x90d8
movq %rax, %r12
testq %r15, %r15
je 0x90ac
xorl %r13d, %r13d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2150
testq %rax, %rax
je 0x90b9
movq %rax, (%r12,%r13,8)
incq %r13
cmpq %r13, %r15
jne 0x9090
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x3288(%rip), %rdi      # 0xc348
leaq 0x1a38(%rip), %rsi      # 0xaaff
leaq 0x1a66(%rip), %rcx      # 0xab34
movl $0x69, %edx
callq 0x2110
leaq 0x3269(%rip), %rdi      # 0xc348
leaq 0x1a19(%rip), %rsi      # 0xaaff
leaq 0x1a2b(%rip), %rcx      # 0xab18
movl $0x59, %edx
callq 0x2110
// File: /workspace/github_c_makefile_star2_O3/LPD-EPFL[P]mctop/src/mctop_aux.c
// Function: table_free
void
table_free(void** m, const size_t cols)
{
  for (int s = 0; s < cols; s++)
    {
      free(m[s]);
    }
  free(m);
  m = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x911b
movq %rsi, %r14
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
callq 0x2030
incq %r15
cmpq %r15, %r14
jne 0x910a
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2030
// File: /workspace/github_c_makefile_star2_O3/LPD-EPFL[P]mctop/src/mctop_load.c
// Function: mctop_load_mem_bw
static uint
mctop_load_mem_bw(FILE* ifile, const uint n_sockets, double** bw_table)
{
  for (uint x = 0; x < (n_sockets * n_sockets); x++)
    {
      uint xc, yc;
      double bw;
      if (fscanf(ifile, "%u %u %lf", &xc, &yc, &bw) != 3)
	{
	  return 0;
	}
      bw_table[xc][yc] = bw;
    }
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r14d
imull %r14d, %r14d
movl $0x1, %eax
testl %r14d, %r14d
je 0x9a47
movq %rdx, %r15
movq %rdi, %r12
leaq 0x27ec(%rip), %rsi      # 0xc1b9
xorl %ebp, %ebp
leaq 0xc(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x10(%rsp), %r8
xorl %eax, %eax
callq 0x2070
cmpl $0x3, %eax
jne 0x9a3e
leal -0x1(%r14), %ebp
leaq 0x10(%rsp), %r13
xorl %ebx, %ebx
movsd 0x10(%rsp), %xmm0
movl 0xc(%rsp), %eax
movq (%r15,%rax,8), %rax
movl 0x8(%rsp), %ecx
movsd %xmm0, (%rax,%rcx,8)
cmpl %ebx, %ebp
je 0x9a42
movq %r12, %rdi
leaq 0x279f(%rip), %rsi      # 0xc1b9
leaq 0xc(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x2070
incl %ebx
cmpl $0x3, %eax
je 0x99f5
xorl %ebp, %ebp
cmpl %r14d, %ebx
setae %bpl
movl %ebp, %eax
jmp 0x9a47
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: load_index
faidx_t * load_index(const char *fn, const char *fnfai, const char *fngzi,
                     int flags, enum fai_format_options format) {
    faidx_t *fai = fai_load3_format(fn, fnfai, fngzi, flags, format);
    if (!fai) {
        fprintf(stderr, "Failed: fai_load3(%s, %s, %s, %d, %d)\n",
                fn, fnfai ? fnfai : "NULL", fngzi ? fngzi : "NULL", flags,
                (int) format);
        return NULL;
    }
    return fai;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x8366
movq %rax, %r13
testq %rax, %rax
je 0x60ae
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa9f23(%rip), %rax     # 0xaffd8
testq %r15, %r15
leaq 0x8b392(%rip), %rcx     # 0x91451
cmoveq %rcx, %r15
movq (%rax), %rdi
testq %r14, %r14
cmoveq %rcx, %r14
movl %ebp, (%rsp)
leaq 0x88fab(%rip), %rsi     # 0x8f082
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r8
movl %ebx, %r9d
xorl %eax, %eax
callq 0x4710
jmp 0x609c
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: test_fai_line_length
int test_fai_line_length(const char *fn, const char *fnfai, const char *fngzi,
                         enum fai_format_options format, const char *expected,
                         const char *reg) {
    hts_pos_t found_len;
    faidx_t *fai = NULL;

    fai = load_index(fn, fnfai, fngzi, 0, format);
    if (!fai)
        return -1;

    found_len = fai_line_length(fai, reg);
    fai_destroy(fai);
    if (expected) {
        long long exp_len = strtoll(expected, NULL, 10);
        if (found_len != exp_len) {
            fprintf(stderr, "Unexpected result %"PRIhts_pos" from "
                    "fai_line_length, expected %s\n", found_len, expected);
            return -1;
        }
    } else {
        printf("%"PRIhts_pos"\n", found_len);
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %rbx
movl %ecx, %r8d
xorl %ecx, %ecx
callq 0x6076
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x67db
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x837c
movq %rax, %r14
movq %r12, %rdi
callq 0x6e88
testq %rbx, %rbx
je 0x67c7
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x40b0
cmpq %rax, %r14
je 0x67db
movq 0xa9830(%rip), %rax     # 0xaffd8
movq (%rax), %rdi
leaq 0x88a9d(%rip), %rsi     # 0x8f24f
movq %r14, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x4710
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x67db
leaq 0x88a1f(%rip), %rdi     # 0x8f1ed
xorl %r15d, %r15d
movq %r14, %rsi
xorl %eax, %eax
callq 0x4060
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: test_faidx_has_seq
int test_faidx_has_seq(const char *fn, const char *fnfai, const char *fngzi,
                       enum fai_format_options format, const char *expected,
                       const char *seq) {
    int res;
    faidx_t *fai = NULL;

    fai = load_index(fn, fnfai, fngzi, 0, format);
    if (!fai)
        return -1;

    res = faidx_has_seq(fai, seq);
    fai_destroy(fai);
    if (expected) {
        long exp_res = strtol(expected, NULL, 10);
        if (res != exp_res) {
            fprintf(stderr, "Unexpected result %d from faidx_has_seq(%s) "
                    "expected %s\n", res, seq, expected);
            return -1;
        }
    } else {
        printf("%d\n", res);
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %rbx
movl %ecx, %r8d
xorl %ecx, %ecx
callq 0x6076
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x687f
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x8eb2
movl %eax, %ebp
movq %r12, %rdi
callq 0x6e88
testq %rbx, %rbx
je 0x686c
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x46e0
movslq %ebp, %rcx
cmpq %rcx, %rax
je 0x687f
movq 0xa978d(%rip), %rax     # 0xaffd8
movq (%rax), %rdi
leaq 0x88a33(%rip), %rsi     # 0x8f288
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x4710
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x687f
leaq 0x8e39b(%rip), %rdi     # 0x94c0e
xorl %r15d, %r15d
movl %ebp, %esi
xorl %eax, %eax
callq 0x4060
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: test_faidx_iseq
int test_faidx_iseq(const char *fn, const char *fnfai, const char *fngzi,
                    enum fai_format_options format, const char *expected,
                    const char *index) {
    const char *found_name = NULL;
    int idx = atoi(index);
    faidx_t *fai = NULL;

    fai = load_index(fn, fnfai, fngzi, 0, format);
    if (!fai)
        return -1;

    found_name = faidx_iseq(fai, idx);

    if (expected) {
        if (!found_name || strcmp(found_name, expected) != 0) {
            fprintf(stderr, "Unexpected result %s from faidx_iseq(fai, %d), "
                    "expected %s\n", found_name ? found_name : "(null)",
                    idx, expected);
            fai_destroy(fai);
            return -1;
        }
    } else {
        printf("%s\n", found_name ? found_name : "(null)");
    }

    fai_destroy(fai);
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %ebx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq %r9, %rdi
callq 0x4800
movl %eax, %ebp
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
movl %ebx, %r8d
callq 0x6076
testq %rax, %rax
je 0x68f4
movq %rax, %rbx
movq %rax, %rdi
movl %ebp, %esi
callq 0x898b
movq %rax, %r15
testq %r14, %r14
je 0x68fc
testq %r15, %r15
je 0x692c
movq %r15, %rdi
movq %r14, %rsi
callq 0x46d0
xorl %r12d, %r12d
testl %eax, %eax
je 0x6912
jmp 0x6933
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x691a
testq %r15, %r15
leaq 0x889f7(%rip), %rdi     # 0x8f2fd
cmovneq %r15, %rdi
callq 0x47e0
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x6e88
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x889ca(%rip), %r15     # 0x8f2fd
movq 0xa969e(%rip), %rax     # 0xaffd8
movq (%rax), %rdi
leaq 0x8897d(%rip), %rsi     # 0x8f2c1
movq %r15, %rdx
movl %ebp, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x4710
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x6912
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: test_faidx_seq_len
int test_faidx_seq_len(const char *fn, const char *fnfai, const char *fngzi,
                       enum fai_format_options format, const char *expected,
                       const char *seq) {
    int found_len;
    faidx_t *fai = NULL;

    fai = load_index(fn, fnfai, fngzi, 0, format);
    if (!fai)
        return -1;

    found_len = faidx_seq_len(fai, seq);
    fai_destroy(fai);

    if (expected) {
        int exp_len = atoi(expected);
        if (found_len != exp_len) {
            fprintf(stderr, "Unexpected result %d from faidx_seq_len(fai, %s) "
                    "expected %s\n", found_len, seq, expected);
            return -1;
        }
    } else {
        printf("%d\n", found_len);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %rbx
movl %ecx, %r8d
xorl %ecx, %ecx
callq 0x6076
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x69e5
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x8aaf
movl %eax, %ebp
movq %r12, %rdi
callq 0x6e88
testq %rbx, %rbx
je 0x69d2
movq %rbx, %rdi
callq 0x4800
xorl %r15d, %r15d
cmpl %eax, %ebp
je 0x69e5
movq 0xa9627(%rip), %rax     # 0xaffd8
movq (%rax), %rdi
leaq 0x88949(%rip), %rsi     # 0x8f304
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x4710
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x69e5
leaq 0x8e235(%rip), %rdi     # 0x94c0e
xorl %r15d, %r15d
movl %ebp, %esi
xorl %eax, %eax
callq 0x4060
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/samtools[P]htslib/test/test_faidx.c
// Function: test_faidx_seq_len64
int test_faidx_seq_len64(const char *fn, const char *fnfai, const char *fngzi,
                         enum fai_format_options format, const char *expected,
                         const char *seq) {
    hts_pos_t found_len;
    faidx_t *fai = NULL;

    fai = load_index(fn, fnfai, fngzi, 0, format);
    if (!fai)
        return -1;

    found_len = faidx_seq_len(fai, seq);
    fai_destroy(fai);

    if (expected) {
        long long exp_len = strtoll(expected, NULL, 10);
        if (found_len != exp_len) {
            fprintf(stderr, "Unexpected result %"PRIhts_pos
                    " from fai_seq_len64(fai, %s) expected %s\n",
                    found_len, seq, expected);
            return -1;
        }
    } else {
        printf("%"PRIhts_pos"\n", found_len);
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r14
movq %r8, %rbx
movl %ecx, %r8d
xorl %ecx, %ecx
callq 0x6076
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x6a87
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
callq 0x8aaf
movslq %eax, %r15
movq %r13, %rdi
callq 0x6e88
testq %rbx, %rbx
je 0x6a73
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x40b0
cmpq %r15, %rax
je 0x6a87
movq 0xa9587(%rip), %rax     # 0xaffd8
movq (%rax), %rdi
leaq 0x888e7(%rip), %rsi     # 0x8f342
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
callq 0x4710
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x6a87
leaq 0x88773(%rip), %rdi     # 0x8f1ed
xorl %r12d, %r12d
movq %r15, %rsi
xorl %eax, %eax
callq 0x4060
movl %r12d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_ArrayAmendment
void OP_ArrayAmendment(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t a = (op >> 6) & 7;
    uint32_t b = (op >> 3) & 7;
    uint32_t c = op & 7;
    uint32_t i = reg[a];
    assert(i < arrsize);
    struct array *ai = arr[i];
    assert(ai != NULL);
    assert(reg[b] < ai->length);
    ai->data[reg[b]] = reg[c];
    if (i == 0) {
        program[reg[b]] = operations[reg[c] >> 28];
    }
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %rax
movl 0x4(%rsi,%rdi,4), %ecx
movl %ecx, %edx
shrl $0x4, %edx
andl $0x1c, %edx
leaq 0x2bfa(%rip), %rax      # 0x40e0
movl (%rdx,%rax), %edx
cmpq %rdx, 0x2bd0(%rip)      # 0x40c0
jbe 0x1555
movq 0x2c27(%rip), %r8       # 0x4120
movq (%r8,%rdx,8), %r9
testq %r9, %r9
je 0x1574
movl %ecx, %r8d
shrl $0x3, %r8d
andl $0x7, %r8d
movl (%rax,%r8,4), %r10d
cmpl (%r9), %r10d
jae 0x1593
andl $0x7, %ecx
movl (%rax,%rcx,4), %ecx
movl %ecx, 0x4(%r9,%r10,4)
testq %rdx, %rdx
jne 0x1543
shrl $0x1c, %ecx
leaq 0x2830(%rip), %rdx      # 0x3d60
movq (%rdx,%rcx,8), %rcx
movq 0x2bdd(%rip), %rdx      # 0x4118
movl (%rax,%r8,4), %eax
movq %rcx, (%rdx,%rax,8)
movq 0x2bce(%rip), %rax      # 0x4118
movq 0x8(%rax,%rdi,8), %rax
incq %rdi
popq %rcx
jmpq *%rax
leaq 0xaa8(%rip), %rdi       # 0x2004
leaq 0xaad(%rip), %rsi       # 0x2010
leaq 0xb0e(%rip), %rcx       # 0x2078
movl $0x4a, %edx
callq 0x1080
leaq 0xade(%rip), %rdi       # 0x2059
leaq 0xa8e(%rip), %rsi       # 0x2010
leaq 0xaef(%rip), %rcx       # 0x2078
movl $0x4c, %edx
callq 0x1080
leaq 0xb0d(%rip), %rdi       # 0x20a7
leaq 0xa6f(%rip), %rsi       # 0x2010
leaq 0xad0(%rip), %rcx       # 0x2078
movl $0x4d, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Add
void OP_Add(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t a = (op >> 6) & 7;
    uint32_t b = (op >> 3) & 7;
    uint32_t c = op & 7;
    reg[a] = reg[b] + reg[c];
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
movl 0x4(%rsi,%rdi,4), %eax
movl %eax, %ecx
andl $0x7, %ecx
movl %eax, %edx
shrl %edx
andl $0x1c, %edx
leaq 0x2b17(%rip), %r8       # 0x40e0
movl (%r8,%rcx,4), %ecx
addl (%rdx,%r8), %ecx
shrl $0x4, %eax
andl $0x1c, %eax
movl %ecx, (%rax,%r8)
movq 0x2b36(%rip), %rax      # 0x4118
movq 0x8(%rax,%rdi,8), %rax
incq %rdi
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Div
void OP_Div(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t a = (op >> 6) & 7;
    uint32_t b = (op >> 3) & 7;
    uint32_t c = op & 7;
    assert(reg[c] != 0);
    reg[a] = reg[b] / reg[c];
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
movl 0x4(%rsi,%rdi,4), %ecx
movl %ecx, %eax
andl $0x7, %eax
leaq 0x2aa9(%rip), %r8       # 0x40e0
movl (%r8,%rax,4), %r9d
testl %r9d, %r9d
je 0x166b
movl %ecx, %eax
shrl %eax
andl $0x1c, %eax
movl (%rax,%r8), %eax
xorl %edx, %edx
divl %r9d
shrl $0x4, %ecx
andl $0x1c, %ecx
movl %eax, (%rcx,%r8)
movq 0x2ab7(%rip), %rax      # 0x4118
movq 0x8(%rax,%rdi,8), %rax
incq %rdi
jmpq *%rax
pushq %rax
leaq 0xa48(%rip), %rdi       # 0x20bb
leaq 0x996(%rip), %rsi       # 0x2010
leaq 0xa46(%rip), %rcx       # 0x20c7
movl $0x6f, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Alloc
void OP_Alloc(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t b = (op >> 3) & 7;
    uint32_t c = op & 7;
    uint32_t capacity = reg[c];
    uint32_t i = 0;
    if (freelist_end == freelist) {
        i = arrsize;
        ++arrsize;
        arr = realloc(arr, sizeof(struct array *) * arrsize);
        assert(arr != NULL);
    } else {
        i = *(--freelist_end);
        *freelist_end = 0;
    }
    struct array *newarr = calloc(1 + capacity, sizeof(uint32_t));
    assert(newarr != NULL);
    newarr->length = capacity;
    arr[i] = newarr;
    reg[b] = i;
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi,%rdi,4), %r15d
movl %r15d, %eax
andl $0x7, %eax
leaq 0x29bf(%rip), %r12      # 0x40e0
movl (%r12,%rax,4), %ebp
movq 0x29dc(%rip), %rax      # 0x4108
cmpq 0x29cd(%rip), %rax      # 0x4100
je 0x174d
leaq -0x4(%rax), %rcx
movq %rcx, 0x29c8(%rip)      # 0x4108
movl -0x4(%rax), %r13d
movl $0x0, -0x4(%rax)
jmp 0x177f
movq 0x296c(%rip), %r13      # 0x40c0
leaq 0x1(%r13), %rax
movq %rax, 0x2961(%rip)      # 0x40c0
movq 0x29ba(%rip), %rdi      # 0x4120
leaq 0x8(,%r13,8), %rsi
callq 0x1120
movq %rax, 0x29a6(%rip)      # 0x4120
testq %rax, %rax
je 0x17f0
leal 0x1(%rbp), %edi
movl $0x4, %esi
callq 0x10a0
testq %rax, %rax
je 0x17d1
movl %ebp, (%rax)
movq 0x2986(%rip), %rcx      # 0x4120
movl %r13d, %edx
movq %rax, (%rcx,%rdx,8)
shrl %r15d
andl $0x1c, %r15d
movl %r13d, (%r15,%r12)
movq 0x2965(%rip), %rax      # 0x4118
movq 0x8(%rax,%r14,8), %rax
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
leaq 0x93f(%rip), %rdi       # 0x2117
leaq 0x831(%rip), %rsi       # 0x2010
leaq 0x90b(%rip), %rcx       # 0x20f1
movl $0x97, %edx
callq 0x1080
leaq 0x923(%rip), %rdi       # 0x211a
leaq 0x812(%rip), %rsi       # 0x2010
leaq 0x8ec(%rip), %rcx       # 0x20f1
movl $0x91, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Abandon
void OP_Abandon(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t c = op & 7;
    uint32_t i = reg[c];
    assert(i < arrsize);
    assert(i != 0);
    assert(arr[i] != NULL);
    free(arr[i]);
    arr[i] = NULL;
    if (freelist_end - freelist == freelist_capacity) {
        uint32_t freelist_new_capacity = freelist_capacity == 0 ? 32 : freelist_capacity * 2;
        freelist = realloc(freelist, freelist_new_capacity * sizeof(uint32_t));
        memset(freelist + freelist_capacity, 0, (freelist_new_capacity - freelist_capacity) * sizeof(uint32_t));
        freelist_end = freelist + freelist_capacity;
        freelist_capacity = freelist_new_capacity;
    }
    *freelist_end++ = i;
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x4(%rsi,%rdi,4), %eax
andl $0x7, %eax
leaq 0x28ba(%rip), %rcx      # 0x40e0
movl (%rcx,%rax,4), %r12d
cmpq %r12, 0x288f(%rip)      # 0x40c0
jbe 0x1906
testl %r12d, %r12d
je 0x1925
movq %rdi, %r14
movq 0x28d6(%rip), %rax      # 0x4120
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0x1944
movq %rsi, %rbx
callq 0x1030
movq 0x28ba(%rip), %rax      # 0x4120
movq $0x0, (%rax,%r12,8)
movq 0x2893(%rip), %r15      # 0x4108
movq 0x2884(%rip), %rdi      # 0x4100
movq %r15, %rcx
subq %rdi, %rcx
sarq $0x2, %rcx
movl 0x2884(%rip), %eax      # 0x4110
cmpq %rax, %rcx
jne 0x18d8
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x20, %r13d
cmovnel %ecx, %r13d
leaq (,%r13,4), %rsi
callq 0x1120
movq %rax, 0x284c(%rip)      # 0x4100
movl 0x2856(%rip), %ecx      # 0x4110
leaq (%rax,%rcx,4), %r15
movl %r13d, %edx
subl %ecx, %edx
shlq $0x2, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x1090
movl %r13d, 0x2838(%rip)     # 0x4110
leaq 0x4(%r15), %rax
movq %rax, 0x2825(%rip)      # 0x4108
movl %r12d, (%r15)
movq 0x282b(%rip), %rax      # 0x4118
movq 0x8(%rax,%r14,8), %rax
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *%rax
leaq 0x6f7(%rip), %rdi       # 0x2004
leaq 0x6fc(%rip), %rsi       # 0x2010
leaq 0x80b(%rip), %rcx       # 0x2126
movl $0xa3, %edx
callq 0x1080
leaq 0x822(%rip), %rdi       # 0x214e
leaq 0x6dd(%rip), %rsi       # 0x2010
leaq 0x7ec(%rip), %rcx       # 0x2126
movl $0xa4, %edx
callq 0x1080
leaq 0x80a(%rip), %rdi       # 0x2155
leaq 0x6be(%rip), %rsi       # 0x2010
leaq 0x7cd(%rip), %rcx       # 0x2126
movl $0xa5, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Output
void OP_Output(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t c = op & 7;
    assert(reg[c] <= 255);
    putchar(reg[c]);
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x4(%rsi,%rdi,4), %eax
andl $0x7, %eax
leaq 0x2768(%rip), %rcx      # 0x40e0
movl (%rcx,%rax,4), %edi
cmpl $0x100, %edi            # imm = 0x100
jae 0x19a9
movq %rsi, %rbx
callq 0x1040
movq 0x2786(%rip), %rax      # 0x4118
movq 0x8(%rax,%r14,8), %rax
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
leaq 0x7b4(%rip), %rdi       # 0x2164
leaq 0x659(%rip), %rsi       # 0x2010
leaq 0x7b4(%rip), %rcx       # 0x2172
movl $0xb7, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Input
void OP_Input(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t c = op & 7;
    fflush(stdout);
    int ch = getchar();
    if (ch == EOF) {
        reg[c] = (uint32_t)(-1);
    } else {
        assert(0 <= ch && ch <= 255);
        reg[c] = (uint32_t)ch;
    }
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl 0x4(%rsi,%rdi,4), %r15d
movq 0x25f1(%rip), %rax      # 0x3fd0
movq (%rax), %rdi
callq 0x1100
callq 0x10b0
cmpl $-0x1, %eax
je 0x1a17
cmpl $0x100, %eax            # imm = 0x100
jb 0x1a1c
leaq 0x79a(%rip), %rdi       # 0x2199
leaq 0x60a(%rip), %rsi       # 0x2010
leaq 0x7a1(%rip), %rcx       # 0x21ae
movl $0xc5, %edx
callq 0x1080
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andl $0x7, %r15d
leaq 0x26b9(%rip), %rcx      # 0x40e0
movl %eax, (%rcx,%r15,4)
movq 0x26e6(%rip), %rax      # 0x4118
movq 0x8(%rax,%r14,8), %rax
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_LoadProgram
void OP_LoadProgram(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t b = (op >> 3) & 7;
    uint32_t c = op & 7;
    uint32_t i = reg[b];
    if (UNLIKELY(i != 0)) {
        assert(i < arrsize);
        assert(arr[i] != NULL);
        uint32_t length = arr[i]->length;
        struct array *newprogram = malloc((length + 1) * sizeof(uint32_t));
        assert(newprogram != NULL);
        memcpy(newprogram, arr[i], (length + 1) * sizeof(uint32_t));
        free(arr[0]);
        arr[0] = newprogram;
        arr0 = newprogram;
        recalc();
    }
    pc = reg[c];
    assert(pc < arr[0]->length);
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl 0x4(%rsi,%rdi,4), %eax
movl %eax, %r14d
andl $0x7, %r14d
shrl %eax
andl $0x1c, %eax
leaq 0x2679(%rip), %r15      # 0x40e0
movl (%rax,%r15), %edi
testl %edi, %edi
jne 0x1a97
movl (%r15,%r14,4), %edi
movq 0x26a6(%rip), %rax      # 0x4120
movq (%rax), %rax
cmpl (%rax), %edi
jae 0x1aa9
movq 0x2690(%rip), %rax      # 0x4118
movq (%rax,%rdi,8), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmpq *%rax
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0x1170
movq (%rbx), %rsi
jmp 0x1a6f
leaq 0x763(%rip), %rdi       # 0x2213
leaq 0x559(%rip), %rsi       # 0x2010
leaq 0x716(%rip), %rcx       # 0x21d4
movl $0xde, %edx
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: recalc
void recalc(void)
{
    struct array *a0 = arr[0];
    uint32_t length = a0->length;
    if (program) {
        free(program);
    }
    program = malloc(sizeof(OP) * length);
    assert(program != NULL);
    for (uint32_t i = 0; i < length; ++i) {
        uint32_t op = a0->data[i];
        program[i] = operations[op >> 28];
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x264d(%rip), %rax      # 0x4120
movq (%rax), %rbx
movl (%rbx), %r14d
movq 0x2638(%rip), %rdi      # 0x4118
testq %rdi, %rdi
je 0x1aea
callq 0x1030
leaq (,%r14,8), %rdi
callq 0x10f0
movq %rax, 0x261a(%rip)      # 0x4118
testq %rax, %rax
je 0x1b37
testq %r14, %r14
je 0x1b2f
xorl %eax, %eax
leaq 0x224f(%rip), %rcx      # 0x3d60
movl 0x4(%rbx,%rax,4), %edx
shrl $0x1c, %edx
movq (%rcx,%rdx,8), %rdx
movq 0x25f5(%rip), %rsi      # 0x4118
movq %rdx, (%rsi,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x1b11
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x76a(%rip), %rdi       # 0x22a8
leaq 0x4cb(%rip), %rsi       # 0x2010
leaq 0x6f6(%rip), %rcx       # 0x2242
movl $0x10b, %edx            # imm = 0x10B
callq 0x1080
// File: /workspace/github_c_makefile_star2_O3/minoki[P]icfpc2006/run_directthreaded_tailcall.c
// Function: OP_Orthography
void OP_Orthography(PARAMS)
{
    uint32_t op = arr0->data[pc];
    uint32_t a = (op >> 25) & 7;
    uint32_t value = op & ((UINT32_C(1) << 25) - 1);
    reg[a] = value;
    ++pc;
    MUSTTAIL return program[pc](ARGS);
}

// Assembly:
movl 0x4(%rsi,%rdi,4), %eax
movl %eax, %ecx
andl $0x1ffffff, %ecx        # imm = 0x1FFFFFF
shrl $0x17, %eax
andl $0x1c, %eax
leaq 0x2571(%rip), %rdx      # 0x40e0
movl %ecx, (%rax,%rdx)
movq 0x259f(%rip), %rax      # 0x4118
movq 0x8(%rax,%rdi,8), %rax
incq %rdi
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/activation_test.c
// Function: test_sigmoid
void test_sigmoid() {
  double x[] = {10e10, 0, -10e10};
  double y[3];
  double expected[] = {1, 0.5, 0};
  int n = sizeof(x)/sizeof(x[0]);
  morpheus_sigmoid(n, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, y, n);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movaps 0x5c86(%rip), %xmm0     # 0x70b0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movabsq $-0x3dc8b78918000000, %rax # imm = 0xC2374876E8000000
movq %rax, 0x10(%rsi)
movaps 0x5bc9(%rip), %xmm0     # 0x7010
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x20(%rsp), %r14
movl $0x3, %edi
movq %r14, %rdx
callq 0x3d14
movl $0xb, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/activation_test.c
// Function: test_sigmoid_gradient
void test_sigmoid_gradient() {
  double x[] = {10e10, 0, -10e10};
  double y[3];
  double expected[] = {0, 0.25, 0};
  int n = sizeof(x)/sizeof(x[0]);
  morpheus_sigmoid_gradient(n, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, y, n);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movaps 0x5c15(%rip), %xmm0     # 0x70b0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movabsq $-0x3dc8b78918000000, %rax # imm = 0xC2374876E8000000
movq %rax, 0x10(%rsi)
movaps 0x5b78(%rip), %xmm0     # 0x7030
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x20(%rsp), %r14
movl $0x3, %edi
movq %r14, %rdx
callq 0x3d69
movl $0x14, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/activation_test.c
// Function: test_relu_gradient
void test_relu_gradient() {
  double x[] = {10e10, 0, -10e10};
  double y[3];
  double expected[] = {1, 0, 0};
  int n = sizeof(x)/sizeof(x[0]);
  morpheus_relu_gradient(n, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, y, n);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movaps 0x5b33(%rip), %xmm0     # 0x70b0
leaq 0x40(%rsp), %rsi
movaps %xmm0, (%rsi)
movabsq $-0x3dc8b78918000000, %rax # imm = 0xC2374876E8000000
movq %rax, 0x10(%rsi)
movaps 0x5ad6(%rip), %xmm0     # 0x7070
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x20(%rsp), %r14
movl $0x3, %edi
movq %r14, %rdx
callq 0x3df1
movl $0x26, %r8d
movq %rbx, %rdi
movq %r14, %rsi
movl $0x3, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x58, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/gradient_descent_test.c
// Function: test_gradient_descent
void test_gradient_descent() {
  double X[] = {
    1, 3,
    1, 5,
    1, 10,
    1, 0,
    1, 4
  };
  double y[] = {9, 13, 23, 3, 11};

  double theta[] = {1, 1};
  double tmp_buffer[2*5];

  morpheus_params_t data;
  data.data.x = X;
  data.data.y = y;
  data.data.num_features = 2;
  data.data.num_examples = 5;
  data.data.layout = morpheus_row_major;
  data.memory_buffer = tmp_buffer;
  data.reg.type = morpheus_reg_none;

  double tmp_buffer2[2*5];
  morpheus_gradient_descent_params_t params;
  params.f = (morpheus_f)morpheus_ls_cost;
  params.df = (morpheus_df)morpheus_ls_gradient;
  params.max_iters = 4000;
  params.epsilon = 1e-10;
  params.alpha = 1e-2;
  params.memory_buffer = tmp_buffer2;
  params.num_variables = data.data.num_features;

  double theta_expected[] = {3, 2};
  morpheus_gradient_descent(&params, theta, &data);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(theta_expected, theta, data.data.num_features);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
leaq 0x5a65(%rip), %rsi      # 0x7140
leaq 0x160(%rsp), %rax
movl $0xa, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movaps 0x59fb(%rip), %xmm0     # 0x70f0
leaq 0x20(%rsp), %rcx
movaps %xmm0, (%rcx)
movaps 0x59fc(%rip), %xmm0     # 0x7100
movaps %xmm0, 0x10(%rcx)
movabsq $0x4026000000000000, %rdx # imm = 0x4026000000000000
movq %rdx, 0x20(%rcx)
movaps 0x5a03(%rip), %xmm0     # 0x7120
leaq 0x10(%rsp), %rbx
movaps %xmm0, (%rbx)
leaq 0x88(%rsp), %r14
movq %rax, (%r14)
movq %rcx, 0x8(%r14)
movabsq $0x500000002, %rax      # imm = 0x500000002
movq %rax, 0x10(%r14)
movl $0x15, 0x18(%r14)
leaq 0x110(%rsp), %rax
movq %rax, 0x30(%r14)
movl $0x0, 0x20(%r14)
leaq 0x2a7e(%rip), %rax      # 0x41e3
leaq 0x50(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x2a7f(%rip), %rax      # 0x41f3
movq %rax, 0x8(%rdi)
movl $0xfa0, 0x10(%rdi)      # imm = 0xFA0
movaps 0x598a(%rip), %xmm0     # 0x7110
movups %xmm0, 0x18(%rdi)
leaq 0xc0(%rsp), %rax
movq %rax, 0x30(%rdi)
movl $0x2, 0x28(%rdi)
movaps 0x598c(%rip), %xmm0     # 0x7130
movq %rsp, %r15
movaps %xmm0, (%r15)
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3f98
movl 0x10(%r14), %edx
movl $0x28, %r8d
movq %r15, %rdi
movq %rbx, %rsi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_column_pred
void test_column_pred() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];

  double expected_row_major[] = {1, 7, 2, 9, 7};
  morpheus_column_predicate(fmin, morpheus_row_major, 4, 5, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_row_major, y, 5);

  double expected_col_major[] = {3, 2, 11, 1};
  morpheus_column_predicate(fmin, morpheus_col_major, 5, 4, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_col_major, y, 4);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
leaq 0x5807(%rip), %rsi      # 0x75d0
leaq 0x80(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x572b(%rip), %xmm0     # 0x7510
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
movaps 0x572a(%rip), %xmm0     # 0x7520
movaps %xmm0, 0x10(%r12)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x20(%r12)
movq 0xa1b6(%rip), %r15      # 0xbfc8
leaq 0x50(%rsp), %r14
movq %r15, %rdi
movl $0x15, %esi
movl $0x4, %edx
movl $0x5, %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x4208
movl $0x13, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x5847(%rip), %xmm0     # 0x76a0
movq %rsp, %r12
movaps %xmm0, 0x10(%r12)
movaps 0x5827(%rip), %xmm0     # 0x7690
movaps %xmm0, (%r12)
movq %r15, %rdi
movl $0x16, %esi
movl $0x5, %edx
movl $0x4, %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x4208
movl $0x17, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_row_pred
void test_row_pred() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];

  double expected_row_major[] = {71, 23, 53, 90};
  morpheus_row_predicate(fmax, morpheus_row_major, 4, 5, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_row_major, y, 4);

  double expected_col_major[] = {71, 32, 78, 90, 37};
  morpheus_row_predicate(fmax, morpheus_col_major, 5, 4, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_col_major, y, 5);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
leaq 0x5703(%rip), %rsi      # 0x75d0
leaq 0x80(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x5797(%rip), %xmm0     # 0x7680
movq %rsp, %r12
movaps %xmm0, 0x10(%r12)
movaps 0x5777(%rip), %xmm0     # 0x7670
movaps %xmm0, (%r12)
movq 0xa0e3(%rip), %r15      # 0xbfe8
leaq 0x50(%rsp), %r14
movq %r15, %rdi
movl $0x15, %esi
movl $0x4, %edx
movl $0x5, %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x4344
movl $0x26, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x55e4(%rip), %xmm0     # 0x7530
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
movaps 0x55e3(%rip), %xmm0     # 0x7540
movaps %xmm0, 0x10(%r12)
movabsq $0x4042800000000000, %rax # imm = 0x4042800000000000
movq %rax, 0x20(%r12)
movq %r15, %rdi
movl $0x16, %esi
movl $0x5, %edx
movl $0x4, %ecx
movq %rbx, %r8
movq %r14, %r9
callq 0x4344
movl $0x2a, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_column_max_index
void test_column_max_index() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];
  int is[5];

  double expected_y_row_major[] = {71, 32, 78, 90, 37};
  int expected_is_row_major[] = {0, 2, 3, 3, 2};
  morpheus_column_max_index(morpheus_row_major, 4, 5, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 5);
  TEST_ASSERT_EQUAL_INT_ARRAY(expected_is_row_major, is, 5);

  double expected_y_col_major[] = {71, 23, 53, 90};
  int expected_is_col_major[] = {0, 3, 2, 3};
  morpheus_column_max_index(morpheus_col_major, 5, 4, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 4);
  TEST_ASSERT_EQUAL_INT_ARRAY(expected_is_col_major, is, 4);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
leaq 0x55fc(%rip), %rsi      # 0x75d0
leaq 0xe0(%rsp), %r14
movl $0xa0, %edx
movq %r14, %rdi
callq 0x1150
movaps 0x5540(%rip), %xmm0     # 0x7530
leaq 0x80(%rsp), %r13
movaps %xmm0, (%r13)
movaps 0x553c(%rip), %xmm0     # 0x7540
movaps %xmm0, 0x10(%r13)
movabsq $0x4042800000000000, %rax # imm = 0x4042800000000000
movq %rax, 0x20(%r13)
movaps 0x5572(%rip), %xmm0     # 0x7590
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
movl $0x2, 0x10(%r12)
leaq 0xb0(%rsp), %r15
leaq 0x40(%rsp), %rbx
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %r14, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x447b
movl $0x1, %ebp
movl $0x3b, %r8d
movq %r13, %rdi
movq %r15, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movl %ebp, (%rsp)
movl $0x3c, %r8d
movq %r12, %rdi
movq %rbx, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x5a88
movaps 0x55da(%rip), %xmm0     # 0x7680
leaq 0x60(%rsp), %r13
movaps %xmm0, 0x10(%r13)
movaps 0x55b9(%rip), %xmm0     # 0x7670
movaps %xmm0, (%r13)
movaps 0x54ad(%rip), %xmm0     # 0x7570
leaq 0x10(%rsp), %r12
movaps %xmm0, (%r12)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %r14, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x447b
movl $0x41, %r8d
movq %r13, %rdi
movq %r15, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movl %ebp, (%rsp)
movl $0x42, %r8d
movq %r12, %rdi
movq %rbx, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x5a88
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_column_min_index
void test_column_min_index() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];
  int is[5];

  double expected_y_row_major[] = {1, 7, 2, 9, 7};
  int expected_is_row_major[] = {3, 1, 1, 0, 0};
  morpheus_column_min_index(morpheus_row_major, 4, 5, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 5);
  TEST_ASSERT_EQUAL_INT_ARRAY(expected_is_row_major, is, 5);

  double expected_y_col_major[] = {3, 2, 11, 1};
  int expected_is_col_major[] = {2, 2, 0, 0};
  morpheus_column_min_index(morpheus_col_major, 5, 4, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 4);
  TEST_ASSERT_EQUAL_INT_ARRAY(expected_is_col_major, is, 4);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
leaq 0x547d(%rip), %rsi      # 0x75d0
leaq 0xe0(%rsp), %r14
movl $0xa0, %edx
movq %r14, %rdi
callq 0x1150
movaps 0x53a1(%rip), %xmm0     # 0x7510
leaq 0x80(%rsp), %r13
movaps %xmm0, (%r13)
movaps 0x539d(%rip), %xmm0     # 0x7520
movaps %xmm0, 0x10(%r13)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x20(%r13)
movaps 0x5413(%rip), %xmm0     # 0x75b0
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
movl $0x0, 0x10(%r12)
leaq 0xb0(%rsp), %r15
leaq 0x40(%rsp), %rbx
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %r14, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x4570
movl $0x1, %ebp
movl $0x53, %r8d
movq %r13, %rdi
movq %r15, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movl %ebp, (%rsp)
movl $0x54, %r8d
movq %r12, %rdi
movq %rbx, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x5a88
movaps 0x547b(%rip), %xmm0     # 0x76a0
leaq 0x60(%rsp), %r13
movaps %xmm0, 0x10(%r13)
movaps 0x545a(%rip), %xmm0     # 0x7690
movaps %xmm0, (%r13)
movaps 0x533e(%rip), %xmm0     # 0x7580
leaq 0x10(%rsp), %r12
movaps %xmm0, (%r12)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %r14, %rcx
movq %r15, %r8
movq %rbx, %r9
callq 0x4570
movl $0x59, %r8d
movq %r13, %rdi
movq %r15, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movl %ebp, (%rsp)
movl $0x5a, %r8d
movq %r12, %rdi
movq %rbx, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x14, %r9d
callq 0x5a88
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_row_max_index
void test_row_max_index() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];
  int is[5];

  double expected_y_row_major[] = {71, 23, 53, 90};
  int expected_is_row_major[] = {0, 3, 2, 3};
  morpheus_row_max_index(morpheus_row_major, 4, 5, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 4);

  double expected_y_col_major[] = {71, 32, 78, 90, 37};
  int expected_is_col_major[] = {0, 2, 3, 3, 2};
  morpheus_row_max_index(morpheus_col_major, 5, 4, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 5);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
leaq 0x5301(%rip), %rsi      # 0x75d0
leaq 0xa0(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x5395(%rip), %xmm0     # 0x7680
leaq 0x20(%rsp), %r12
movaps %xmm0, 0x10(%r12)
movaps 0x5373(%rip), %xmm0     # 0x7670
movaps %xmm0, (%r12)
leaq 0x70(%rsp), %r14
movq %rsp, %r15
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
callq 0x4669
movl $0x6b, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x51e4(%rip), %xmm0     # 0x7530
leaq 0x40(%rsp), %r12
movaps %xmm0, (%r12)
movaps 0x51e3(%rip), %xmm0     # 0x7540
movaps %xmm0, 0x10(%r12)
movabsq $0x4042800000000000, %rax # imm = 0x4042800000000000
movq %rax, 0x20(%r12)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
callq 0x4669
movl $0x70, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_row_min_index
void test_row_min_index() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];
  int is[5];

  double expected_y_row_major[] = {3, 2, 11, 1};
  int expected_is_row_major[] = {2, 2, 0, 0};
  morpheus_row_min_index(morpheus_row_major, 4, 5, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 4);

  double expected_y_col_major[] = {1, 7, 2, 9, 7};
  int expected_is_col_major[] = {3, 1, 1, 0, 0};
  morpheus_row_min_index(morpheus_col_major, 5, 4, x, y, is);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 5);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
leaq 0x51ff(%rip), %rsi      # 0x75d0
leaq 0xa0(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x52b3(%rip), %xmm0     # 0x76a0
leaq 0x20(%rsp), %r12
movaps %xmm0, 0x10(%r12)
movaps 0x5291(%rip), %xmm0     # 0x7690
movaps %xmm0, (%r12)
leaq 0x70(%rsp), %r14
movq %rsp, %r15
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
callq 0x4767
movl $0x81, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x50c2(%rip), %xmm0     # 0x7510
leaq 0x40(%rsp), %r12
movaps %xmm0, (%r12)
movaps 0x50c1(%rip), %xmm0     # 0x7520
movaps %xmm0, 0x10(%r12)
movabsq $0x401c000000000000, %rax # imm = 0x401C000000000000
movq %rax, 0x20(%r12)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %rbx, %rcx
movq %r14, %r8
movq %r15, %r9
callq 0x4767
movl $0x86, %r8d
movq %r12, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_column_sum
void test_column_sum() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];

  double expected_y_row_major[] = {104, 74, 136, 171, 72};
  morpheus_column_sum(morpheus_row_major, 4, 5, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 5);

  double expected_y_col_major[] = {101, 64,182, 210};
  morpheus_column_sum(morpheus_col_major, 5, 4, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 4);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
leaq 0x50ff(%rip), %rsi      # 0x75d0
leaq 0x80(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x5063(%rip), %xmm0     # 0x7550
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movaps 0x5063(%rip), %xmm0     # 0x7560
movaps %xmm0, 0x10(%r15)
movabsq $0x4052000000000000, %rax # imm = 0x4052000000000000
movq %rax, 0x20(%r15)
leaq 0x50(%rsp), %r14
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x486d
movl $0x95, %r8d
movq %r15, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x516c(%rip), %xmm0     # 0x76c0
movq %rsp, %r15
movaps %xmm0, 0x10(%r15)
movaps 0x514d(%rip), %xmm0     # 0x76b0
movaps %xmm0, (%r15)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x486d
movl $0x99, %r8d
movq %r15, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/aligusnet[P]morpheus/tests/matrix_reduce_test.c
// Function: test_row_sum
void test_row_sum() {
  double x[] = {
    71, 11, 3,  9, 7,
    21, 7,  2,  23, 11,
    11, 32, 53, 49, 37,
    1,  24, 78, 90, 17
  };

  double y[5];

  double expected_y_row_major[] = {101, 64,182, 210};
  morpheus_row_sum(morpheus_row_major, 4, 5, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_row_major, y, 4);

  double expected_y_col_major[] = {104, 74, 136, 171, 72};
  morpheus_row_sum(morpheus_col_major, 5, 4, x, y);
  TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected_y_col_major, y, 5);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x120, %rsp            # imm = 0x120
leaq 0x5011(%rip), %rsi      # 0x75d0
leaq 0x80(%rsp), %rbx
movl $0xa0, %edx
movq %rbx, %rdi
callq 0x1150
movaps 0x50e5(%rip), %xmm0     # 0x76c0
movq %rsp, %r15
movaps %xmm0, 0x10(%r15)
movaps 0x50c6(%rip), %xmm0     # 0x76b0
movaps %xmm0, (%r15)
leaq 0x50(%rsp), %r14
movl $0x15, %edi
movl $0x4, %esi
movl $0x5, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x4938
movl $0xa8, %r8d
movq %r15, %rdi
movq %r14, %rsi
movl $0x4, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
movaps 0x4f1e(%rip), %xmm0     # 0x7550
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movaps 0x4f1e(%rip), %xmm0     # 0x7560
movaps %xmm0, 0x10(%r15)
movabsq $0x4052000000000000, %rax # imm = 0x4052000000000000
movq %rax, 0x20(%r15)
movl $0x16, %edi
movl $0x5, %esi
movl $0x4, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x4938
movl $0xac, %r8d
movq %r15, %rdi
movq %r14, %rsi
movl $0x5, %edx
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x6002
addq $0x120, %rsp            # imm = 0x120
popq %rbx
popq %r14
popq %r15
retq
nop