Problem 968

Counting via determinants and modular arithmetic. Ported from native C to pure Flow.

Answer885362394
Output885362394
StatusPASS
Native helperno
Runtime160 ms
Peak memory2432 KB
Time complexityO(n^6) (estimated)
Space complexityO(n^2) (estimated)

Performance comparison

MetricOur solutionBest known
Time complexityO(n^6)O(log n)
Space complexityO(n^2)O(1)
ApproachFlow solutionModular exponentiation
VerdictUnknown

Flow source

# Project Euler 968
# Counting via determinants and modular arithmetic.
# Ported from native C to pure Flow.

import euler.nt { mod_pow }

extern {
    function calloc(n: i64, size: i64) -> ptr<void>
    function free(p: ptr<void>)
    function printf(fmt: ptr<i8>, ...) -> i32
}

const MOD: i64 = 1000000007

# h[15][5] table, flat
let mut h_data: array<i64, 75> = [
    1, 1, 0, 0, 0,
    1, 0, 1, 0, 0,
    1, 0, 0, 1, 0,
    1, 0, 0, 0, 1,
    0, 1, 1, 0, 0,
    0, 1, 0, 1, 0,
    0, 1, 0, 0, 1,
    0, 0, 1, 1, 0,
    0, 0, 1, 0, 1,
    0, 0, 0, 1, 1,
    -1, 0, 0, 0, 0,
    0, -1, 0, 0, 0,
    0, 0, -1, 0, 0,
    0, 0, 0, -1, 0,
    0, 0, 0, 0, -1
]

function h_get(i: i64, j: i64) -> i64 {
    return h_data[i * 5 + j]
}

function modinv(x: i64) -> i64 {
    return mod_pow(x % MOD, MOD - 2, MOD)
}

# Determinant of n x n matrix (n <= 5), integer arithmetic
# M is flat array M[i*5+j]
function det_matrix(n: i64, M: ptr<i64>) -> i64 {
    if n == 1 { return M[0] }
    if n == 2 { return M[0] * M[6] - M[1] * M[5] }
    let mut s: i64 = 0
    let sub: ptr<i64> = calloc(25, 8) as ptr<i64>
    let mut j: i64 = 0
    while j < n {
        if M[j] == 0 {
            j = j + 1
            continue
        }
        let mut i: i64 = 1
        while i < n {
            let mut col: i64 = 0
            let mut k: i64 = 0
            while k < n {
                if k == j {
                    k = k + 1
                    continue
                }
                sub[(i - 1) * 5 + col] = M[i * 5 + k]
                col = col + 1
                k = k + 1
            }
            i = i + 1
        }
        let cof: i64 = det_matrix(n - 1, sub)
        if (j & 1) != 0 {
            s = s - M[j] * cof
        } else {
            s = s + M[j] * cof
        }
        j = j + 1
    }
    free(sub as ptr<void>)
    return s
}

# Adjugate of n x n matrix
function adj_matrix(n: i64, M: ptr<i64>, adj: ptr<i64>) -> void {
    let sub: ptr<i64> = calloc(25, 8) as ptr<i64>
    let mut i: i64 = 0
    while i < n {
        let mut j: i64 = 0
        while j < n {
            let mut row: i64 = 0
            let mut k: i64 = 0
            while k < n {
                if k == j {
                    k = k + 1
                    continue
                }
                let mut col: i64 = 0
                let mut l: i64 = 0
                while l < n {
                    if l == i {
                        l = l + 1
                        continue
                    }
                    sub[row * 5 + col] = M[k * 5 + l]
                    col = col + 1
                    l = l + 1
                }
                row = row + 1
                k = k + 1
            }
            let cof: i64 = det_matrix(n - 1, sub)
            if ((i + j) & 1) != 0 {
                adj[i * 5 + j] = -cof
            } else {
                adj[i * 5 + j] = cof
            }
            j = j + 1
        }
        i = i + 1
    }
    free(sub as ptr<void>)
}

# w(v): product of primes^v[j] mod m, handling negative exponents
function w_func(v: ptr<i64>) -> i64 {
    let primes: array<i64, 5> = [2, 3, 5, 7, 11]
    let mut z: i64 = 1
    let mut j: i64 = 0
    while j < 5 {
        let e: i64 = v[j]
        if e >= 0 {
            z = z * mod_pow(primes[j], e, MOD) % MOD
        } else {
            let inv_base: i64 = modinv(mod_pow(primes[j], -e, MOD))
            z = z * inv_base % MOD
        }
        j = j + 1
    }
    return z
}

# f(v): product of primes^v[j] mod m, return 0 if any exponent < 0
function f_func(v: ptr<i64>) -> i64 {
    let primes: array<i64, 5> = [2, 3, 5, 7, 11]
    let mut j: i64 = 0
    while j < 5 {
        if v[j] < 0 { return 0 }
        j = j + 1
    }
    let mut z: i64 = 1
    j = 0
    while j < 5 {
        z = z * mod_pow(primes[j], v[j], MOD) % MOD
        j = j + 1
    }
    return z
}

# Combo storage: flat arrays
# I[combo*5 + i], det_val[combo], adj[combo*25 + i*5+j], r[combo*25 + i*5+j], den[combo]
let mut combo_I: ptr<i32> = null
let mut combo_det: ptr<i64> = null
let mut combo_adj: ptr<i64> = null
let mut combo_r: ptr<i64> = null
let mut combo_den: ptr<i64> = null
let mut num_combos: i64 = 0

function precompute_combos() -> void {
    combo_I = calloc(3003 * 5, 4) as ptr<i32>
    combo_det = calloc(3003, 8) as ptr<i64>
    combo_adj = calloc(3003 * 25, 8) as ptr<i64>
    combo_r = calloc(3003 * 25, 8) as ptr<i64>
    combo_den = calloc(3003, 8) as ptr<i64>
    num_combos = 0

    let M: ptr<i64> = calloc(25, 8) as ptr<i64>
    let adj: ptr<i64> = calloc(25, 8) as ptr<i64>
    let r: ptr<i64> = calloc(25, 8) as ptr<i64>
    let v: ptr<i64> = calloc(5, 8) as ptr<i64>

    let mut a: i64 = 0
    while a < 15 {
        let mut b: i64 = a + 1
        while b < 15 {
            let mut c: i64 = b + 1
            while c < 15 {
                let mut d: i64 = c + 1
                while d < 15 {
                    let mut e: i64 = d + 1
                    while e < 15 {
                        let idx: array<i64, 5> = [a, b, c, d, e]
                        let mut i: i64 = 0
                        while i < 5 {
                            let mut j: i64 = 0
                            while j < 5 {
                                M[i * 5 + j] = h_get(idx[i], j)
                                j = j + 1
                            }
                            i = i + 1
                        }

                        let det: i64 = det_matrix(5, M)
                        if det != 1 && det != -1 && det != 2 && det != -2 {
                            e = e + 1
                            continue
                        }

                        adj_matrix(5, M, adj)

                        # Build r: columns of adj, possibly negated
                        let mut i2: i64 = 0
                        while i2 < 5 {
                            let mut j2: i64 = 0
                            while j2 < 5 {
                                v[j2] = adj[j2 * 5 + i2]
                                j2 = j2 + 1
                            }
                            let mut dot: i64 = 0
                            let mut k: i64 = 0
                            while k < 5 {
                                dot = dot + M[i2 * 5 + k] * v[k]
                                k = k + 1
                            }
                            if dot > 0 {
                                let mut j3: i64 = 0
                                while j3 < 5 {
                                    r[i2 * 5 + j3] = -v[j3]
                                    j3 = j3 + 1
                                }
                            } else {
                                let mut j3: i64 = 0
                                while j3 < 5 {
                                    r[i2 * 5 + j3] = v[j3]
                                    j3 = j3 + 1
                                }
                            }
                            i2 = i2 + 1
                        }

                        # den = product of (1 - w(r[i]))^(-1) mod m
                        let mut den: i64 = 1
                        let mut i3: i64 = 0
                        while i3 < 5 {
                            let mut j4: i64 = 0
                            while j4 < 5 {
                                v[j4] = r[i3 * 5 + j4]
                                j4 = j4 + 1
                            }
                            let wi: i64 = w_func(v)
                            let term: i64 = (1 - wi) % MOD
                            let term2: i64 = if term < 0 { term + MOD } else { term }
                            den = den * modinv(term2) % MOD
                            i3 = i3 + 1
                        }

                        let ci: i64 = num_combos
                        let mut i4: i64 = 0
                        while i4 < 5 {
                            combo_I[ci * 5 + i4] = idx[i4] as i32
                            i4 = i4 + 1
                        }
                        combo_det[ci] = det
                        let mut i5: i64 = 0
                        while i5 < 25 {
                            combo_adj[ci * 25 + i5] = adj[i5]
                            combo_r[ci * 25 + i5] = r[i5]
                            i5 = i5 + 1
                        }
                        combo_den[ci] = den
                        num_combos = num_combos + 1

                        e = e + 1
                    }
                    d = d + 1
                }
                c = c + 1
            }
            b = b + 1
        }
        a = a + 1
    }

    free(M as ptr<void>)
    free(adj as ptr<void>)
    free(r as ptr<void>)
    free(v as ptr<void>)
}

# P function: compute P(L) where L has 10 values
function P_func(L: ptr<i64>, s_flag: i64) -> i64 {
    let b: ptr<i64> = calloc(15, 8) as ptr<i64>
    let mut i: i64 = 0
    while i < 10 {
        b[i] = L[i]
        i = i + 1
    }
    while i < 15 {
        b[i] = 0
        i = i + 1
    }

    let bn: ptr<i64> = calloc(5, 8) as ptr<i64>
    let xn: ptr<i64> = calloc(5, 8) as ptr<i64>
    let exp: ptr<i64> = calloc(5, 8) as ptr<i64>
    let T: ptr<i64> = calloc(5, 8) as ptr<i64>
    let dr: ptr<i64> = calloc(25, 8) as ptr<i64>

    let mut t: i64 = 0
    let mut ci: i64 = 0
    while ci < num_combos {
        let det: i64 = combo_det[ci]

        let mut i2: i64 = 0
        while i2 < 5 {
            bn[i2] = b[combo_I[ci * 5 + i2] as i64]
            i2 = i2 + 1
        }

        let mut i3: i64 = 0
        while i3 < 5 {
            let mut sum: i64 = 0
            let mut j: i64 = 0
            while j < 5 {
                sum = sum + combo_adj[ci * 25 + i3 * 5 + j] * bn[j]
                j = j + 1
            }
            xn[i3] = sum
            i3 = i3 + 1
        }

        let mut ok: i64 = 1
        let mut eq: i64 = 0
        if det > 0 {
            let mut idx: i64 = 0
            while idx < 15 && ok != 0 {
                let mut v: i64 = 0
                let mut j: i64 = 0
                while j < 5 {
                    v = v + h_get(idx, j) * xn[j]
                    j = j + 1
                }
                let u: i64 = b[idx] * det
                if v > u {
                    ok = 0
                } else {
                    if v == u { eq = eq + 1 }
                }
                idx = idx + 1
            }
        } else {
            let mut idx: i64 = 0
            while idx < 15 && ok != 0 {
                let mut v: i64 = 0
                let mut j: i64 = 0
                while j < 5 {
                    v = v + h_get(idx, j) * xn[j]
                    j = j + 1
                }
                let u: i64 = b[idx] * det
                if v < u {
                    ok = 0
                } else {
                    if v == u { eq = eq + 1 }
                }
                idx = idx + 1
            }
        }

        if ok == 0 {
            ci = ci + 1
            continue
        }
        if s_flag != 0 && eq != 5 {
            ci = ci + 1
            continue
        }

        let da: i64 = if det < 0 { -det } else { det }
        if da == 1 {
            let mut i4: i64 = 0
            while i4 < 5 {
                exp[i4] = xn[i4] / det
                i4 = i4 + 1
            }
            t = (t + f_func(exp) * combo_den[ci]) % MOD
        } else {
            # da == 2
            let mut i5: i64 = 0
            while i5 < 5 {
                let mut j2: i64 = 0
                while j2 < 5 {
                    dr[i5 * 5 + j2] = det * combo_r[ci * 25 + i5 * 5 + j2]
                    j2 = j2 + 1
                }
                i5 = i5 + 1
            }

            let tw: i64 = da * 2
            let mut num: i64 = 0
            let mut mask: i64 = 0
            while mask < 32 {
                let mut j3: i64 = 0
                while j3 < 5 {
                    T[j3] = 2 * xn[j3]
                    j3 = j3 + 1
                }
                let mut i6: i64 = 0
                while i6 < 5 {
                    if (mask & (1 << i6)) != 0 {
                        let mut j4: i64 = 0
                        while j4 < 5 {
                            T[j4] = T[j4] + dr[i6 * 5 + j4]
                            j4 = j4 + 1
                        }
                    }
                    i6 = i6 + 1
                }
                let mut valid: i64 = 1
                let mut j5: i64 = 0
                while j5 < 5 {
                    if T[j5] % tw != 0 {
                        valid = 0
                        break
                    }
                    j5 = j5 + 1
                }
                if valid != 0 {
                    let mut j6: i64 = 0
                    while j6 < 5 {
                        exp[j6] = T[j6] / (2 * det)
                        j6 = j6 + 1
                    }
                    let mut all_ok: i64 = 1
                    let mut row: i64 = 0
                    while row < 15 && all_ok != 0 {
                        let mut v2: i64 = 0
                        let mut k: i64 = 0
                        while k < 5 {
                            v2 = v2 + h_get(row, k) * exp[k]
                            k = k + 1
                        }
                        if v2 > b[row] {
                            all_ok = 0
                        }
                        row = row + 1
                    }
                    if all_ok != 0 {
                        num = (num + f_func(exp)) % MOD
                    }
                }
                mask = mask + 1
            }
            t = (t + num * combo_den[ci]) % MOD
        }
        ci = ci + 1
    }

    free(b as ptr<void>)
    free(bn as ptr<void>)
    free(xn as ptr<void>)
    free(exp as ptr<void>)
    free(T as ptr<void>)
    free(dr as ptr<void>)
    return t
}

function B_sequence(n: i64, a: ptr<i64>) -> void {
    a[0] = 1
    a[1] = 7
    let mut i: i64 = 2
    while i < n {
        a[i] = (7 * a[i - 1] + a[i - 2] * a[i - 2]) % MOD
        i = i + 1
    }
}

function main() -> i32 {
    precompute_combos()

    let n: i64 = 100
    let A: ptr<i64> = calloc(1005, 8) as ptr<i64>
    B_sequence(10 * n + 5, A)

    let group: ptr<i64> = calloc(10, 8) as ptr<i64>
    let mut total: i64 = 0
    let mut i: i64 = 0
    while i < n {
        let mut j: i64 = 0
        while j < 10 {
            group[j] = A[10 * i + j]
            j = j + 1
        }
        total = (total + P_func(group, 1)) % MOD
        i = i + 1
    }

    printf("%lld\n", total)

    free(A as ptr<void>)
    free(group as ptr<void>)
    free(combo_I as ptr<void>)
    free(combo_det as ptr<void>)
    free(combo_adj as ptr<void>)
    free(combo_r as ptr<void>)
    free(combo_den as ptr<void>)
    return 0
}

Generated C

#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* Flow runtime helpers */
typedef struct flow_temp_node { struct flow_temp_node* next; } flow_temp_node;
static flow_temp_node* flow_temp_head = NULL;
static int flow_temp_atexit_set = 0;
__attribute__((unused)) static void flow_temp_free_all(void) {
    while (flow_temp_head) {
        flow_temp_node* n = flow_temp_head;
        flow_temp_head = n->next;
        free(n);
    }
}
__attribute__((unused)) static void* flow_temp_alloc(size_t nbytes) {
    flow_temp_node* node = (flow_temp_node*)malloc(sizeof(flow_temp_node) + nbytes);
    if (!node) return NULL;
    node->next = flow_temp_head;
    flow_temp_head = node;
    if (!flow_temp_atexit_set) {
        flow_temp_atexit_set = 1;
        atexit(flow_temp_free_all);
    }
    return (void*)(node + 1);
}
#ifndef FLOW_DIAG
#define FLOW_DIAG(msg) fprintf(stderr, "%s", (msg))
#endif
#ifndef FLOW_LOG
#define FLOW_LOG(fmt, ...) printf(fmt, __VA_ARGS__)
#endif
#ifndef FLOW_LOG_EMPTY
#define FLOW_LOG_EMPTY(fmt) printf(fmt)
#endif
static char* flow_strcat(const char* a, const char* b) {
    size_t la = strlen(a ? a : ""), lb = strlen(b ? b : "");
    char* r = (char*)flow_temp_alloc(la + lb + 1);
    if (!r) return NULL;
    if (la) memcpy(r, a, la);
    if (lb) memcpy(r + la, b, lb);
    r[la + lb] = '\0';
    return r;
}

#define __flow_in_arr(arr, val) __extension__ ({ \
    int _found = 0; \
    size_t _n = sizeof(arr)/sizeof((arr)[0]); \
    for (size_t _i = 0; _i < _n; _i++) { \
        if ((arr)[_i] == (val)) { _found = 1; break; } \
    } _found; })

/* Unified fault handler (MISRA #279) — override with -DFLOW_FAULT_HANDLER=fn */
#ifndef FLOW_FAULT_HANDLER
__attribute__((unused)) static inline void flow_fault_handler(const char* msg) {
    fprintf(stderr, "flow: %s\n", msg ? msg : "fault");
    abort();
#if defined(__GNUC__) || defined(__clang__)
    __builtin_unreachable();
#endif
}
#else
#define flow_fault_handler FLOW_FAULT_HANDLER
#endif
#define flow_div_by_zero_handler() flow_fault_handler("division by zero")
#define flow_shift_ub_handler() flow_fault_handler("invalid shift (amount out of range or left-shift of negative)")

#ifndef FLOW_CHECKED_DIV
#define FLOW_CHECKED_DIV(L, R) (((R) != 0) ? ((L) / (R)) : (flow_div_by_zero_handler(), (L) * 0))
#endif
#ifndef FLOW_CHECKED_MOD
#define FLOW_CHECKED_MOD(L, R) (((R) != 0) ? ((L) % (R)) : (flow_div_by_zero_handler(), (L) * 0))
#endif
#ifndef FLOW_CHECKED_SHL
#define FLOW_CHECKED_SHL(L, R) ((((R) >= 0) && ((unsigned long long)(R) < (sizeof(L) * 8ull)) && ((L) >= 0)) ? ((L) << (R)) : (flow_shift_ub_handler(), (L) * 0))
#endif
#ifndef FLOW_CHECKED_SHR
#define FLOW_CHECKED_SHR(L, R) ((((R) >= 0) && ((unsigned long long)(R) < (sizeof(L) * 8ull))) ? ((L) >> (R)) : (flow_shift_ub_handler(), (L) * 0))
#endif

#include <math.h>

void* _ui_state = NULL;

static inline float i32_to_f32(int32_t v) { return (float)v; }

/* Host stub for @gpu kernels (device codegen replaces this). */
static inline int32_t gpu_thread_id(void) { return 0; }

int64_t gcd_i64_i64(int64_t a0, int64_t b0);
int64_t lcm_i64_i64(int64_t a, int64_t b);
int64_t isqrt_i64(int64_t n);
int64_t mulmod_i64_i64_i64(int64_t a0, int64_t b0, int64_t mod);
int64_t mod_pow_i64_i64_i64(int64_t base, int64_t exp, int64_t mod);
bool is_prime_i64(int64_t n);
int64_t h_get_i64_i64(int64_t i, int64_t j);
int64_t modinv_i64(int64_t x);
int64_t det_matrix_i64_ptr_i64(int64_t n, int64_t* M);
void adj_matrix_i64_ptr_i64_ptr_i64(int64_t n, int64_t* M, int64_t* adj);
int64_t w_func_ptr_i64(int64_t* v);
int64_t f_func_ptr_i64(int64_t* v);
void precompute_combos(void);
int64_t P_func_ptr_i64_i64(int64_t* L, int64_t s_flag);
void B_sequence_i64_ptr_i64(int64_t n, int64_t* a);
int32_t main(void);

static const int64_t MOD = 1000000007;

/* Module statics */
static int64_t h_data[75] = { 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 1, (-1), 0, 0, 0, 0, 0, (-1), 0, 0, 0, 0, 0, (-1), 0, 0, 0, 0, 0, (-1), 0, 0, 0, 0, 0, (-1) };
static int32_t* combo_I = NULL;
static int64_t* combo_det = NULL;
static int64_t* combo_adj = NULL;
static int64_t* combo_r = NULL;
static int64_t* combo_den = NULL;
static int64_t num_combos = 0;

int64_t gcd_i64_i64(int64_t a0, int64_t b0) {
    int64_t a = a0;
    int64_t b = b0;
    while (b != 0) {
        int64_t t = FLOW_CHECKED_MOD((a), (b));
        a = b;
        b = t;
    }
    return a;
}

int64_t lcm_i64_i64(int64_t a, int64_t b) {
    if ((a == 0 || b == 0)) {
        return 0;
    }
    return (FLOW_CHECKED_DIV((a), (gcd_i64_i64(a, b))) * b);
}

int64_t isqrt_i64(int64_t n) {
    if (n < 2) {
        return n;
    }
    int64_t x = n;
    int64_t y = FLOW_CHECKED_DIV(((x + 1)), (2));
    while (y < x) {
        x = y;
        y = FLOW_CHECKED_DIV(((x + FLOW_CHECKED_DIV((n), (x)))), (2));
    }
    return x;
}

int64_t mulmod_i64_i64_i64(int64_t a0, int64_t b0, int64_t mod) {
    int64_t a = FLOW_CHECKED_MOD((a0), (mod));
    int64_t b = FLOW_CHECKED_MOD((b0), (mod));
    int64_t result = 0;
    while (b > 0) {
        if (FLOW_CHECKED_MOD((b), (2)) == 1) {
            result = FLOW_CHECKED_MOD(((result + a)), (mod));
        }
        a = FLOW_CHECKED_MOD(((a * 2)), (mod));
        b = FLOW_CHECKED_DIV((b), (2));
    }
    return result;
}

int64_t mod_pow_i64_i64_i64(int64_t base, int64_t exp, int64_t mod) {
    if (mod == 1) {
        return 0;
    }
    int64_t result = 1;
    int64_t b = FLOW_CHECKED_MOD((base), (mod));
    int64_t e = exp;
    while (e > 0) {
        if (FLOW_CHECKED_MOD((e), (2)) == 1) {
            result = mulmod_i64_i64_i64(result, b, mod);
        }
        b = mulmod_i64_i64_i64(b, b, mod);
        e = FLOW_CHECKED_DIV((e), (2));
    }
    return result;
}

bool is_prime_i64(int64_t n) {
    if (n < 2) {
        return 0;
    }
    if (n < 4) {
        return 1;
    }
    if ((FLOW_CHECKED_MOD((n), (2)) == 0 || FLOW_CHECKED_MOD((n), (3)) == 0)) {
        return 0;
    }
    int64_t i = 5;
    while ((i * i) <= n) {
        if ((FLOW_CHECKED_MOD((n), (i)) == 0 || FLOW_CHECKED_MOD((n), ((i + 2))) == 0)) {
            return 0;
        }
        i = (i + 6);
    }
    return 1;
}




int64_t h_get_i64_i64(int64_t i, int64_t j) {
    return (((unsigned)(((i * 5) + j)) < 75) ? h_data[((i * 5) + j)] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(((i * 5) + j)), 75), flow_fault_handler("array index out of bounds"), h_data[0]));
}

int64_t modinv_i64(int64_t x) {
    return mod_pow_i64_i64_i64(FLOW_CHECKED_MOD((x), (MOD)), (MOD - 2), MOD);
}

int64_t det_matrix_i64_ptr_i64(int64_t n, int64_t* M) {
    if (n == 1) {
        return M[0];
    }
    if (n == 2) {
        return ((M[0] * M[6]) - (M[1] * M[5]));
    }
    int64_t s = 0;
    int64_t* sub = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t j = 0;
    while (j < n) {
        if (M[j] == 0) {
            j = (j + 1);
            continue;
        }
        int64_t i = 1;
        while (i < n) {
            int64_t col = 0;
            int64_t k = 0;
            while (k < n) {
                if (k == j) {
                    k = (k + 1);
                    continue;
                }
                sub[(((i - 1) * 5) + col)] = M[((i * 5) + k)];
                col = (col + 1);
                k = (k + 1);
            }
            i = (i + 1);
        }
        int64_t cof = det_matrix_i64_ptr_i64((n - 1), sub);
        if ((j & 1) != 0) {
            s = (s - (M[j] * cof));
        } else {
            s = (s + (M[j] * cof));
        }
        j = (j + 1);
    }
    free(((void*)(sub)));
    return s;
}

void adj_matrix_i64_ptr_i64_ptr_i64(int64_t n, int64_t* M, int64_t* adj) {
    int64_t* sub = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t i = 0;
    while (i < n) {
        int64_t j = 0;
        while (j < n) {
            int64_t row = 0;
            int64_t k = 0;
            while (k < n) {
                if (k == j) {
                    k = (k + 1);
                    continue;
                }
                int64_t col = 0;
                int64_t l = 0;
                while (l < n) {
                    if (l == i) {
                        l = (l + 1);
                        continue;
                    }
                    sub[((row * 5) + col)] = M[((k * 5) + l)];
                    col = (col + 1);
                    l = (l + 1);
                }
                row = (row + 1);
                k = (k + 1);
            }
            int64_t cof = det_matrix_i64_ptr_i64((n - 1), sub);
            if (((i + j) & 1) != 0) {
                adj[((i * 5) + j)] = (-cof);
            } else {
                adj[((i * 5) + j)] = cof;
            }
            j = (j + 1);
        }
        i = (i + 1);
    }
    free(((void*)(sub)));
}

int64_t w_func_ptr_i64(int64_t* v) {
    int64_t primes[5] = { 2, 3, 5, 7, 11 };
    int64_t z = 1;
    int64_t j = 0;
    while (j < 5) {
        int64_t e = v[j];
        if (e >= 0) {
            z = FLOW_CHECKED_MOD(((z * mod_pow_i64_i64_i64((((unsigned)(j) < 5) ? primes[j] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(j), 5), flow_fault_handler("array index out of bounds"), primes[0])), e, MOD))), (MOD));
        } else {
            int64_t inv_base = modinv_i64(mod_pow_i64_i64_i64((((unsigned)(j) < 5) ? primes[j] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(j), 5), flow_fault_handler("array index out of bounds"), primes[0])), (-e), MOD));
            z = FLOW_CHECKED_MOD(((z * inv_base)), (MOD));
        }
        j = (j + 1);
    }
    return z;
}

int64_t f_func_ptr_i64(int64_t* v) {
    int64_t primes[5] = { 2, 3, 5, 7, 11 };
    int64_t j = 0;
    while (j < 5) {
        if (v[j] < 0) {
            return 0;
        }
        j = (j + 1);
    }
    int64_t z = 1;
    j = 0;
    while (j < 5) {
        z = FLOW_CHECKED_MOD(((z * mod_pow_i64_i64_i64((((unsigned)(j) < 5) ? primes[j] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(j), 5), flow_fault_handler("array index out of bounds"), primes[0])), v[j], MOD))), (MOD));
        j = (j + 1);
    }
    return z;
}

void precompute_combos(void) {
    combo_I = ((int32_t*)(calloc((3003 * 5), 4)));
    combo_det = ((int64_t*)(calloc(3003, 8)));
    combo_adj = ((int64_t*)(calloc((3003 * 25), 8)));
    combo_r = ((int64_t*)(calloc((3003 * 25), 8)));
    combo_den = ((int64_t*)(calloc(3003, 8)));
    num_combos = 0;
    int64_t* M = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t* adj = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t* r = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t* v = (int64_t*)(((int64_t*)(calloc(5, 8))));
    int64_t a = 0;
    while (a < 15) {
        int64_t b = (a + 1);
        while (b < 15) {
            int64_t c = (b + 1);
            while (c < 15) {
                int64_t d = (c + 1);
                while (d < 15) {
                    int64_t e = (d + 1);
                    while (e < 15) {
                        int64_t idx[5] = { a, b, c, d, e };
                        int64_t i = 0;
                        while (i < 5) {
                            int64_t j = 0;
                            while (j < 5) {
                                M[((i * 5) + j)] = h_get_i64_i64((((unsigned)(i) < 5) ? idx[i] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(i), 5), flow_fault_handler("array index out of bounds"), idx[0])), j);
                                j = (j + 1);
                            }
                            i = (i + 1);
                        }
                        int64_t det = det_matrix_i64_ptr_i64(5, M);
                        if ((((det != 1 && det != (-1)) && det != 2) && det != (-2))) {
                            e = (e + 1);
                            continue;
                        }
                        adj_matrix_i64_ptr_i64_ptr_i64(5, M, adj);
                        int64_t i2 = 0;
                        while (i2 < 5) {
                            int64_t j2 = 0;
                            while (j2 < 5) {
                                v[j2] = adj[((j2 * 5) + i2)];
                                j2 = (j2 + 1);
                            }
                            int64_t dot = 0;
                            int64_t k = 0;
                            while (k < 5) {
                                dot = (dot + (M[((i2 * 5) + k)] * v[k]));
                                k = (k + 1);
                            }
                            if (dot > 0) {
                                int64_t j3 = 0;
                                while (j3 < 5) {
                                    r[((i2 * 5) + j3)] = (-v[j3]);
                                    j3 = (j3 + 1);
                                }
                            } else {
                                int64_t j3 = 0;
                                while (j3 < 5) {
                                    r[((i2 * 5) + j3)] = v[j3];
                                    j3 = (j3 + 1);
                                }
                            }
                            i2 = (i2 + 1);
                        }
                        int64_t den = 1;
                        int64_t i3 = 0;
                        while (i3 < 5) {
                            int64_t j4 = 0;
                            while (j4 < 5) {
                                v[j4] = r[((i3 * 5) + j4)];
                                j4 = (j4 + 1);
                            }
                            int64_t wi = w_func_ptr_i64(v);
                            int64_t term = FLOW_CHECKED_MOD(((1 - wi)), (MOD));
                            int64_t term2 = ((term < 0) ? ((term + MOD)) : (term));
                            den = FLOW_CHECKED_MOD(((den * modinv_i64(term2))), (MOD));
                            i3 = (i3 + 1);
                        }
                        int64_t ci = num_combos;
                        int64_t i4 = 0;
                        while (i4 < 5) {
                            combo_I[((ci * 5) + i4)] = ((int32_t)((((unsigned)(i4) < 5) ? idx[i4] : (fprintf(stderr, "array index %d out of bounds (size %d)\n", (int)(i4), 5), flow_fault_handler("array index out of bounds"), idx[0]))));
                            i4 = (i4 + 1);
                        }
                        combo_det[ci] = det;
                        int64_t i5 = 0;
                        while (i5 < 25) {
                            combo_adj[((ci * 25) + i5)] = adj[i5];
                            combo_r[((ci * 25) + i5)] = r[i5];
                            i5 = (i5 + 1);
                        }
                        combo_den[ci] = den;
                        num_combos = (num_combos + 1);
                        e = (e + 1);
                    }
                    d = (d + 1);
                }
                c = (c + 1);
            }
            b = (b + 1);
        }
        a = (a + 1);
    }
    free(((void*)(M)));
    free(((void*)(adj)));
    free(((void*)(r)));
    free(((void*)(v)));
}

int64_t P_func_ptr_i64_i64(int64_t* L, int64_t s_flag) {
    int64_t* b = (int64_t*)(((int64_t*)(calloc(15, 8))));
    int64_t i = 0;
    while (i < 10) {
        b[i] = L[i];
        i = (i + 1);
    }
    while (i < 15) {
        b[i] = 0;
        i = (i + 1);
    }
    int64_t* bn = (int64_t*)(((int64_t*)(calloc(5, 8))));
    int64_t* xn = (int64_t*)(((int64_t*)(calloc(5, 8))));
    int64_t* exp = (int64_t*)(((int64_t*)(calloc(5, 8))));
    int64_t* T = (int64_t*)(((int64_t*)(calloc(5, 8))));
    int64_t* dr = (int64_t*)(((int64_t*)(calloc(25, 8))));
    int64_t t = 0;
    int64_t ci = 0;
    while (ci < num_combos) {
        int64_t det = combo_det[ci];
        int64_t i2 = 0;
        while (i2 < 5) {
            bn[i2] = b[((int64_t)(combo_I[((ci * 5) + i2)]))];
            i2 = (i2 + 1);
        }
        int64_t i3 = 0;
        while (i3 < 5) {
            int64_t sum = 0;
            int64_t j = 0;
            while (j < 5) {
                sum = (sum + (combo_adj[(((ci * 25) + (i3 * 5)) + j)] * bn[j]));
                j = (j + 1);
            }
            xn[i3] = sum;
            i3 = (i3 + 1);
        }
        int64_t ok = 1;
        int64_t eq = 0;
        if (det > 0) {
            int64_t idx = 0;
            while ((idx < 15 && ok != 0)) {
                int64_t v = 0;
                int64_t j = 0;
                while (j < 5) {
                    v = (v + (h_get_i64_i64(idx, j) * xn[j]));
                    j = (j + 1);
                }
                int64_t u = (b[idx] * det);
                if (v > u) {
                    ok = 0;
                } else {
                    if (v == u) {
                        eq = (eq + 1);
                    }
                }
                idx = (idx + 1);
            }
        } else {
            int64_t idx = 0;
            while ((idx < 15 && ok != 0)) {
                int64_t v = 0;
                int64_t j = 0;
                while (j < 5) {
                    v = (v + (h_get_i64_i64(idx, j) * xn[j]));
                    j = (j + 1);
                }
                int64_t u = (b[idx] * det);
                if (v < u) {
                    ok = 0;
                } else {
                    if (v == u) {
                        eq = (eq + 1);
                    }
                }
                idx = (idx + 1);
            }
        }
        if (ok == 0) {
            ci = (ci + 1);
            continue;
        }
        if ((s_flag != 0 && eq != 5)) {
            ci = (ci + 1);
            continue;
        }
        int64_t da = ((det < 0) ? ((-det)) : (det));
        if (da == 1) {
            int64_t i4 = 0;
            while (i4 < 5) {
                exp[i4] = FLOW_CHECKED_DIV((xn[i4]), (det));
                i4 = (i4 + 1);
            }
            t = FLOW_CHECKED_MOD(((t + (f_func_ptr_i64(exp) * combo_den[ci]))), (MOD));
        } else {
            int64_t i5 = 0;
            while (i5 < 5) {
                int64_t j2 = 0;
                while (j2 < 5) {
                    dr[((i5 * 5) + j2)] = (det * combo_r[(((ci * 25) + (i5 * 5)) + j2)]);
                    j2 = (j2 + 1);
                }
                i5 = (i5 + 1);
            }
            int64_t tw = (da * 2);
            int64_t num = 0;
            int64_t mask = 0;
            while (mask < 32) {
                int64_t j3 = 0;
                while (j3 < 5) {
                    T[j3] = (2 * xn[j3]);
                    j3 = (j3 + 1);
                }
                int64_t i6 = 0;
                while (i6 < 5) {
                    if ((mask & FLOW_CHECKED_SHL((1), (i6))) != 0) {
                        int64_t j4 = 0;
                        while (j4 < 5) {
                            T[j4] = (T[j4] + dr[((i6 * 5) + j4)]);
                            j4 = (j4 + 1);
                        }
                    }
                    i6 = (i6 + 1);
                }
                int64_t valid = 1;
                int64_t j5 = 0;
                while (j5 < 5) {
                    if (FLOW_CHECKED_MOD((T[j5]), (tw)) != 0) {
                        valid = 0;
                        break;
                    }
                    j5 = (j5 + 1);
                }
                if (valid != 0) {
                    int64_t j6 = 0;
                    while (j6 < 5) {
                        exp[j6] = FLOW_CHECKED_DIV((T[j6]), ((2 * det)));
                        j6 = (j6 + 1);
                    }
                    int64_t all_ok = 1;
                    int64_t row = 0;
                    while ((row < 15 && all_ok != 0)) {
                        int64_t v2 = 0;
                        int64_t k = 0;
                        while (k < 5) {
                            v2 = (v2 + (h_get_i64_i64(row, k) * exp[k]));
                            k = (k + 1);
                        }
                        if (v2 > b[row]) {
                            all_ok = 0;
                        }
                        row = (row + 1);
                    }
                    if (all_ok != 0) {
                        num = FLOW_CHECKED_MOD(((num + f_func_ptr_i64(exp))), (MOD));
                    }
                }
                mask = (mask + 1);
            }
            t = FLOW_CHECKED_MOD(((t + (num * combo_den[ci]))), (MOD));
        }
        ci = (ci + 1);
    }
    free(((void*)(b)));
    free(((void*)(bn)));
    free(((void*)(xn)));
    free(((void*)(exp)));
    free(((void*)(T)));
    free(((void*)(dr)));
    return t;
}

void B_sequence_i64_ptr_i64(int64_t n, int64_t* a) {
    a[0] = 1;
    a[1] = 7;
    int64_t i = 2;
    while (i < n) {
        a[i] = FLOW_CHECKED_MOD((((7 * a[(i - 1)]) + (a[(i - 2)] * a[(i - 2)]))), (MOD));
        i = (i + 1);
    }
}

int32_t main(void) {
    precompute_combos();
    int64_t n = 100;
    int64_t* A = (int64_t*)(((int64_t*)(calloc(1005, 8))));
    B_sequence_i64_ptr_i64(((10 * n) + 5), A);
    int64_t* group = (int64_t*)(((int64_t*)(calloc(10, 8))));
    int64_t total = 0;
    int64_t i = 0;
    while (i < n) {
        int64_t j = 0;
        while (j < 10) {
            group[j] = A[((10 * i) + j)];
            j = (j + 1);
        }
        total = FLOW_CHECKED_MOD(((total + P_func_ptr_i64_i64(group, 1))), (MOD));
        i = (i + 1);
    }
    printf("%lld\n", total);
    free(((void*)(A)));
    free(((void*)(group)));
    free(((void*)(combo_I)));
    free(((void*)(combo_det)));
    free(((void*)(combo_adj)));
    free(((void*)(combo_r)));
    free(((void*)(combo_den)));
    return 0;
}

Generated MLIR

module {
  llvm.func @printf(!llvm.ptr, ...) -> i32
  llvm.mlir.global internal constant @str_0("%lld\n\00") {addr_space = 0 : i32} : !llvm.array<6 x i8>
  func.func @gcd(%arg0: i64, %arg1: i64) -> i64 {
    %0 = llvm.mlir.constant(1 : i64) : i64
    %1 = llvm.alloca %0 x i64 : (i64) -> !llvm.ptr
    llvm.store %arg0, %1 : i64, !llvm.ptr
    %2 = llvm.mlir.constant(1 : i64) : i64
    %3 = llvm.alloca %2 x i64 : (i64) -> !llvm.ptr
    llvm.store %arg1, %3 : i64, !llvm.ptr
    cf.br ^bb0
    ^bb0:
    %4 = llvm.load %3 : !llvm.ptr -> i64
    %5 = arith.constant 0 : i32
    %7 = arith.extsi %5 : i32 to i64
    %6 = arith.cmpi ne, %4, %7 : i64
    cf.cond_br %6, ^bb1, ^bb2
    ^bb1:
      %8 = llvm.load %1 : !llvm.ptr -> i64
      %9 = llvm.load %3 : !llvm.ptr -> i64
      %10 = arith.remsi %8, %9 : i64
      %11 = llvm.load %3 : !llvm.ptr -> i64
      llvm.store %11, %1 : i64, !llvm.ptr
      llvm.store %10, %3 : i64, !llvm.ptr
      cf.br ^bb0
    ^bb2:
    %12 = llvm.load %1 : !llvm.ptr -> i64
    func.return %12 : i64
  }
  func.func @lcm(%arg0: i64, %arg1: i64) -> i64 {
    %13 = arith.constant 0 : i32
    %15 = arith.extsi %13 : i32 to i64
    %14 = arith.cmpi eq, %arg0, %15 : i64
    %16 = scf.if %14 -> (i1) {
      %17 = arith.constant true
      scf.yield %17 : i1
    } else {
      %18 = arith.constant 0 : i32
      %20 = arith.extsi %18 : i32 to i64
      %19 = arith.cmpi eq, %arg1, %20 : i64
      scf.yield %19 : i1
    }
    cf.cond_br %16, ^bb3, ^bb4
    ^bb3:
      %21 = arith.constant 0 : i32
      %22 = arith.extsi %21 : i32 to i64
      func.return %22 : i64
    ^bb4:
      cf.br ^bb5
    ^bb5:
    %23 = func.call @gcd(%arg0, %arg1) : (i64, i64) -> i64
    %24 = arith.divsi %arg0, %23 : i64
    %25 = arith.muli %24, %arg1 : i64
    func.return %25 : i64
  }
  func.func @isqrt(%arg0: i64) -> i64 {
    %26 = arith.constant 2 : i32
    %28 = arith.extsi %26 : i32 to i64
    %27 = arith.cmpi slt, %arg0, %28 : i64
    cf.cond_br %27, ^bb6, ^bb7
    ^bb6:
      func.return %arg0 : i64
    ^bb7:
      cf.br ^bb8
    ^bb8:
    %29 = llvm.mlir.constant(1 : i64) : i64
    %30 = llvm.alloca %29 x i64 : (i64) -> !llvm.ptr
    llvm.store %arg0, %30 : i64, !llvm.ptr
    %31 = llvm.load %30 : !llvm.ptr -> i64
    %32 = arith.constant 1 : i32
    %34 = arith.extsi %32 : i32 to i64
    %33 = arith.addi %31, %34 : i64
    %35 = arith.constant 2 : i32
    %37 = arith.extsi %35 : i32 to i64
    %36 = arith.divsi %33, %37 : i64
    %38 = llvm.mlir.constant(1 : i64) : i64
    %39 = llvm.alloca %38 x i64 : (i64) -> !llvm.ptr
    llvm.store %36, %39 : i64, !llvm.ptr
    cf.br ^bb9
    ^bb9:
    %40 = llvm.load %39 : !llvm.ptr -> i64
    %41 = llvm.load %30 : !llvm.ptr -> i64
    %42 = arith.cmpi slt, %40, %41 : i64
    cf.cond_br %42, ^bb10, ^bb11
    ^bb10:
      %43 = llvm.load %39 : !llvm.ptr -> i64
      llvm.store %43, %30 : i64, !llvm.ptr
      %44 = llvm.load %30 : !llvm.ptr -> i64
      %45 = llvm.load %30 : !llvm.ptr -> i64
      %46 = arith.divsi %arg0, %45 : i64
      %47 = arith.addi %44, %46 : i64
      %48 = arith.constant 2 : i32
      %50 = arith.extsi %48 : i32 to i64
      %49 = arith.divsi %47, %50 : i64
      llvm.store %49, %39 : i64, !llvm.ptr
      cf.br ^bb9
    ^bb11:
    %51 = llvm.load %30 : !llvm.ptr -> i64
    func.return %51 : i64
  }
  func.func @mulmod(%arg0: i64, %arg1: i64, %arg2: i64) -> i64 {
    %52 = arith.remsi %arg0, %arg2 : i64
    %53 = llvm.mlir.constant(1 : i64) : i64
    %54 = llvm.alloca %53 x i64 : (i64) -> !llvm.ptr
    llvm.store %52, %54 : i64, !llvm.ptr
    %55 = arith.remsi %arg1, %arg2 : i64
    %56 = llvm.mlir.constant(1 : i64) : i64
    %57 = llvm.alloca %56 x i64 : (i64) -> !llvm.ptr
    llvm.store %55, %57 : i64, !llvm.ptr
    %58 = arith.constant 0 : i32
    %59 = arith.extsi %58 : i32 to i64
    %60 = llvm.mlir.constant(1 : i64) : i64
    %61 = llvm.alloca %60 x i64 : (i64) -> !llvm.ptr
    llvm.store %59, %61 : i64, !llvm.ptr
    cf.br ^bb12
    ^bb12:
    %62 = llvm.load %57 : !llvm.ptr -> i64
    %63 = arith.constant 0 : i32
    %65 = arith.extsi %63 : i32 to i64
    %64 = arith.cmpi sgt, %62, %65 : i64
    cf.cond_br %64, ^bb13, ^bb14
    ^bb13:
      %66 = llvm.load %57 : !llvm.ptr -> i64
      %67 = arith.constant 2 : i32
      %69 = arith.extsi %67 : i32 to i64
      %68 = arith.remsi %66, %69 : i64
      %70 = arith.constant 1 : i32
      %72 = arith.extsi %70 : i32 to i64
      %71 = arith.cmpi eq, %68, %72 : i64
      cf.cond_br %71, ^bb15, ^bb16
      ^bb15:
        %73 = llvm.load %61 : !llvm.ptr -> i64
        %74 = llvm.load %54 : !llvm.ptr -> i64
        %75 = arith.addi %73, %74 : i64
        %76 = arith.remsi %75, %arg2 : i64
        llvm.store %76, %61 : i64, !llvm.ptr
        cf.br ^bb17
      ^bb16:
        cf.br ^bb17
      ^bb17:
      %77 = llvm.load %54 : !llvm.ptr -> i64
      %78 = arith.constant 2 : i32
      %80 = arith.extsi %78 : i32 to i64
      %79 = arith.muli %77, %80 : i64
      %81 = arith.remsi %79, %arg2 : i64
      llvm.store %81, %54 : i64, !llvm.ptr
      %82 = llvm.load %57 : !llvm.ptr -> i64
      %83 = arith.constant 2 : i32
      %85 = arith.extsi %83 : i32 to i64
      %84 = arith.divsi %82, %85 : i64
      llvm.store %84, %57 : i64, !llvm.ptr
      cf.br ^bb12
    ^bb14:
    %86 = llvm.load %61 : !llvm.ptr -> i64
    func.return %86 : i64
  }
  func.func @mod_pow(%arg0: i64, %arg1: i64, %arg2: i64) -> i64 {
    %87 = arith.constant 1 : i32
    %89 = arith.extsi %87 : i32 to i64
    %88 = arith.cmpi eq, %arg2, %89 : i64
    cf.cond_br %88, ^bb18, ^bb19
    ^bb18:
      %90 = arith.constant 0 : i32
      %91 = arith.extsi %90 : i32 to i64
      func.return %91 : i64
    ^bb19:
      cf.br ^bb20
    ^bb20:
    %92 = arith.constant 1 : i32
    %93 = arith.extsi %92 : i32 to i64
    %94 = llvm.mlir.constant(1 : i64) : i64
    %95 = llvm.alloca %94 x i64 : (i64) -> !llvm.ptr
    llvm.store %93, %95 : i64, !llvm.ptr
    %96 = arith.remsi %arg0, %arg2 : i64
    %97 = llvm.mlir.constant(1 : i64) : i64
    %98 = llvm.alloca %97 x i64 : (i64) -> !llvm.ptr
    llvm.store %96, %98 : i64, !llvm.ptr
    %99 = llvm.mlir.constant(1 : i64) : i64
    %100 = llvm.alloca %99 x i64 : (i64) -> !llvm.ptr
    llvm.store %arg1, %100 : i64, !llvm.ptr
    cf.br ^bb21
    ^bb21:
    %101 = llvm.load %100 : !llvm.ptr -> i64
    %102 = arith.constant 0 : i32
    %104 = arith.extsi %102 : i32 to i64
    %103 = arith.cmpi sgt, %101, %104 : i64
    cf.cond_br %103, ^bb22, ^bb23
    ^bb22:
      %105 = llvm.load %100 : !llvm.ptr -> i64
      %106 = arith.constant 2 : i32
      %108 = arith.extsi %106 : i32 to i64
      %107 = arith.remsi %105, %108 : i64
      %109 = arith.constant 1 : i32
      %111 = arith.extsi %109 : i32 to i64
      %110 = arith.cmpi eq, %107, %111 : i64
      cf.cond_br %110, ^bb24, ^bb25
      ^bb24:
        %113 = llvm.load %95 : !llvm.ptr -> i64
        %114 = llvm.load %98 : !llvm.ptr -> i64
        %112 = func.call @mulmod(%113, %114, %arg2) : (i64, i64, i64) -> i64
        llvm.store %112, %95 : i64, !llvm.ptr
        cf.br ^bb26
      ^bb25:
        cf.br ^bb26
      ^bb26:
      %116 = llvm.load %98 : !llvm.ptr -> i64
      %117 = llvm.load %98 : !llvm.ptr -> i64
      %115 = func.call @mulmod(%116, %117, %arg2) : (i64, i64, i64) -> i64
      llvm.store %115, %98 : i64, !llvm.ptr
      %118 = llvm.load %100 : !llvm.ptr -> i64
      %119 = arith.constant 2 : i32
      %121 = arith.extsi %119 : i32 to i64
      %120 = arith.divsi %118, %121 : i64
      llvm.store %120, %100 : i64, !llvm.ptr
      cf.br ^bb21
    ^bb23:
    %122 = llvm.load %95 : !llvm.ptr -> i64
    func.return %122 : i64
  }
  func.func @is_prime(%arg0: i64) -> i1 {
    %123 = arith.constant 2 : i32
    %125 = arith.extsi %123 : i32 to i64
    %124 = arith.cmpi slt, %arg0, %125 : i64
    cf.cond_br %124, ^bb27, ^bb28
    ^bb27:
      %126 = arith.constant 0 : i1
      func.return %126 : i1
    ^bb28:
      cf.br ^bb29
    ^bb29:
    %127 = arith.constant 4 : i32
    %129 = arith.extsi %127 : i32 to i64
    %128 = arith.cmpi slt, %arg0, %129 : i64
    cf.cond_br %128, ^bb30, ^bb31
    ^bb30:
      %130 = arith.constant 1 : i1
      func.return %130 : i1
    ^bb31:
      cf.br ^bb32
    ^bb32:
    %131 = arith.constant 2 : i32
    %133 = arith.extsi %131 : i32 to i64
    %132 = arith.remsi %arg0, %133 : i64
    %134 = arith.constant 0 : i32
    %136 = arith.extsi %134 : i32 to i64
    %135 = arith.cmpi eq, %132, %136 : i64
    %137 = scf.if %135 -> (i1) {
      %138 = arith.constant true
      scf.yield %138 : i1
    } else {
      %139 = arith.constant 3 : i32
      %141 = arith.extsi %139 : i32 to i64
      %140 = arith.remsi %arg0, %141 : i64
      %142 = arith.constant 0 : i32
      %144 = arith.extsi %142 : i32 to i64
      %143 = arith.cmpi eq, %140, %144 : i64
      scf.yield %143 : i1
    }
    cf.cond_br %137, ^bb33, ^bb34
    ^bb33:
      %145 = arith.constant 0 : i1
      func.return %145 : i1
    ^bb34:
      cf.br ^bb35
    ^bb35:
    %146 = arith.constant 5 : i32
    %147 = arith.extsi %146 : i32 to i64
    %148 = llvm.mlir.constant(1 : i64) : i64
    %149 = llvm.alloca %148 x i64 : (i64) -> !llvm.ptr
    llvm.store %147, %149 : i64, !llvm.ptr
    cf.br ^bb36
    ^bb36:
    %150 = llvm.load %149 : !llvm.ptr -> i64
    %151 = llvm.load %149 : !llvm.ptr -> i64
    %152 = arith.muli %150, %151 : i64
    %153 = arith.cmpi sle, %152, %arg0 : i64
    cf.cond_br %153, ^bb37, ^bb38
    ^bb37:
      %154 = llvm.load %149 : !llvm.ptr -> i64
      %155 = arith.remsi %arg0, %154 : i64
      %156 = arith.constant 0 : i32
      %158 = arith.extsi %156 : i32 to i64
      %157 = arith.cmpi eq, %155, %158 : i64
      %159 = scf.if %157 -> (i1) {
        %160 = arith.constant true
        scf.yield %160 : i1
      } else {
        %161 = llvm.load %149 : !llvm.ptr -> i64
        %162 = arith.constant 2 : i32
        %164 = arith.extsi %162 : i32 to i64
        %163 = arith.addi %161, %164 : i64
        %165 = arith.remsi %arg0, %163 : i64
        %166 = arith.constant 0 : i32
        %168 = arith.extsi %166 : i32 to i64
        %167 = arith.cmpi eq, %165, %168 : i64
        scf.yield %167 : i1
      }
      cf.cond_br %159, ^bb39, ^bb40
      ^bb39:
        %169 = arith.constant 0 : i1
        func.return %169 : i1
      ^bb40:
        cf.br ^bb41
      ^bb41:
      %170 = llvm.load %149 : !llvm.ptr -> i64
      %171 = arith.constant 6 : i32
      %173 = arith.extsi %171 : i32 to i64
      %172 = arith.addi %170, %173 : i64
      llvm.store %172, %149 : i64, !llvm.ptr
      cf.br ^bb36
    ^bb38:
    %174 = arith.constant 1 : i1
    func.return %174 : i1
  }
  func.func private @calloc(i64, i64) -> !llvm.ptr
  func.func private @free(!llvm.ptr) -> ()

  // Constant: MOD
  llvm.mlir.global internal constant @MOD(1000000007 : i64) : i64
  // Module static: h_data
  llvm.mlir.global internal @h_data() : !llvm.array<75 x i64> {
    %175 = llvm.mlir.zero : !llvm.array<75 x i64>
    %176 = llvm.mlir.constant(1 : i64) : i64
    %177 = llvm.insertvalue %176, %175[0] : !llvm.array<75 x i64>
    %178 = llvm.mlir.constant(1 : i64) : i64
    %179 = llvm.insertvalue %178, %177[1] : !llvm.array<75 x i64>
    %180 = llvm.mlir.constant(0 : i64) : i64
    %181 = llvm.insertvalue %180, %179[2] : !llvm.array<75 x i64>
    %182 = llvm.mlir.constant(0 : i64) : i64
    %183 = llvm.insertvalue %182, %181[3] : !llvm.array<75 x i64>
    %184 = llvm.mlir.constant(0 : i64) : i64
    %185 = llvm.insertvalue %184, %183[4] : !llvm.array<75 x i64>
    %186 = llvm.mlir.constant(1 : i64) : i64
    %187 = llvm.insertvalue %186, %185[5] : !llvm.array<75 x i64>
    %188 = llvm.mlir.constant(0 : i64) : i64
    %189 = llvm.insertvalue %188, %187[6] : !llvm.array<75 x i64>
    %190 = llvm.mlir.constant(1 : i64) : i64
    %191 = llvm.insertvalue %190, %189[7] : !llvm.array<75 x i64>
    %192 = llvm.mlir.constant(0 : i64) : i64
    %193 = llvm.insertvalue %192, %191[8] : !llvm.array<75 x i64>
    %194 = llvm.mlir.constant(0 : i64) : i64
    %195 = llvm.insertvalue %194, %193[9] : !llvm.array<75 x i64>
    %196 = llvm.mlir.constant(1 : i64) : i64
    %197 = llvm.insertvalue %196, %195[10] : !llvm.array<75 x i64>
    %198 = llvm.mlir.constant(0 : i64) : i64
    %199 = llvm.insertvalue %198, %197[11] : !llvm.array<75 x i64>
    %200 = llvm.mlir.constant(0 : i64) : i64
    %201 = llvm.insertvalue %200, %199[12] : !llvm.array<75 x i64>
    %202 = llvm.mlir.constant(1 : i64) : i64
    %203 = llvm.insertvalue %202, %201[13] : !llvm.array<75 x i64>
    %204 = llvm.mlir.constant(0 : i64) : i64
    %205 = llvm.insertvalue %204, %203[14] : !llvm.array<75 x i64>
    %206 = llvm.mlir.constant(1 : i64) : i64
    %207 = llvm.insertvalue %206, %205[15] : !llvm.array<75 x i64>
    %208 = llvm.mlir.constant(0 : i64) : i64
    %209 = llvm.insertvalue %208, %207[16] : !llvm.array<75 x i64>
    %210 = llvm.mlir.constant(0 : i64) : i64
    %211 = llvm.insertvalue %210, %209[17] : !llvm.array<75 x i64>
    %212 = llvm.mlir.constant(0 : i64) : i64
    %213 = llvm.insertvalue %212, %211[18] : !llvm.array<75 x i64>
    %214 = llvm.mlir.constant(1 : i64) : i64
    %215 = llvm.insertvalue %214, %213[19] : !llvm.array<75 x i64>
    %216 = llvm.mlir.constant(0 : i64) : i64
    %217 = llvm.insertvalue %216, %215[20] : !llvm.array<75 x i64>
    %218 = llvm.mlir.constant(1 : i64) : i64
    %219 = llvm.insertvalue %218, %217[21] : !llvm.array<75 x i64>
    %220 = llvm.mlir.constant(1 : i64) : i64
    %221 = llvm.insertvalue %220, %219[22] : !llvm.array<75 x i64>
    %222 = llvm.mlir.constant(0 : i64) : i64
    %223 = llvm.insertvalue %222, %221[23] : !llvm.array<75 x i64>
    %224 = llvm.mlir.constant(0 : i64) : i64
    %225 = llvm.insertvalue %224, %223[24] : !llvm.array<75 x i64>
    %226 = llvm.mlir.constant(0 : i64) : i64
    %227 = llvm.insertvalue %226, %225[25] : !llvm.array<75 x i64>
    %228 = llvm.mlir.constant(1 : i64) : i64
    %229 = llvm.insertvalue %228, %227[26] : !llvm.array<75 x i64>
    %230 = llvm.mlir.constant(0 : i64) : i64
    %231 = llvm.insertvalue %230, %229[27] : !llvm.array<75 x i64>
    %232 = llvm.mlir.constant(1 : i64) : i64
    %233 = llvm.insertvalue %232, %231[28] : !llvm.array<75 x i64>
    %234 = llvm.mlir.constant(0 : i64) : i64
    %235 = llvm.insertvalue %234, %233[29] : !llvm.array<75 x i64>
    %236 = llvm.mlir.constant(0 : i64) : i64
    %237 = llvm.insertvalue %236, %235[30] : !llvm.array<75 x i64>
    %238 = llvm.mlir.constant(1 : i64) : i64
    %239 = llvm.insertvalue %238, %237[31] : !llvm.array<75 x i64>
    %240 = llvm.mlir.constant(0 : i64) : i64
    %241 = llvm.insertvalue %240, %239[32] : !llvm.array<75 x i64>
    %242 = llvm.mlir.constant(0 : i64) : i64
    %243 = llvm.insertvalue %242, %241[33] : !llvm.array<75 x i64>
    %244 = llvm.mlir.constant(1 : i64) : i64
    %245 = llvm.insertvalue %244, %243[34] : !llvm.array<75 x i64>
    %246 = llvm.mlir.constant(0 : i64) : i64
    %247 = llvm.insertvalue %246, %245[35] : !llvm.array<75 x i64>
    %248 = llvm.mlir.constant(0 : i64) : i64
    %249 = llvm.insertvalue %248, %247[36] : !llvm.array<75 x i64>
    %250 = llvm.mlir.constant(1 : i64) : i64
    %251 = llvm.insertvalue %250, %249[37] : !llvm.array<75 x i64>
    %252 = llvm.mlir.constant(1 : i64) : i64
    %253 = llvm.insertvalue %252, %251[38] : !llvm.array<75 x i64>
    %254 = llvm.mlir.constant(0 : i64) : i64
    %255 = llvm.insertvalue %254, %253[39] : !llvm.array<75 x i64>
    %256 = llvm.mlir.constant(0 : i64) : i64
    %257 = llvm.insertvalue %256, %255[40] : !llvm.array<75 x i64>
    %258 = llvm.mlir.constant(0 : i64) : i64
    %259 = llvm.insertvalue %258, %257[41] : !llvm.array<75 x i64>
    %260 = llvm.mlir.constant(1 : i64) : i64
    %261 = llvm.insertvalue %260, %259[42] : !llvm.array<75 x i64>
    %262 = llvm.mlir.constant(0 : i64) : i64
    %263 = llvm.insertvalue %262, %261[43] : !llvm.array<75 x i64>
    %264 = llvm.mlir.constant(1 : i64) : i64
    %265 = llvm.insertvalue %264, %263[44] : !llvm.array<75 x i64>
    %266 = llvm.mlir.constant(0 : i64) : i64
    %267 = llvm.insertvalue %266, %265[45] : !llvm.array<75 x i64>
    %268 = llvm.mlir.constant(0 : i64) : i64
    %269 = llvm.insertvalue %268, %267[46] : !llvm.array<75 x i64>
    %270 = llvm.mlir.constant(0 : i64) : i64
    %271 = llvm.insertvalue %270, %269[47] : !llvm.array<75 x i64>
    %272 = llvm.mlir.constant(1 : i64) : i64
    %273 = llvm.insertvalue %272, %271[48] : !llvm.array<75 x i64>
    %274 = llvm.mlir.constant(1 : i64) : i64
    %275 = llvm.insertvalue %274, %273[49] : !llvm.array<75 x i64>
    %276 = llvm.mlir.constant(-1 : i64) : i64
    %277 = llvm.insertvalue %276, %275[50] : !llvm.array<75 x i64>
    %278 = llvm.mlir.constant(0 : i64) : i64
    %279 = llvm.insertvalue %278, %277[51] : !llvm.array<75 x i64>
    %280 = llvm.mlir.constant(0 : i64) : i64
    %281 = llvm.insertvalue %280, %279[52] : !llvm.array<75 x i64>
    %282 = llvm.mlir.constant(0 : i64) : i64
    %283 = llvm.insertvalue %282, %281[53] : !llvm.array<75 x i64>
    %284 = llvm.mlir.constant(0 : i64) : i64
    %285 = llvm.insertvalue %284, %283[54] : !llvm.array<75 x i64>
    %286 = llvm.mlir.constant(0 : i64) : i64
    %287 = llvm.insertvalue %286, %285[55] : !llvm.array<75 x i64>
    %288 = llvm.mlir.constant(-1 : i64) : i64
    %289 = llvm.insertvalue %288, %287[56] : !llvm.array<75 x i64>
    %290 = llvm.mlir.constant(0 : i64) : i64
    %291 = llvm.insertvalue %290, %289[57] : !llvm.array<75 x i64>
    %292 = llvm.mlir.constant(0 : i64) : i64
    %293 = llvm.insertvalue %292, %291[58] : !llvm.array<75 x i64>
    %294 = llvm.mlir.constant(0 : i64) : i64
    %295 = llvm.insertvalue %294, %293[59] : !llvm.array<75 x i64>
    %296 = llvm.mlir.constant(0 : i64) : i64
    %297 = llvm.insertvalue %296, %295[60] : !llvm.array<75 x i64>
    %298 = llvm.mlir.constant(0 : i64) : i64
    %299 = llvm.insertvalue %298, %297[61] : !llvm.array<75 x i64>
    %300 = llvm.mlir.constant(-1 : i64) : i64
    %301 = llvm.insertvalue %300, %299[62] : !llvm.array<75 x i64>
    %302 = llvm.mlir.constant(0 : i64) : i64
    %303 = llvm.insertvalue %302, %301[63] : !llvm.array<75 x i64>
    %304 = llvm.mlir.constant(0 : i64) : i64
    %305 = llvm.insertvalue %304, %303[64] : !llvm.array<75 x i64>
    %306 = llvm.mlir.constant(0 : i64) : i64
    %307 = llvm.insertvalue %306, %305[65] : !llvm.array<75 x i64>
    %308 = llvm.mlir.constant(0 : i64) : i64
    %309 = llvm.insertvalue %308, %307[66] : !llvm.array<75 x i64>
    %310 = llvm.mlir.constant(0 : i64) : i64
    %311 = llvm.insertvalue %310, %309[67] : !llvm.array<75 x i64>
    %312 = llvm.mlir.constant(-1 : i64) : i64
    %313 = llvm.insertvalue %312, %311[68] : !llvm.array<75 x i64>
    %314 = llvm.mlir.constant(0 : i64) : i64
    %315 = llvm.insertvalue %314, %313[69] : !llvm.array<75 x i64>
    %316 = llvm.mlir.constant(0 : i64) : i64
    %317 = llvm.insertvalue %316, %315[70] : !llvm.array<75 x i64>
    %318 = llvm.mlir.constant(0 : i64) : i64
    %319 = llvm.insertvalue %318, %317[71] : !llvm.array<75 x i64>
    %320 = llvm.mlir.constant(0 : i64) : i64
    %321 = llvm.insertvalue %320, %319[72] : !llvm.array<75 x i64>
    %322 = llvm.mlir.constant(0 : i64) : i64
    %323 = llvm.insertvalue %322, %321[73] : !llvm.array<75 x i64>
    %324 = llvm.mlir.constant(-1 : i64) : i64
    %325 = llvm.insertvalue %324, %323[74] : !llvm.array<75 x i64>
    llvm.return %325 : !llvm.array<75 x i64>
  }
  func.func @h_get(%arg0: i64, %arg1: i64) -> i64 {
    %327 = llvm.mlir.addressof @h_data : !llvm.ptr
    %328 = arith.constant 5 : i32
    %330 = arith.extsi %328 : i32 to i64
    %329 = arith.muli %arg0, %330 : i64
    %331 = arith.addi %329, %arg1 : i64
    %332 = llvm.getelementptr %327[0, %331] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<75 x i64>
    %326 = llvm.load %332 : !llvm.ptr -> i64
    func.return %326 : i64
  }
  func.func @modinv(%arg0: i64) -> i64 {
    %334 = llvm.mlir.addressof @MOD : !llvm.ptr
    %335 = llvm.load %334 : !llvm.ptr -> i64
    %336 = arith.remsi %arg0, %335 : i64
    %337 = llvm.mlir.addressof @MOD : !llvm.ptr
    %338 = llvm.load %337 : !llvm.ptr -> i64
    %339 = arith.constant 2 : i32
    %341 = arith.extsi %339 : i32 to i64
    %340 = arith.subi %338, %341 : i64
    %342 = llvm.mlir.addressof @MOD : !llvm.ptr
    %343 = llvm.load %342 : !llvm.ptr -> i64
    %333 = func.call @mod_pow(%336, %340, %343) : (i64, i64, i64) -> i64
    func.return %333 : i64
  }
  func.func @det_matrix(%arg0: i64, %arg1: !llvm.ptr) -> i64 {
    %344 = arith.constant 1 : i32
    %346 = arith.extsi %344 : i32 to i64
    %345 = arith.cmpi eq, %arg0, %346 : i64
    cf.cond_br %345, ^bb42, ^bb43
    ^bb42:
      %348 = arith.constant 0 : i32
      %349 = arith.extsi %348 : i32 to i64
      %350 = llvm.getelementptr %arg1[%349] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %347 = llvm.load %350 : !llvm.ptr -> i64
      func.return %347 : i64
    ^bb43:
      cf.br ^bb44
    ^bb44:
    %351 = arith.constant 2 : i32
    %353 = arith.extsi %351 : i32 to i64
    %352 = arith.cmpi eq, %arg0, %353 : i64
    cf.cond_br %352, ^bb45, ^bb46
    ^bb45:
      %355 = arith.constant 0 : i32
      %356 = arith.extsi %355 : i32 to i64
      %357 = llvm.getelementptr %arg1[%356] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %354 = llvm.load %357 : !llvm.ptr -> i64
      %359 = arith.constant 6 : i32
      %360 = arith.extsi %359 : i32 to i64
      %361 = llvm.getelementptr %arg1[%360] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %358 = llvm.load %361 : !llvm.ptr -> i64
      %362 = arith.muli %354, %358 : i64
      %364 = arith.constant 1 : i32
      %365 = arith.extsi %364 : i32 to i64
      %366 = llvm.getelementptr %arg1[%365] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %363 = llvm.load %366 : !llvm.ptr -> i64
      %368 = arith.constant 5 : i32
      %369 = arith.extsi %368 : i32 to i64
      %370 = llvm.getelementptr %arg1[%369] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %367 = llvm.load %370 : !llvm.ptr -> i64
      %371 = arith.muli %363, %367 : i64
      %372 = arith.subi %362, %371 : i64
      func.return %372 : i64
    ^bb46:
      cf.br ^bb47
    ^bb47:
    %373 = arith.constant 0 : i32
    %374 = arith.extsi %373 : i32 to i64
    %375 = llvm.mlir.constant(1 : i64) : i64
    %376 = llvm.alloca %375 x i64 : (i64) -> !llvm.ptr
    llvm.store %374, %376 : i64, !llvm.ptr
    %378 = arith.constant 25 : i32
    %379 = arith.constant 8 : i32
    %380 = arith.extsi %378 : i32 to i64
    %381 = arith.extsi %379 : i32 to i64
    %377 = func.call @calloc(%380, %381) : (i64, i64) -> !llvm.ptr
    %382 = arith.constant 0 : i32
    %383 = arith.extsi %382 : i32 to i64
    %384 = llvm.mlir.constant(1 : i64) : i64
    %385 = llvm.alloca %384 x i64 : (i64) -> !llvm.ptr
    llvm.store %383, %385 : i64, !llvm.ptr
    cf.br ^bb48
    ^bb48:
    %386 = llvm.load %385 : !llvm.ptr -> i64
    %387 = arith.cmpi slt, %386, %arg0 : i64
    cf.cond_br %387, ^bb49, ^bb50
    ^bb49:
      %389 = llvm.load %385 : !llvm.ptr -> i64
      %390 = llvm.getelementptr %arg1[%389] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %388 = llvm.load %390 : !llvm.ptr -> i64
      %391 = arith.constant 0 : i32
      %393 = arith.extsi %391 : i32 to i64
      %392 = arith.cmpi eq, %388, %393 : i64
      cf.cond_br %392, ^bb51, ^bb52
      ^bb51:
        %394 = llvm.load %385 : !llvm.ptr -> i64
        %395 = arith.constant 1 : i32
        %397 = arith.extsi %395 : i32 to i64
        %396 = arith.addi %394, %397 : i64
        llvm.store %396, %385 : i64, !llvm.ptr
        cf.br ^bb48
      ^bb52:
        cf.br ^bb53
      ^bb53:
      %398 = arith.constant 1 : i32
      %399 = arith.extsi %398 : i32 to i64
      %400 = llvm.mlir.constant(1 : i64) : i64
      %401 = llvm.alloca %400 x i64 : (i64) -> !llvm.ptr
      llvm.store %399, %401 : i64, !llvm.ptr
      cf.br ^bb54
      ^bb54:
      %402 = llvm.load %401 : !llvm.ptr -> i64
      %403 = arith.cmpi slt, %402, %arg0 : i64
      cf.cond_br %403, ^bb55, ^bb56
      ^bb55:
        %404 = arith.constant 0 : i32
        %405 = arith.extsi %404 : i32 to i64
        %406 = llvm.mlir.constant(1 : i64) : i64
        %407 = llvm.alloca %406 x i64 : (i64) -> !llvm.ptr
        llvm.store %405, %407 : i64, !llvm.ptr
        %408 = arith.constant 0 : i32
        %409 = arith.extsi %408 : i32 to i64
        %410 = llvm.mlir.constant(1 : i64) : i64
        %411 = llvm.alloca %410 x i64 : (i64) -> !llvm.ptr
        llvm.store %409, %411 : i64, !llvm.ptr
        cf.br ^bb57
        ^bb57:
        %412 = llvm.load %411 : !llvm.ptr -> i64
        %413 = arith.cmpi slt, %412, %arg0 : i64
        cf.cond_br %413, ^bb58, ^bb59
        ^bb58:
          %414 = llvm.load %411 : !llvm.ptr -> i64
          %415 = llvm.load %385 : !llvm.ptr -> i64
          %416 = arith.cmpi eq, %414, %415 : i64
          cf.cond_br %416, ^bb60, ^bb61
          ^bb60:
            %417 = llvm.load %411 : !llvm.ptr -> i64
            %418 = arith.constant 1 : i32
            %420 = arith.extsi %418 : i32 to i64
            %419 = arith.addi %417, %420 : i64
            llvm.store %419, %411 : i64, !llvm.ptr
            cf.br ^bb57
          ^bb61:
            cf.br ^bb62
          ^bb62:
          %422 = llvm.load %401 : !llvm.ptr -> i64
          %423 = arith.constant 5 : i32
          %425 = arith.extsi %423 : i32 to i64
          %424 = arith.muli %422, %425 : i64
          %426 = llvm.load %411 : !llvm.ptr -> i64
          %427 = arith.addi %424, %426 : i64
          %428 = llvm.getelementptr %arg1[%427] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %421 = llvm.load %428 : !llvm.ptr -> i64
          %429 = llvm.load %401 : !llvm.ptr -> i64
          %430 = arith.constant 1 : i32
          %432 = arith.extsi %430 : i32 to i64
          %431 = arith.subi %429, %432 : i64
          %433 = arith.constant 5 : i32
          %435 = arith.extsi %433 : i32 to i64
          %434 = arith.muli %431, %435 : i64
          %436 = llvm.load %407 : !llvm.ptr -> i64
          %437 = arith.addi %434, %436 : i64
          %438 = llvm.getelementptr %377[%437] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          llvm.store %421, %438 : i64, !llvm.ptr
          %439 = llvm.load %407 : !llvm.ptr -> i64
          %440 = arith.constant 1 : i32
          %442 = arith.extsi %440 : i32 to i64
          %441 = arith.addi %439, %442 : i64
          llvm.store %441, %407 : i64, !llvm.ptr
          %443 = llvm.load %411 : !llvm.ptr -> i64
          %444 = arith.constant 1 : i32
          %446 = arith.extsi %444 : i32 to i64
          %445 = arith.addi %443, %446 : i64
          llvm.store %445, %411 : i64, !llvm.ptr
          cf.br ^bb57
        ^bb59:
        %447 = llvm.load %401 : !llvm.ptr -> i64
        %448 = arith.constant 1 : i32
        %450 = arith.extsi %448 : i32 to i64
        %449 = arith.addi %447, %450 : i64
        llvm.store %449, %401 : i64, !llvm.ptr
        cf.br ^bb54
      ^bb56:
      %452 = arith.constant 1 : i32
      %454 = arith.extsi %452 : i32 to i64
      %453 = arith.subi %arg0, %454 : i64
      %451 = func.call @det_matrix(%453, %377) : (i64, !llvm.ptr) -> i64
      %455 = llvm.load %385 : !llvm.ptr -> i64
      %456 = arith.constant 1 : i32
      %458 = arith.extsi %456 : i32 to i64
      %457 = arith.andi %455, %458 : i64
      %459 = arith.constant 0 : i32
      %461 = arith.extsi %459 : i32 to i64
      %460 = arith.cmpi ne, %457, %461 : i64
      cf.cond_br %460, ^bb63, ^bb64
      ^bb63:
        %462 = llvm.load %376 : !llvm.ptr -> i64
        %464 = llvm.load %385 : !llvm.ptr -> i64
        %465 = llvm.getelementptr %arg1[%464] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %463 = llvm.load %465 : !llvm.ptr -> i64
        %466 = arith.muli %463, %451 : i64
        %467 = arith.subi %462, %466 : i64
        llvm.store %467, %376 : i64, !llvm.ptr
        cf.br ^bb65
      ^bb64:
        %468 = llvm.load %376 : !llvm.ptr -> i64
        %470 = llvm.load %385 : !llvm.ptr -> i64
        %471 = llvm.getelementptr %arg1[%470] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %469 = llvm.load %471 : !llvm.ptr -> i64
        %472 = arith.muli %469, %451 : i64
        %473 = arith.addi %468, %472 : i64
        llvm.store %473, %376 : i64, !llvm.ptr
        cf.br ^bb65
      ^bb65:
      %474 = llvm.load %385 : !llvm.ptr -> i64
      %475 = arith.constant 1 : i32
      %477 = arith.extsi %475 : i32 to i64
      %476 = arith.addi %474, %477 : i64
      llvm.store %476, %385 : i64, !llvm.ptr
      cf.br ^bb48
    ^bb50:
    func.call @free(%377) : (!llvm.ptr) -> ()
    %479 = llvm.load %376 : !llvm.ptr -> i64
    func.return %479 : i64
  }
  func.func @adj_matrix(%arg0: i64, %arg1: !llvm.ptr, %arg2: !llvm.ptr) -> () {
    %481 = arith.constant 25 : i32
    %482 = arith.constant 8 : i32
    %483 = arith.extsi %481 : i32 to i64
    %484 = arith.extsi %482 : i32 to i64
    %480 = func.call @calloc(%483, %484) : (i64, i64) -> !llvm.ptr
    %485 = arith.constant 0 : i32
    %486 = arith.extsi %485 : i32 to i64
    %487 = llvm.mlir.constant(1 : i64) : i64
    %488 = llvm.alloca %487 x i64 : (i64) -> !llvm.ptr
    llvm.store %486, %488 : i64, !llvm.ptr
    cf.br ^bb66
    ^bb66:
    %489 = llvm.load %488 : !llvm.ptr -> i64
    %490 = arith.cmpi slt, %489, %arg0 : i64
    cf.cond_br %490, ^bb67, ^bb68
    ^bb67:
      %491 = arith.constant 0 : i32
      %492 = arith.extsi %491 : i32 to i64
      %493 = llvm.mlir.constant(1 : i64) : i64
      %494 = llvm.alloca %493 x i64 : (i64) -> !llvm.ptr
      llvm.store %492, %494 : i64, !llvm.ptr
      cf.br ^bb69
      ^bb69:
      %495 = llvm.load %494 : !llvm.ptr -> i64
      %496 = arith.cmpi slt, %495, %arg0 : i64
      cf.cond_br %496, ^bb70, ^bb71
      ^bb70:
        %497 = arith.constant 0 : i32
        %498 = arith.extsi %497 : i32 to i64
        %499 = llvm.mlir.constant(1 : i64) : i64
        %500 = llvm.alloca %499 x i64 : (i64) -> !llvm.ptr
        llvm.store %498, %500 : i64, !llvm.ptr
        %501 = arith.constant 0 : i32
        %502 = arith.extsi %501 : i32 to i64
        %503 = llvm.mlir.constant(1 : i64) : i64
        %504 = llvm.alloca %503 x i64 : (i64) -> !llvm.ptr
        llvm.store %502, %504 : i64, !llvm.ptr
        cf.br ^bb72
        ^bb72:
        %505 = llvm.load %504 : !llvm.ptr -> i64
        %506 = arith.cmpi slt, %505, %arg0 : i64
        cf.cond_br %506, ^bb73, ^bb74
        ^bb73:
          %507 = llvm.load %504 : !llvm.ptr -> i64
          %508 = llvm.load %494 : !llvm.ptr -> i64
          %509 = arith.cmpi eq, %507, %508 : i64
          cf.cond_br %509, ^bb75, ^bb76
          ^bb75:
            %510 = llvm.load %504 : !llvm.ptr -> i64
            %511 = arith.constant 1 : i32
            %513 = arith.extsi %511 : i32 to i64
            %512 = arith.addi %510, %513 : i64
            llvm.store %512, %504 : i64, !llvm.ptr
            cf.br ^bb72
          ^bb76:
            cf.br ^bb77
          ^bb77:
          %514 = arith.constant 0 : i32
          %515 = arith.extsi %514 : i32 to i64
          %516 = llvm.mlir.constant(1 : i64) : i64
          %517 = llvm.alloca %516 x i64 : (i64) -> !llvm.ptr
          llvm.store %515, %517 : i64, !llvm.ptr
          %518 = arith.constant 0 : i32
          %519 = arith.extsi %518 : i32 to i64
          %520 = llvm.mlir.constant(1 : i64) : i64
          %521 = llvm.alloca %520 x i64 : (i64) -> !llvm.ptr
          llvm.store %519, %521 : i64, !llvm.ptr
          cf.br ^bb78
          ^bb78:
          %522 = llvm.load %521 : !llvm.ptr -> i64
          %523 = arith.cmpi slt, %522, %arg0 : i64
          cf.cond_br %523, ^bb79, ^bb80
          ^bb79:
            %524 = llvm.load %521 : !llvm.ptr -> i64
            %525 = llvm.load %488 : !llvm.ptr -> i64
            %526 = arith.cmpi eq, %524, %525 : i64
            cf.cond_br %526, ^bb81, ^bb82
            ^bb81:
              %527 = llvm.load %521 : !llvm.ptr -> i64
              %528 = arith.constant 1 : i32
              %530 = arith.extsi %528 : i32 to i64
              %529 = arith.addi %527, %530 : i64
              llvm.store %529, %521 : i64, !llvm.ptr
              cf.br ^bb78
            ^bb82:
              cf.br ^bb83
            ^bb83:
            %532 = llvm.load %504 : !llvm.ptr -> i64
            %533 = arith.constant 5 : i32
            %535 = arith.extsi %533 : i32 to i64
            %534 = arith.muli %532, %535 : i64
            %536 = llvm.load %521 : !llvm.ptr -> i64
            %537 = arith.addi %534, %536 : i64
            %538 = llvm.getelementptr %arg1[%537] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %531 = llvm.load %538 : !llvm.ptr -> i64
            %539 = llvm.load %500 : !llvm.ptr -> i64
            %540 = arith.constant 5 : i32
            %542 = arith.extsi %540 : i32 to i64
            %541 = arith.muli %539, %542 : i64
            %543 = llvm.load %517 : !llvm.ptr -> i64
            %544 = arith.addi %541, %543 : i64
            %545 = llvm.getelementptr %480[%544] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            llvm.store %531, %545 : i64, !llvm.ptr
            %546 = llvm.load %517 : !llvm.ptr -> i64
            %547 = arith.constant 1 : i32
            %549 = arith.extsi %547 : i32 to i64
            %548 = arith.addi %546, %549 : i64
            llvm.store %548, %517 : i64, !llvm.ptr
            %550 = llvm.load %521 : !llvm.ptr -> i64
            %551 = arith.constant 1 : i32
            %553 = arith.extsi %551 : i32 to i64
            %552 = arith.addi %550, %553 : i64
            llvm.store %552, %521 : i64, !llvm.ptr
            cf.br ^bb78
          ^bb80:
          %554 = llvm.load %500 : !llvm.ptr -> i64
          %555 = arith.constant 1 : i32
          %557 = arith.extsi %555 : i32 to i64
          %556 = arith.addi %554, %557 : i64
          llvm.store %556, %500 : i64, !llvm.ptr
          %558 = llvm.load %504 : !llvm.ptr -> i64
          %559 = arith.constant 1 : i32
          %561 = arith.extsi %559 : i32 to i64
          %560 = arith.addi %558, %561 : i64
          llvm.store %560, %504 : i64, !llvm.ptr
          cf.br ^bb72
        ^bb74:
        %563 = arith.constant 1 : i32
        %565 = arith.extsi %563 : i32 to i64
        %564 = arith.subi %arg0, %565 : i64
        %562 = func.call @det_matrix(%564, %480) : (i64, !llvm.ptr) -> i64
        %566 = llvm.load %488 : !llvm.ptr -> i64
        %567 = llvm.load %494 : !llvm.ptr -> i64
        %568 = arith.addi %566, %567 : i64
        %569 = arith.constant 1 : i32
        %571 = arith.extsi %569 : i32 to i64
        %570 = arith.andi %568, %571 : i64
        %572 = arith.constant 0 : i32
        %574 = arith.extsi %572 : i32 to i64
        %573 = arith.cmpi ne, %570, %574 : i64
        cf.cond_br %573, ^bb84, ^bb85
        ^bb84:
          %576 = arith.constant 0 : i64
          %575 = arith.subi %576, %562 : i64
          %577 = llvm.load %488 : !llvm.ptr -> i64
          %578 = arith.constant 5 : i32
          %580 = arith.extsi %578 : i32 to i64
          %579 = arith.muli %577, %580 : i64
          %581 = llvm.load %494 : !llvm.ptr -> i64
          %582 = arith.addi %579, %581 : i64
          %583 = llvm.getelementptr %arg2[%582] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          llvm.store %575, %583 : i64, !llvm.ptr
          cf.br ^bb86
        ^bb85:
          %584 = llvm.load %488 : !llvm.ptr -> i64
          %585 = arith.constant 5 : i32
          %587 = arith.extsi %585 : i32 to i64
          %586 = arith.muli %584, %587 : i64
          %588 = llvm.load %494 : !llvm.ptr -> i64
          %589 = arith.addi %586, %588 : i64
          %590 = llvm.getelementptr %arg2[%589] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          llvm.store %562, %590 : i64, !llvm.ptr
          cf.br ^bb86
        ^bb86:
        %591 = llvm.load %494 : !llvm.ptr -> i64
        %592 = arith.constant 1 : i32
        %594 = arith.extsi %592 : i32 to i64
        %593 = arith.addi %591, %594 : i64
        llvm.store %593, %494 : i64, !llvm.ptr
        cf.br ^bb69
      ^bb71:
      %595 = llvm.load %488 : !llvm.ptr -> i64
      %596 = arith.constant 1 : i32
      %598 = arith.extsi %596 : i32 to i64
      %597 = arith.addi %595, %598 : i64
      llvm.store %597, %488 : i64, !llvm.ptr
      cf.br ^bb66
    ^bb68:
    func.call @free(%480) : (!llvm.ptr) -> ()
    func.return
  }
  func.func @w_func(%arg0: !llvm.ptr) -> i64 {
    %601 = arith.constant 2 : i32
    %602 = arith.constant 3 : i32
    %603 = arith.constant 5 : i32
    %604 = arith.constant 7 : i32
    %605 = arith.constant 11 : i32
    %606 = llvm.mlir.constant(1 : i64) : i64
    %607 = llvm.alloca %606 x !llvm.array<5 x i64> : (i64) -> !llvm.ptr
    %608 = llvm.mlir.zero : !llvm.array<5 x i64>
    llvm.store %608, %607 : !llvm.array<5 x i64>, !llvm.ptr
    %609 = arith.extsi %601 : i32 to i64
    %610 = arith.extsi %602 : i32 to i64
    %611 = arith.extsi %603 : i32 to i64
    %612 = arith.extsi %604 : i32 to i64
    %613 = arith.extsi %605 : i32 to i64
    %614 = llvm.mlir.constant(0 : i64) : i64
    %615 = llvm.getelementptr %607[0, %614] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %609, %615 : i64, !llvm.ptr
    %616 = llvm.mlir.constant(1 : i64) : i64
    %617 = llvm.getelementptr %607[0, %616] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %610, %617 : i64, !llvm.ptr
    %618 = llvm.mlir.constant(2 : i64) : i64
    %619 = llvm.getelementptr %607[0, %618] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %611, %619 : i64, !llvm.ptr
    %620 = llvm.mlir.constant(3 : i64) : i64
    %621 = llvm.getelementptr %607[0, %620] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %612, %621 : i64, !llvm.ptr
    %622 = llvm.mlir.constant(4 : i64) : i64
    %623 = llvm.getelementptr %607[0, %622] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %613, %623 : i64, !llvm.ptr
    %624 = arith.constant 1 : i32
    %625 = arith.extsi %624 : i32 to i64
    %626 = llvm.mlir.constant(1 : i64) : i64
    %627 = llvm.alloca %626 x i64 : (i64) -> !llvm.ptr
    llvm.store %625, %627 : i64, !llvm.ptr
    %628 = arith.constant 0 : i32
    %629 = arith.extsi %628 : i32 to i64
    %630 = llvm.mlir.constant(1 : i64) : i64
    %631 = llvm.alloca %630 x i64 : (i64) -> !llvm.ptr
    llvm.store %629, %631 : i64, !llvm.ptr
    cf.br ^bb87
    ^bb87:
    %632 = llvm.load %631 : !llvm.ptr -> i64
    %633 = arith.constant 5 : i32
    %635 = arith.extsi %633 : i32 to i64
    %634 = arith.cmpi slt, %632, %635 : i64
    cf.cond_br %634, ^bb88, ^bb89
    ^bb88:
      %637 = llvm.load %631 : !llvm.ptr -> i64
      %638 = llvm.getelementptr %arg0[%637] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %636 = llvm.load %638 : !llvm.ptr -> i64
      %639 = arith.constant 0 : i32
      %641 = arith.extsi %639 : i32 to i64
      %640 = arith.cmpi sge, %636, %641 : i64
      cf.cond_br %640, ^bb90, ^bb91
      ^bb90:
        %642 = llvm.load %627 : !llvm.ptr -> i64
        %645 = llvm.load %631 : !llvm.ptr -> i64
        %646 = llvm.getelementptr %607[0, %645] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
        %644 = llvm.load %646 : !llvm.ptr -> i64
        %647 = llvm.mlir.addressof @MOD : !llvm.ptr
        %648 = llvm.load %647 : !llvm.ptr -> i64
        %643 = func.call @mod_pow(%644, %636, %648) : (i64, i64, i64) -> i64
        %649 = arith.muli %642, %643 : i64
        %650 = llvm.mlir.addressof @MOD : !llvm.ptr
        %651 = llvm.load %650 : !llvm.ptr -> i64
        %652 = arith.remsi %649, %651 : i64
        llvm.store %652, %627 : i64, !llvm.ptr
        cf.br ^bb92
      ^bb91:
        %656 = llvm.load %631 : !llvm.ptr -> i64
        %657 = llvm.getelementptr %607[0, %656] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
        %655 = llvm.load %657 : !llvm.ptr -> i64
        %659 = arith.constant 0 : i64
        %658 = arith.subi %659, %636 : i64
        %660 = llvm.mlir.addressof @MOD : !llvm.ptr
        %661 = llvm.load %660 : !llvm.ptr -> i64
        %654 = func.call @mod_pow(%655, %658, %661) : (i64, i64, i64) -> i64
        %653 = func.call @modinv(%654) : (i64) -> i64
        %662 = llvm.load %627 : !llvm.ptr -> i64
        %663 = arith.muli %662, %653 : i64
        %664 = llvm.mlir.addressof @MOD : !llvm.ptr
        %665 = llvm.load %664 : !llvm.ptr -> i64
        %666 = arith.remsi %663, %665 : i64
        llvm.store %666, %627 : i64, !llvm.ptr
        cf.br ^bb92
      ^bb92:
      %667 = llvm.load %631 : !llvm.ptr -> i64
      %668 = arith.constant 1 : i32
      %670 = arith.extsi %668 : i32 to i64
      %669 = arith.addi %667, %670 : i64
      llvm.store %669, %631 : i64, !llvm.ptr
      cf.br ^bb87
    ^bb89:
    %671 = llvm.load %627 : !llvm.ptr -> i64
    func.return %671 : i64
  }
  func.func @f_func(%arg0: !llvm.ptr) -> i64 {
    %673 = arith.constant 2 : i32
    %674 = arith.constant 3 : i32
    %675 = arith.constant 5 : i32
    %676 = arith.constant 7 : i32
    %677 = arith.constant 11 : i32
    %678 = llvm.mlir.constant(1 : i64) : i64
    %679 = llvm.alloca %678 x !llvm.array<5 x i64> : (i64) -> !llvm.ptr
    %680 = llvm.mlir.zero : !llvm.array<5 x i64>
    llvm.store %680, %679 : !llvm.array<5 x i64>, !llvm.ptr
    %681 = arith.extsi %673 : i32 to i64
    %682 = arith.extsi %674 : i32 to i64
    %683 = arith.extsi %675 : i32 to i64
    %684 = arith.extsi %676 : i32 to i64
    %685 = arith.extsi %677 : i32 to i64
    %686 = llvm.mlir.constant(0 : i64) : i64
    %687 = llvm.getelementptr %679[0, %686] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %681, %687 : i64, !llvm.ptr
    %688 = llvm.mlir.constant(1 : i64) : i64
    %689 = llvm.getelementptr %679[0, %688] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %682, %689 : i64, !llvm.ptr
    %690 = llvm.mlir.constant(2 : i64) : i64
    %691 = llvm.getelementptr %679[0, %690] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %683, %691 : i64, !llvm.ptr
    %692 = llvm.mlir.constant(3 : i64) : i64
    %693 = llvm.getelementptr %679[0, %692] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %684, %693 : i64, !llvm.ptr
    %694 = llvm.mlir.constant(4 : i64) : i64
    %695 = llvm.getelementptr %679[0, %694] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
    llvm.store %685, %695 : i64, !llvm.ptr
    %696 = arith.constant 0 : i32
    %697 = arith.extsi %696 : i32 to i64
    %698 = llvm.mlir.constant(1 : i64) : i64
    %699 = llvm.alloca %698 x i64 : (i64) -> !llvm.ptr
    llvm.store %697, %699 : i64, !llvm.ptr
    cf.br ^bb93
    ^bb93:
    %700 = llvm.load %699 : !llvm.ptr -> i64
    %701 = arith.constant 5 : i32
    %703 = arith.extsi %701 : i32 to i64
    %702 = arith.cmpi slt, %700, %703 : i64
    cf.cond_br %702, ^bb94, ^bb95
    ^bb94:
      %705 = llvm.load %699 : !llvm.ptr -> i64
      %706 = llvm.getelementptr %arg0[%705] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %704 = llvm.load %706 : !llvm.ptr -> i64
      %707 = arith.constant 0 : i32
      %709 = arith.extsi %707 : i32 to i64
      %708 = arith.cmpi slt, %704, %709 : i64
      cf.cond_br %708, ^bb96, ^bb97
      ^bb96:
        %710 = arith.constant 0 : i32
        %711 = arith.extsi %710 : i32 to i64
        func.return %711 : i64
      ^bb97:
        cf.br ^bb98
      ^bb98:
      %712 = llvm.load %699 : !llvm.ptr -> i64
      %713 = arith.constant 1 : i32
      %715 = arith.extsi %713 : i32 to i64
      %714 = arith.addi %712, %715 : i64
      llvm.store %714, %699 : i64, !llvm.ptr
      cf.br ^bb93
    ^bb95:
    %716 = arith.constant 1 : i32
    %717 = arith.extsi %716 : i32 to i64
    %718 = llvm.mlir.constant(1 : i64) : i64
    %719 = llvm.alloca %718 x i64 : (i64) -> !llvm.ptr
    llvm.store %717, %719 : i64, !llvm.ptr
    %720 = arith.constant 0 : i32
    %721 = arith.extsi %720 : i32 to i64
    llvm.store %721, %699 : i64, !llvm.ptr
    cf.br ^bb99
    ^bb99:
    %722 = llvm.load %699 : !llvm.ptr -> i64
    %723 = arith.constant 5 : i32
    %725 = arith.extsi %723 : i32 to i64
    %724 = arith.cmpi slt, %722, %725 : i64
    cf.cond_br %724, ^bb100, ^bb101
    ^bb100:
      %726 = llvm.load %719 : !llvm.ptr -> i64
      %729 = llvm.load %699 : !llvm.ptr -> i64
      %730 = llvm.getelementptr %679[0, %729] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
      %728 = llvm.load %730 : !llvm.ptr -> i64
      %732 = llvm.load %699 : !llvm.ptr -> i64
      %733 = llvm.getelementptr %arg0[%732] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %731 = llvm.load %733 : !llvm.ptr -> i64
      %734 = llvm.mlir.addressof @MOD : !llvm.ptr
      %735 = llvm.load %734 : !llvm.ptr -> i64
      %727 = func.call @mod_pow(%728, %731, %735) : (i64, i64, i64) -> i64
      %736 = arith.muli %726, %727 : i64
      %737 = llvm.mlir.addressof @MOD : !llvm.ptr
      %738 = llvm.load %737 : !llvm.ptr -> i64
      %739 = arith.remsi %736, %738 : i64
      llvm.store %739, %719 : i64, !llvm.ptr
      %740 = llvm.load %699 : !llvm.ptr -> i64
      %741 = arith.constant 1 : i32
      %743 = arith.extsi %741 : i32 to i64
      %742 = arith.addi %740, %743 : i64
      llvm.store %742, %699 : i64, !llvm.ptr
      cf.br ^bb99
    ^bb101:
    %744 = llvm.load %719 : !llvm.ptr -> i64
    func.return %744 : i64
  }
  // Module static: combo_I
  llvm.mlir.global internal @combo_I() {addr_space = 0 : i32} : !llvm.ptr {
    %745 = llvm.mlir.zero : !llvm.ptr
    llvm.return %745 : !llvm.ptr
  }
  // Module static: combo_det
  llvm.mlir.global internal @combo_det() {addr_space = 0 : i32} : !llvm.ptr {
    %746 = llvm.mlir.zero : !llvm.ptr
    llvm.return %746 : !llvm.ptr
  }
  // Module static: combo_adj
  llvm.mlir.global internal @combo_adj() {addr_space = 0 : i32} : !llvm.ptr {
    %747 = llvm.mlir.zero : !llvm.ptr
    llvm.return %747 : !llvm.ptr
  }
  // Module static: combo_r
  llvm.mlir.global internal @combo_r() {addr_space = 0 : i32} : !llvm.ptr {
    %748 = llvm.mlir.zero : !llvm.ptr
    llvm.return %748 : !llvm.ptr
  }
  // Module static: combo_den
  llvm.mlir.global internal @combo_den() {addr_space = 0 : i32} : !llvm.ptr {
    %749 = llvm.mlir.zero : !llvm.ptr
    llvm.return %749 : !llvm.ptr
  }
  // Module static: num_combos
  llvm.mlir.global internal @num_combos(0 : i64) : i64
  func.func @precompute_combos() -> () {
    %751 = arith.constant 3003 : i32
    %752 = arith.constant 5 : i32
    %753 = arith.muli %751, %752 : i32
    %754 = arith.constant 4 : i32
    %755 = arith.extsi %753 : i32 to i64
    %756 = arith.extsi %754 : i32 to i64
    %750 = func.call @calloc(%755, %756) : (i64, i64) -> !llvm.ptr
    %757 = llvm.mlir.addressof @combo_I : !llvm.ptr
    llvm.store %750, %757 : !llvm.ptr, !llvm.ptr
    %759 = arith.constant 3003 : i32
    %760 = arith.constant 8 : i32
    %761 = arith.extsi %759 : i32 to i64
    %762 = arith.extsi %760 : i32 to i64
    %758 = func.call @calloc(%761, %762) : (i64, i64) -> !llvm.ptr
    %763 = llvm.mlir.addressof @combo_det : !llvm.ptr
    llvm.store %758, %763 : !llvm.ptr, !llvm.ptr
    %765 = arith.constant 3003 : i32
    %766 = arith.constant 25 : i32
    %767 = arith.muli %765, %766 : i32
    %768 = arith.constant 8 : i32
    %769 = arith.extsi %767 : i32 to i64
    %770 = arith.extsi %768 : i32 to i64
    %764 = func.call @calloc(%769, %770) : (i64, i64) -> !llvm.ptr
    %771 = llvm.mlir.addressof @combo_adj : !llvm.ptr
    llvm.store %764, %771 : !llvm.ptr, !llvm.ptr
    %773 = arith.constant 3003 : i32
    %774 = arith.constant 25 : i32
    %775 = arith.muli %773, %774 : i32
    %776 = arith.constant 8 : i32
    %777 = arith.extsi %775 : i32 to i64
    %778 = arith.extsi %776 : i32 to i64
    %772 = func.call @calloc(%777, %778) : (i64, i64) -> !llvm.ptr
    %779 = llvm.mlir.addressof @combo_r : !llvm.ptr
    llvm.store %772, %779 : !llvm.ptr, !llvm.ptr
    %781 = arith.constant 3003 : i32
    %782 = arith.constant 8 : i32
    %783 = arith.extsi %781 : i32 to i64
    %784 = arith.extsi %782 : i32 to i64
    %780 = func.call @calloc(%783, %784) : (i64, i64) -> !llvm.ptr
    %785 = llvm.mlir.addressof @combo_den : !llvm.ptr
    llvm.store %780, %785 : !llvm.ptr, !llvm.ptr
    %786 = arith.constant 0 : i32
    %787 = arith.extsi %786 : i32 to i64
    %788 = llvm.mlir.addressof @num_combos : !llvm.ptr
    llvm.store %787, %788 : i64, !llvm.ptr
    %790 = arith.constant 25 : i32
    %791 = arith.constant 8 : i32
    %792 = arith.extsi %790 : i32 to i64
    %793 = arith.extsi %791 : i32 to i64
    %789 = func.call @calloc(%792, %793) : (i64, i64) -> !llvm.ptr
    %795 = arith.constant 25 : i32
    %796 = arith.constant 8 : i32
    %797 = arith.extsi %795 : i32 to i64
    %798 = arith.extsi %796 : i32 to i64
    %794 = func.call @calloc(%797, %798) : (i64, i64) -> !llvm.ptr
    %800 = arith.constant 25 : i32
    %801 = arith.constant 8 : i32
    %802 = arith.extsi %800 : i32 to i64
    %803 = arith.extsi %801 : i32 to i64
    %799 = func.call @calloc(%802, %803) : (i64, i64) -> !llvm.ptr
    %805 = arith.constant 5 : i32
    %806 = arith.constant 8 : i32
    %807 = arith.extsi %805 : i32 to i64
    %808 = arith.extsi %806 : i32 to i64
    %804 = func.call @calloc(%807, %808) : (i64, i64) -> !llvm.ptr
    %809 = arith.constant 0 : i32
    %810 = arith.extsi %809 : i32 to i64
    %811 = llvm.mlir.constant(1 : i64) : i64
    %812 = llvm.alloca %811 x i64 : (i64) -> !llvm.ptr
    llvm.store %810, %812 : i64, !llvm.ptr
    cf.br ^bb102
    ^bb102:
    %813 = llvm.load %812 : !llvm.ptr -> i64
    %814 = arith.constant 15 : i32
    %816 = arith.extsi %814 : i32 to i64
    %815 = arith.cmpi slt, %813, %816 : i64
    cf.cond_br %815, ^bb103, ^bb104
    ^bb103:
      %817 = llvm.load %812 : !llvm.ptr -> i64
      %818 = arith.constant 1 : i32
      %820 = arith.extsi %818 : i32 to i64
      %819 = arith.addi %817, %820 : i64
      %821 = llvm.mlir.constant(1 : i64) : i64
      %822 = llvm.alloca %821 x i64 : (i64) -> !llvm.ptr
      llvm.store %819, %822 : i64, !llvm.ptr
      cf.br ^bb105
      ^bb105:
      %823 = llvm.load %822 : !llvm.ptr -> i64
      %824 = arith.constant 15 : i32
      %826 = arith.extsi %824 : i32 to i64
      %825 = arith.cmpi slt, %823, %826 : i64
      cf.cond_br %825, ^bb106, ^bb107
      ^bb106:
        %827 = llvm.load %822 : !llvm.ptr -> i64
        %828 = arith.constant 1 : i32
        %830 = arith.extsi %828 : i32 to i64
        %829 = arith.addi %827, %830 : i64
        %831 = llvm.mlir.constant(1 : i64) : i64
        %832 = llvm.alloca %831 x i64 : (i64) -> !llvm.ptr
        llvm.store %829, %832 : i64, !llvm.ptr
        cf.br ^bb108
        ^bb108:
        %833 = llvm.load %832 : !llvm.ptr -> i64
        %834 = arith.constant 15 : i32
        %836 = arith.extsi %834 : i32 to i64
        %835 = arith.cmpi slt, %833, %836 : i64
        cf.cond_br %835, ^bb109, ^bb110
        ^bb109:
          %837 = llvm.load %832 : !llvm.ptr -> i64
          %838 = arith.constant 1 : i32
          %840 = arith.extsi %838 : i32 to i64
          %839 = arith.addi %837, %840 : i64
          %841 = llvm.mlir.constant(1 : i64) : i64
          %842 = llvm.alloca %841 x i64 : (i64) -> !llvm.ptr
          llvm.store %839, %842 : i64, !llvm.ptr
          cf.br ^bb111
          ^bb111:
          %843 = llvm.load %842 : !llvm.ptr -> i64
          %844 = arith.constant 15 : i32
          %846 = arith.extsi %844 : i32 to i64
          %845 = arith.cmpi slt, %843, %846 : i64
          cf.cond_br %845, ^bb112, ^bb113
          ^bb112:
            %847 = llvm.load %842 : !llvm.ptr -> i64
            %848 = arith.constant 1 : i32
            %850 = arith.extsi %848 : i32 to i64
            %849 = arith.addi %847, %850 : i64
            %851 = llvm.mlir.constant(1 : i64) : i64
            %852 = llvm.alloca %851 x i64 : (i64) -> !llvm.ptr
            llvm.store %849, %852 : i64, !llvm.ptr
            cf.br ^bb114
            ^bb114:
            %853 = llvm.load %852 : !llvm.ptr -> i64
            %854 = arith.constant 15 : i32
            %856 = arith.extsi %854 : i32 to i64
            %855 = arith.cmpi slt, %853, %856 : i64
            cf.cond_br %855, ^bb115, ^bb116
            ^bb115:
              %858 = llvm.load %812 : !llvm.ptr -> i64
              %859 = llvm.load %822 : !llvm.ptr -> i64
              %860 = llvm.load %832 : !llvm.ptr -> i64
              %861 = llvm.load %842 : !llvm.ptr -> i64
              %862 = llvm.load %852 : !llvm.ptr -> i64
              %863 = llvm.mlir.constant(1 : i64) : i64
              %864 = llvm.alloca %863 x !llvm.array<5 x i64> : (i64) -> !llvm.ptr
              %865 = llvm.mlir.zero : !llvm.array<5 x i64>
              llvm.store %865, %864 : !llvm.array<5 x i64>, !llvm.ptr
              %866 = llvm.mlir.constant(0 : i64) : i64
              %867 = llvm.getelementptr %864[0, %866] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
              llvm.store %858, %867 : i64, !llvm.ptr
              %868 = llvm.mlir.constant(1 : i64) : i64
              %869 = llvm.getelementptr %864[0, %868] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
              llvm.store %859, %869 : i64, !llvm.ptr
              %870 = llvm.mlir.constant(2 : i64) : i64
              %871 = llvm.getelementptr %864[0, %870] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
              llvm.store %860, %871 : i64, !llvm.ptr
              %872 = llvm.mlir.constant(3 : i64) : i64
              %873 = llvm.getelementptr %864[0, %872] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
              llvm.store %861, %873 : i64, !llvm.ptr
              %874 = llvm.mlir.constant(4 : i64) : i64
              %875 = llvm.getelementptr %864[0, %874] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
              llvm.store %862, %875 : i64, !llvm.ptr
              %876 = arith.constant 0 : i32
              %877 = arith.extsi %876 : i32 to i64
              %878 = llvm.mlir.constant(1 : i64) : i64
              %879 = llvm.alloca %878 x i64 : (i64) -> !llvm.ptr
              llvm.store %877, %879 : i64, !llvm.ptr
              cf.br ^bb117
              ^bb117:
              %880 = llvm.load %879 : !llvm.ptr -> i64
              %881 = arith.constant 5 : i32
              %883 = arith.extsi %881 : i32 to i64
              %882 = arith.cmpi slt, %880, %883 : i64
              cf.cond_br %882, ^bb118, ^bb119
              ^bb118:
                %884 = arith.constant 0 : i32
                %885 = arith.extsi %884 : i32 to i64
                %886 = llvm.mlir.constant(1 : i64) : i64
                %887 = llvm.alloca %886 x i64 : (i64) -> !llvm.ptr
                llvm.store %885, %887 : i64, !llvm.ptr
                cf.br ^bb120
                ^bb120:
                %888 = llvm.load %887 : !llvm.ptr -> i64
                %889 = arith.constant 5 : i32
                %891 = arith.extsi %889 : i32 to i64
                %890 = arith.cmpi slt, %888, %891 : i64
                cf.cond_br %890, ^bb121, ^bb122
                ^bb121:
                  %894 = llvm.load %879 : !llvm.ptr -> i64
                  %895 = llvm.getelementptr %864[0, %894] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
                  %893 = llvm.load %895 : !llvm.ptr -> i64
                  %896 = llvm.load %887 : !llvm.ptr -> i64
                  %892 = func.call @h_get(%893, %896) : (i64, i64) -> i64
                  %897 = llvm.load %879 : !llvm.ptr -> i64
                  %898 = arith.constant 5 : i32
                  %900 = arith.extsi %898 : i32 to i64
                  %899 = arith.muli %897, %900 : i64
                  %901 = llvm.load %887 : !llvm.ptr -> i64
                  %902 = arith.addi %899, %901 : i64
                  %903 = llvm.getelementptr %789[%902] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  llvm.store %892, %903 : i64, !llvm.ptr
                  %904 = llvm.load %887 : !llvm.ptr -> i64
                  %905 = arith.constant 1 : i32
                  %907 = arith.extsi %905 : i32 to i64
                  %906 = arith.addi %904, %907 : i64
                  llvm.store %906, %887 : i64, !llvm.ptr
                  cf.br ^bb120
                ^bb122:
                %908 = llvm.load %879 : !llvm.ptr -> i64
                %909 = arith.constant 1 : i32
                %911 = arith.extsi %909 : i32 to i64
                %910 = arith.addi %908, %911 : i64
                llvm.store %910, %879 : i64, !llvm.ptr
                cf.br ^bb117
              ^bb119:
              %913 = arith.constant 5 : i32
              %914 = arith.extsi %913 : i32 to i64
              %912 = func.call @det_matrix(%914, %789) : (i64, !llvm.ptr) -> i64
              %915 = arith.constant 1 : i32
              %917 = arith.extsi %915 : i32 to i64
              %916 = arith.cmpi ne, %912, %917 : i64
              %918 = scf.if %916 -> (i1) {
                %919 = arith.constant 1 : i32
                %921 = arith.constant 0 : i32
                %920 = arith.subi %921, %919 : i32
                %923 = arith.extsi %920 : i32 to i64
                %922 = arith.cmpi ne, %912, %923 : i64
                scf.yield %922 : i1
              } else {
                %924 = arith.constant false
                scf.yield %924 : i1
              }
              %925 = scf.if %918 -> (i1) {
                %926 = arith.constant 2 : i32
                %928 = arith.extsi %926 : i32 to i64
                %927 = arith.cmpi ne, %912, %928 : i64
                scf.yield %927 : i1
              } else {
                %929 = arith.constant false
                scf.yield %929 : i1
              }
              %930 = scf.if %925 -> (i1) {
                %931 = arith.constant 2 : i32
                %933 = arith.constant 0 : i32
                %932 = arith.subi %933, %931 : i32
                %935 = arith.extsi %932 : i32 to i64
                %934 = arith.cmpi ne, %912, %935 : i64
                scf.yield %934 : i1
              } else {
                %936 = arith.constant false
                scf.yield %936 : i1
              }
              cf.cond_br %930, ^bb123, ^bb124
              ^bb123:
                %937 = llvm.load %852 : !llvm.ptr -> i64
                %938 = arith.constant 1 : i32
                %940 = arith.extsi %938 : i32 to i64
                %939 = arith.addi %937, %940 : i64
                llvm.store %939, %852 : i64, !llvm.ptr
                cf.br ^bb114
              ^bb124:
                cf.br ^bb125
              ^bb125:
              %942 = arith.constant 5 : i32
              %943 = arith.extsi %942 : i32 to i64
              func.call @adj_matrix(%943, %789, %794) : (i64, !llvm.ptr, !llvm.ptr) -> ()
              %944 = arith.constant 0 : i32
              %945 = arith.extsi %944 : i32 to i64
              %946 = llvm.mlir.constant(1 : i64) : i64
              %947 = llvm.alloca %946 x i64 : (i64) -> !llvm.ptr
              llvm.store %945, %947 : i64, !llvm.ptr
              cf.br ^bb126
              ^bb126:
              %948 = llvm.load %947 : !llvm.ptr -> i64
              %949 = arith.constant 5 : i32
              %951 = arith.extsi %949 : i32 to i64
              %950 = arith.cmpi slt, %948, %951 : i64
              cf.cond_br %950, ^bb127, ^bb128
              ^bb127:
                %952 = arith.constant 0 : i32
                %953 = arith.extsi %952 : i32 to i64
                %954 = llvm.mlir.constant(1 : i64) : i64
                %955 = llvm.alloca %954 x i64 : (i64) -> !llvm.ptr
                llvm.store %953, %955 : i64, !llvm.ptr
                cf.br ^bb129
                ^bb129:
                %956 = llvm.load %955 : !llvm.ptr -> i64
                %957 = arith.constant 5 : i32
                %959 = arith.extsi %957 : i32 to i64
                %958 = arith.cmpi slt, %956, %959 : i64
                cf.cond_br %958, ^bb130, ^bb131
                ^bb130:
                  %961 = llvm.load %955 : !llvm.ptr -> i64
                  %962 = arith.constant 5 : i32
                  %964 = arith.extsi %962 : i32 to i64
                  %963 = arith.muli %961, %964 : i64
                  %965 = llvm.load %947 : !llvm.ptr -> i64
                  %966 = arith.addi %963, %965 : i64
                  %967 = llvm.getelementptr %794[%966] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  %960 = llvm.load %967 : !llvm.ptr -> i64
                  %968 = llvm.load %955 : !llvm.ptr -> i64
                  %969 = llvm.getelementptr %804[%968] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  llvm.store %960, %969 : i64, !llvm.ptr
                  %970 = llvm.load %955 : !llvm.ptr -> i64
                  %971 = arith.constant 1 : i32
                  %973 = arith.extsi %971 : i32 to i64
                  %972 = arith.addi %970, %973 : i64
                  llvm.store %972, %955 : i64, !llvm.ptr
                  cf.br ^bb129
                ^bb131:
                %974 = arith.constant 0 : i32
                %975 = arith.extsi %974 : i32 to i64
                %976 = llvm.mlir.constant(1 : i64) : i64
                %977 = llvm.alloca %976 x i64 : (i64) -> !llvm.ptr
                llvm.store %975, %977 : i64, !llvm.ptr
                %978 = arith.constant 0 : i32
                %979 = arith.extsi %978 : i32 to i64
                %980 = llvm.mlir.constant(1 : i64) : i64
                %981 = llvm.alloca %980 x i64 : (i64) -> !llvm.ptr
                llvm.store %979, %981 : i64, !llvm.ptr
                cf.br ^bb132
                ^bb132:
                %982 = llvm.load %981 : !llvm.ptr -> i64
                %983 = arith.constant 5 : i32
                %985 = arith.extsi %983 : i32 to i64
                %984 = arith.cmpi slt, %982, %985 : i64
                cf.cond_br %984, ^bb133, ^bb134
                ^bb133:
                  %986 = llvm.load %977 : !llvm.ptr -> i64
                  %988 = llvm.load %947 : !llvm.ptr -> i64
                  %989 = arith.constant 5 : i32
                  %991 = arith.extsi %989 : i32 to i64
                  %990 = arith.muli %988, %991 : i64
                  %992 = llvm.load %981 : !llvm.ptr -> i64
                  %993 = arith.addi %990, %992 : i64
                  %994 = llvm.getelementptr %789[%993] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  %987 = llvm.load %994 : !llvm.ptr -> i64
                  %996 = llvm.load %981 : !llvm.ptr -> i64
                  %997 = llvm.getelementptr %804[%996] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  %995 = llvm.load %997 : !llvm.ptr -> i64
                  %998 = arith.muli %987, %995 : i64
                  %999 = arith.addi %986, %998 : i64
                  llvm.store %999, %977 : i64, !llvm.ptr
                  %1000 = llvm.load %981 : !llvm.ptr -> i64
                  %1001 = arith.constant 1 : i32
                  %1003 = arith.extsi %1001 : i32 to i64
                  %1002 = arith.addi %1000, %1003 : i64
                  llvm.store %1002, %981 : i64, !llvm.ptr
                  cf.br ^bb132
                ^bb134:
                %1004 = llvm.load %977 : !llvm.ptr -> i64
                %1005 = arith.constant 0 : i32
                %1007 = arith.extsi %1005 : i32 to i64
                %1006 = arith.cmpi sgt, %1004, %1007 : i64
                cf.cond_br %1006, ^bb135, ^bb136
                ^bb135:
                  %1008 = arith.constant 0 : i32
                  %1009 = arith.extsi %1008 : i32 to i64
                  %1010 = llvm.mlir.constant(1 : i64) : i64
                  %1011 = llvm.alloca %1010 x i64 : (i64) -> !llvm.ptr
                  llvm.store %1009, %1011 : i64, !llvm.ptr
                  cf.br ^bb138
                  ^bb138:
                  %1012 = llvm.load %1011 : !llvm.ptr -> i64
                  %1013 = arith.constant 5 : i32
                  %1015 = arith.extsi %1013 : i32 to i64
                  %1014 = arith.cmpi slt, %1012, %1015 : i64
                  cf.cond_br %1014, ^bb139, ^bb140
                  ^bb139:
                    %1017 = llvm.load %1011 : !llvm.ptr -> i64
                    %1018 = llvm.getelementptr %804[%1017] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                    %1016 = llvm.load %1018 : !llvm.ptr -> i64
                    %1020 = arith.constant 0 : i64
                    %1019 = arith.subi %1020, %1016 : i64
                    %1021 = llvm.load %947 : !llvm.ptr -> i64
                    %1022 = arith.constant 5 : i32
                    %1024 = arith.extsi %1022 : i32 to i64
                    %1023 = arith.muli %1021, %1024 : i64
                    %1025 = llvm.load %1011 : !llvm.ptr -> i64
                    %1026 = arith.addi %1023, %1025 : i64
                    %1027 = llvm.getelementptr %799[%1026] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                    llvm.store %1019, %1027 : i64, !llvm.ptr
                    %1028 = llvm.load %1011 : !llvm.ptr -> i64
                    %1029 = arith.constant 1 : i32
                    %1031 = arith.extsi %1029 : i32 to i64
                    %1030 = arith.addi %1028, %1031 : i64
                    llvm.store %1030, %1011 : i64, !llvm.ptr
                    cf.br ^bb138
                  ^bb140:
                  cf.br ^bb137
                ^bb136:
                  %1032 = arith.constant 0 : i32
                  %1033 = arith.extsi %1032 : i32 to i64
                  %1034 = llvm.mlir.constant(1 : i64) : i64
                  %1035 = llvm.alloca %1034 x i64 : (i64) -> !llvm.ptr
                  llvm.store %1033, %1035 : i64, !llvm.ptr
                  cf.br ^bb141
                  ^bb141:
                  %1036 = llvm.load %1035 : !llvm.ptr -> i64
                  %1037 = arith.constant 5 : i32
                  %1039 = arith.extsi %1037 : i32 to i64
                  %1038 = arith.cmpi slt, %1036, %1039 : i64
                  cf.cond_br %1038, ^bb142, ^bb143
                  ^bb142:
                    %1041 = llvm.load %1035 : !llvm.ptr -> i64
                    %1042 = llvm.getelementptr %804[%1041] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                    %1040 = llvm.load %1042 : !llvm.ptr -> i64
                    %1043 = llvm.load %947 : !llvm.ptr -> i64
                    %1044 = arith.constant 5 : i32
                    %1046 = arith.extsi %1044 : i32 to i64
                    %1045 = arith.muli %1043, %1046 : i64
                    %1047 = llvm.load %1035 : !llvm.ptr -> i64
                    %1048 = arith.addi %1045, %1047 : i64
                    %1049 = llvm.getelementptr %799[%1048] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                    llvm.store %1040, %1049 : i64, !llvm.ptr
                    %1050 = llvm.load %1035 : !llvm.ptr -> i64
                    %1051 = arith.constant 1 : i32
                    %1053 = arith.extsi %1051 : i32 to i64
                    %1052 = arith.addi %1050, %1053 : i64
                    llvm.store %1052, %1035 : i64, !llvm.ptr
                    cf.br ^bb141
                  ^bb143:
                  cf.br ^bb137
                ^bb137:
                %1054 = llvm.load %947 : !llvm.ptr -> i64
                %1055 = arith.constant 1 : i32
                %1057 = arith.extsi %1055 : i32 to i64
                %1056 = arith.addi %1054, %1057 : i64
                llvm.store %1056, %947 : i64, !llvm.ptr
                cf.br ^bb126
              ^bb128:
              %1058 = arith.constant 1 : i32
              %1059 = arith.extsi %1058 : i32 to i64
              %1060 = llvm.mlir.constant(1 : i64) : i64
              %1061 = llvm.alloca %1060 x i64 : (i64) -> !llvm.ptr
              llvm.store %1059, %1061 : i64, !llvm.ptr
              %1062 = arith.constant 0 : i32
              %1063 = arith.extsi %1062 : i32 to i64
              %1064 = llvm.mlir.constant(1 : i64) : i64
              %1065 = llvm.alloca %1064 x i64 : (i64) -> !llvm.ptr
              llvm.store %1063, %1065 : i64, !llvm.ptr
              cf.br ^bb144
              ^bb144:
              %1066 = llvm.load %1065 : !llvm.ptr -> i64
              %1067 = arith.constant 5 : i32
              %1069 = arith.extsi %1067 : i32 to i64
              %1068 = arith.cmpi slt, %1066, %1069 : i64
              cf.cond_br %1068, ^bb145, ^bb146
              ^bb145:
                %1070 = arith.constant 0 : i32
                %1071 = arith.extsi %1070 : i32 to i64
                %1072 = llvm.mlir.constant(1 : i64) : i64
                %1073 = llvm.alloca %1072 x i64 : (i64) -> !llvm.ptr
                llvm.store %1071, %1073 : i64, !llvm.ptr
                cf.br ^bb147
                ^bb147:
                %1074 = llvm.load %1073 : !llvm.ptr -> i64
                %1075 = arith.constant 5 : i32
                %1077 = arith.extsi %1075 : i32 to i64
                %1076 = arith.cmpi slt, %1074, %1077 : i64
                cf.cond_br %1076, ^bb148, ^bb149
                ^bb148:
                  %1079 = llvm.load %1065 : !llvm.ptr -> i64
                  %1080 = arith.constant 5 : i32
                  %1082 = arith.extsi %1080 : i32 to i64
                  %1081 = arith.muli %1079, %1082 : i64
                  %1083 = llvm.load %1073 : !llvm.ptr -> i64
                  %1084 = arith.addi %1081, %1083 : i64
                  %1085 = llvm.getelementptr %799[%1084] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  %1078 = llvm.load %1085 : !llvm.ptr -> i64
                  %1086 = llvm.load %1073 : !llvm.ptr -> i64
                  %1087 = llvm.getelementptr %804[%1086] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                  llvm.store %1078, %1087 : i64, !llvm.ptr
                  %1088 = llvm.load %1073 : !llvm.ptr -> i64
                  %1089 = arith.constant 1 : i32
                  %1091 = arith.extsi %1089 : i32 to i64
                  %1090 = arith.addi %1088, %1091 : i64
                  llvm.store %1090, %1073 : i64, !llvm.ptr
                  cf.br ^bb147
                ^bb149:
                %1092 = func.call @w_func(%804) : (!llvm.ptr) -> i64
                %1093 = arith.constant 1 : i32
                %1095 = arith.extsi %1093 : i32 to i64
                %1094 = arith.subi %1095, %1092 : i64
                %1096 = llvm.mlir.addressof @MOD : !llvm.ptr
                %1097 = llvm.load %1096 : !llvm.ptr -> i64
                %1098 = arith.remsi %1094, %1097 : i64
                %1099 = arith.constant 0 : i32
                %1101 = arith.extsi %1099 : i32 to i64
                %1100 = arith.cmpi slt, %1098, %1101 : i64
                %1102 = scf.if %1100 -> (i64) {
                  %1103 = llvm.mlir.addressof @MOD : !llvm.ptr
                  %1104 = llvm.load %1103 : !llvm.ptr -> i64
                  %1105 = arith.addi %1098, %1104 : i64
                  scf.yield %1105 : i64
                } else {
                  scf.yield %1098 : i64
                }
                %1106 = llvm.load %1061 : !llvm.ptr -> i64
                %1107 = func.call @modinv(%1102) : (i64) -> i64
                %1108 = arith.muli %1106, %1107 : i64
                %1109 = llvm.mlir.addressof @MOD : !llvm.ptr
                %1110 = llvm.load %1109 : !llvm.ptr -> i64
                %1111 = arith.remsi %1108, %1110 : i64
                llvm.store %1111, %1061 : i64, !llvm.ptr
                %1112 = llvm.load %1065 : !llvm.ptr -> i64
                %1113 = arith.constant 1 : i32
                %1115 = arith.extsi %1113 : i32 to i64
                %1114 = arith.addi %1112, %1115 : i64
                llvm.store %1114, %1065 : i64, !llvm.ptr
                cf.br ^bb144
              ^bb146:
              %1116 = llvm.mlir.addressof @num_combos : !llvm.ptr
              %1117 = llvm.load %1116 : !llvm.ptr -> i64
              %1118 = arith.constant 0 : i32
              %1119 = arith.extsi %1118 : i32 to i64
              %1120 = llvm.mlir.constant(1 : i64) : i64
              %1121 = llvm.alloca %1120 x i64 : (i64) -> !llvm.ptr
              llvm.store %1119, %1121 : i64, !llvm.ptr
              cf.br ^bb150
              ^bb150:
              %1122 = llvm.load %1121 : !llvm.ptr -> i64
              %1123 = arith.constant 5 : i32
              %1125 = arith.extsi %1123 : i32 to i64
              %1124 = arith.cmpi slt, %1122, %1125 : i64
              cf.cond_br %1124, ^bb151, ^bb152
              ^bb151:
                %1127 = llvm.load %1121 : !llvm.ptr -> i64
                %1128 = llvm.getelementptr %864[0, %1127] : (!llvm.ptr, i64) -> !llvm.ptr, !llvm.array<5 x i64>
                %1126 = llvm.load %1128 : !llvm.ptr -> i64
                %1129 = arith.trunci %1126 : i64 to i32
                %1130 = llvm.mlir.addressof @combo_I : !llvm.ptr
                %1131 = llvm.load %1130 : !llvm.ptr -> !llvm.ptr
                %1132 = arith.constant 5 : i32
                %1134 = arith.extsi %1132 : i32 to i64
                %1133 = arith.muli %1117, %1134 : i64
                %1135 = llvm.load %1121 : !llvm.ptr -> i64
                %1136 = arith.addi %1133, %1135 : i64
                %1137 = llvm.getelementptr %1131[%1136] : (!llvm.ptr, i64) -> !llvm.ptr, i32
                llvm.store %1129, %1137 : i32, !llvm.ptr
                %1138 = llvm.load %1121 : !llvm.ptr -> i64
                %1139 = arith.constant 1 : i32
                %1141 = arith.extsi %1139 : i32 to i64
                %1140 = arith.addi %1138, %1141 : i64
                llvm.store %1140, %1121 : i64, !llvm.ptr
                cf.br ^bb150
              ^bb152:
              %1142 = llvm.mlir.addressof @combo_det : !llvm.ptr
              %1143 = llvm.load %1142 : !llvm.ptr -> !llvm.ptr
              %1144 = llvm.getelementptr %1143[%1117] : (!llvm.ptr, i64) -> !llvm.ptr, i64
              llvm.store %912, %1144 : i64, !llvm.ptr
              %1145 = arith.constant 0 : i32
              %1146 = arith.extsi %1145 : i32 to i64
              %1147 = llvm.mlir.constant(1 : i64) : i64
              %1148 = llvm.alloca %1147 x i64 : (i64) -> !llvm.ptr
              llvm.store %1146, %1148 : i64, !llvm.ptr
              cf.br ^bb153
              ^bb153:
              %1149 = llvm.load %1148 : !llvm.ptr -> i64
              %1150 = arith.constant 25 : i32
              %1152 = arith.extsi %1150 : i32 to i64
              %1151 = arith.cmpi slt, %1149, %1152 : i64
              cf.cond_br %1151, ^bb154, ^bb155
              ^bb154:
                %1154 = llvm.load %1148 : !llvm.ptr -> i64
                %1155 = llvm.getelementptr %794[%1154] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                %1153 = llvm.load %1155 : !llvm.ptr -> i64
                %1156 = llvm.mlir.addressof @combo_adj : !llvm.ptr
                %1157 = llvm.load %1156 : !llvm.ptr -> !llvm.ptr
                %1158 = arith.constant 25 : i32
                %1160 = arith.extsi %1158 : i32 to i64
                %1159 = arith.muli %1117, %1160 : i64
                %1161 = llvm.load %1148 : !llvm.ptr -> i64
                %1162 = arith.addi %1159, %1161 : i64
                %1163 = llvm.getelementptr %1157[%1162] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                llvm.store %1153, %1163 : i64, !llvm.ptr
                %1165 = llvm.load %1148 : !llvm.ptr -> i64
                %1166 = llvm.getelementptr %799[%1165] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                %1164 = llvm.load %1166 : !llvm.ptr -> i64
                %1167 = llvm.mlir.addressof @combo_r : !llvm.ptr
                %1168 = llvm.load %1167 : !llvm.ptr -> !llvm.ptr
                %1169 = arith.constant 25 : i32
                %1171 = arith.extsi %1169 : i32 to i64
                %1170 = arith.muli %1117, %1171 : i64
                %1172 = llvm.load %1148 : !llvm.ptr -> i64
                %1173 = arith.addi %1170, %1172 : i64
                %1174 = llvm.getelementptr %1168[%1173] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                llvm.store %1164, %1174 : i64, !llvm.ptr
                %1175 = llvm.load %1148 : !llvm.ptr -> i64
                %1176 = arith.constant 1 : i32
                %1178 = arith.extsi %1176 : i32 to i64
                %1177 = arith.addi %1175, %1178 : i64
                llvm.store %1177, %1148 : i64, !llvm.ptr
                cf.br ^bb153
              ^bb155:
              %1179 = llvm.load %1061 : !llvm.ptr -> i64
              %1180 = llvm.mlir.addressof @combo_den : !llvm.ptr
              %1181 = llvm.load %1180 : !llvm.ptr -> !llvm.ptr
              %1182 = llvm.getelementptr %1181[%1117] : (!llvm.ptr, i64) -> !llvm.ptr, i64
              llvm.store %1179, %1182 : i64, !llvm.ptr
              %1183 = llvm.mlir.addressof @num_combos : !llvm.ptr
              %1184 = llvm.load %1183 : !llvm.ptr -> i64
              %1185 = arith.constant 1 : i32
              %1187 = arith.extsi %1185 : i32 to i64
              %1186 = arith.addi %1184, %1187 : i64
              %1188 = llvm.mlir.addressof @num_combos : !llvm.ptr
              llvm.store %1186, %1188 : i64, !llvm.ptr
              %1189 = llvm.load %852 : !llvm.ptr -> i64
              %1190 = arith.constant 1 : i32
              %1192 = arith.extsi %1190 : i32 to i64
              %1191 = arith.addi %1189, %1192 : i64
              llvm.store %1191, %852 : i64, !llvm.ptr
              cf.br ^bb114
            ^bb116:
            %1193 = llvm.load %842 : !llvm.ptr -> i64
            %1194 = arith.constant 1 : i32
            %1196 = arith.extsi %1194 : i32 to i64
            %1195 = arith.addi %1193, %1196 : i64
            llvm.store %1195, %842 : i64, !llvm.ptr
            cf.br ^bb111
          ^bb113:
          %1197 = llvm.load %832 : !llvm.ptr -> i64
          %1198 = arith.constant 1 : i32
          %1200 = arith.extsi %1198 : i32 to i64
          %1199 = arith.addi %1197, %1200 : i64
          llvm.store %1199, %832 : i64, !llvm.ptr
          cf.br ^bb108
        ^bb110:
        %1201 = llvm.load %822 : !llvm.ptr -> i64
        %1202 = arith.constant 1 : i32
        %1204 = arith.extsi %1202 : i32 to i64
        %1203 = arith.addi %1201, %1204 : i64
        llvm.store %1203, %822 : i64, !llvm.ptr
        cf.br ^bb105
      ^bb107:
      %1205 = llvm.load %812 : !llvm.ptr -> i64
      %1206 = arith.constant 1 : i32
      %1208 = arith.extsi %1206 : i32 to i64
      %1207 = arith.addi %1205, %1208 : i64
      llvm.store %1207, %812 : i64, !llvm.ptr
      cf.br ^bb102
    ^bb104:
    func.call @free(%789) : (!llvm.ptr) -> ()
    func.call @free(%794) : (!llvm.ptr) -> ()
    func.call @free(%799) : (!llvm.ptr) -> ()
    func.call @free(%804) : (!llvm.ptr) -> ()
    func.return
  }
  func.func @P_func(%arg0: !llvm.ptr, %arg1: i64) -> i64 {
    %1214 = arith.constant 15 : i32
    %1215 = arith.constant 8 : i32
    %1216 = arith.extsi %1214 : i32 to i64
    %1217 = arith.extsi %1215 : i32 to i64
    %1213 = func.call @calloc(%1216, %1217) : (i64, i64) -> !llvm.ptr
    %1218 = arith.constant 0 : i32
    %1219 = arith.extsi %1218 : i32 to i64
    %1220 = llvm.mlir.constant(1 : i64) : i64
    %1221 = llvm.alloca %1220 x i64 : (i64) -> !llvm.ptr
    llvm.store %1219, %1221 : i64, !llvm.ptr
    cf.br ^bb156
    ^bb156:
    %1222 = llvm.load %1221 : !llvm.ptr -> i64
    %1223 = arith.constant 10 : i32
    %1225 = arith.extsi %1223 : i32 to i64
    %1224 = arith.cmpi slt, %1222, %1225 : i64
    cf.cond_br %1224, ^bb157, ^bb158
    ^bb157:
      %1227 = llvm.load %1221 : !llvm.ptr -> i64
      %1228 = llvm.getelementptr %arg0[%1227] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %1226 = llvm.load %1228 : !llvm.ptr -> i64
      %1229 = llvm.load %1221 : !llvm.ptr -> i64
      %1230 = llvm.getelementptr %1213[%1229] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      llvm.store %1226, %1230 : i64, !llvm.ptr
      %1231 = llvm.load %1221 : !llvm.ptr -> i64
      %1232 = arith.constant 1 : i32
      %1234 = arith.extsi %1232 : i32 to i64
      %1233 = arith.addi %1231, %1234 : i64
      llvm.store %1233, %1221 : i64, !llvm.ptr
      cf.br ^bb156
    ^bb158:
    cf.br ^bb159
    ^bb159:
    %1235 = llvm.load %1221 : !llvm.ptr -> i64
    %1236 = arith.constant 15 : i32
    %1238 = arith.extsi %1236 : i32 to i64
    %1237 = arith.cmpi slt, %1235, %1238 : i64
    cf.cond_br %1237, ^bb160, ^bb161
    ^bb160:
      %1239 = arith.constant 0 : i32
      %1240 = llvm.load %1221 : !llvm.ptr -> i64
      %1241 = arith.extsi %1239 : i32 to i64
      %1242 = llvm.getelementptr %1213[%1240] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      llvm.store %1241, %1242 : i64, !llvm.ptr
      %1243 = llvm.load %1221 : !llvm.ptr -> i64
      %1244 = arith.constant 1 : i32
      %1246 = arith.extsi %1244 : i32 to i64
      %1245 = arith.addi %1243, %1246 : i64
      llvm.store %1245, %1221 : i64, !llvm.ptr
      cf.br ^bb159
    ^bb161:
    %1248 = arith.constant 5 : i32
    %1249 = arith.constant 8 : i32
    %1250 = arith.extsi %1248 : i32 to i64
    %1251 = arith.extsi %1249 : i32 to i64
    %1247 = func.call @calloc(%1250, %1251) : (i64, i64) -> !llvm.ptr
    %1253 = arith.constant 5 : i32
    %1254 = arith.constant 8 : i32
    %1255 = arith.extsi %1253 : i32 to i64
    %1256 = arith.extsi %1254 : i32 to i64
    %1252 = func.call @calloc(%1255, %1256) : (i64, i64) -> !llvm.ptr
    %1258 = arith.constant 5 : i32
    %1259 = arith.constant 8 : i32
    %1260 = arith.extsi %1258 : i32 to i64
    %1261 = arith.extsi %1259 : i32 to i64
    %1257 = func.call @calloc(%1260, %1261) : (i64, i64) -> !llvm.ptr
    %1263 = arith.constant 5 : i32
    %1264 = arith.constant 8 : i32
    %1265 = arith.extsi %1263 : i32 to i64
    %1266 = arith.extsi %1264 : i32 to i64
    %1262 = func.call @calloc(%1265, %1266) : (i64, i64) -> !llvm.ptr
    %1268 = arith.constant 25 : i32
    %1269 = arith.constant 8 : i32
    %1270 = arith.extsi %1268 : i32 to i64
    %1271 = arith.extsi %1269 : i32 to i64
    %1267 = func.call @calloc(%1270, %1271) : (i64, i64) -> !llvm.ptr
    %1272 = arith.constant 0 : i32
    %1273 = arith.extsi %1272 : i32 to i64
    %1274 = llvm.mlir.constant(1 : i64) : i64
    %1275 = llvm.alloca %1274 x i64 : (i64) -> !llvm.ptr
    llvm.store %1273, %1275 : i64, !llvm.ptr
    %1276 = arith.constant 0 : i32
    %1277 = arith.extsi %1276 : i32 to i64
    %1278 = llvm.mlir.constant(1 : i64) : i64
    %1279 = llvm.alloca %1278 x i64 : (i64) -> !llvm.ptr
    llvm.store %1277, %1279 : i64, !llvm.ptr
    cf.br ^bb162
    ^bb162:
    %1280 = llvm.load %1279 : !llvm.ptr -> i64
    %1281 = llvm.mlir.addressof @num_combos : !llvm.ptr
    %1282 = llvm.load %1281 : !llvm.ptr -> i64
    %1283 = arith.cmpi slt, %1280, %1282 : i64
    cf.cond_br %1283, ^bb163, ^bb164
    ^bb163:
      %1285 = llvm.mlir.addressof @combo_det : !llvm.ptr
      %1286 = llvm.load %1285 : !llvm.ptr -> !llvm.ptr
      %1287 = llvm.load %1279 : !llvm.ptr -> i64
      %1288 = llvm.getelementptr %1286[%1287] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %1284 = llvm.load %1288 : !llvm.ptr -> i64
      %1289 = arith.constant 0 : i32
      %1290 = arith.extsi %1289 : i32 to i64
      %1291 = llvm.mlir.constant(1 : i64) : i64
      %1292 = llvm.alloca %1291 x i64 : (i64) -> !llvm.ptr
      llvm.store %1290, %1292 : i64, !llvm.ptr
      cf.br ^bb165
      ^bb165:
      %1293 = llvm.load %1292 : !llvm.ptr -> i64
      %1294 = arith.constant 5 : i32
      %1296 = arith.extsi %1294 : i32 to i64
      %1295 = arith.cmpi slt, %1293, %1296 : i64
      cf.cond_br %1295, ^bb166, ^bb167
      ^bb166:
        %1299 = llvm.mlir.addressof @combo_I : !llvm.ptr
        %1300 = llvm.load %1299 : !llvm.ptr -> !llvm.ptr
        %1301 = llvm.load %1279 : !llvm.ptr -> i64
        %1302 = arith.constant 5 : i32
        %1304 = arith.extsi %1302 : i32 to i64
        %1303 = arith.muli %1301, %1304 : i64
        %1305 = llvm.load %1292 : !llvm.ptr -> i64
        %1306 = arith.addi %1303, %1305 : i64
        %1307 = llvm.getelementptr %1300[%1306] : (!llvm.ptr, i64) -> !llvm.ptr, i32
        %1298 = llvm.load %1307 : !llvm.ptr -> i32
        %1308 = arith.extsi %1298 : i32 to i64
        %1309 = llvm.getelementptr %1213[%1308] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %1297 = llvm.load %1309 : !llvm.ptr -> i64
        %1310 = llvm.load %1292 : !llvm.ptr -> i64
        %1311 = llvm.getelementptr %1247[%1310] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        llvm.store %1297, %1311 : i64, !llvm.ptr
        %1312 = llvm.load %1292 : !llvm.ptr -> i64
        %1313 = arith.constant 1 : i32
        %1315 = arith.extsi %1313 : i32 to i64
        %1314 = arith.addi %1312, %1315 : i64
        llvm.store %1314, %1292 : i64, !llvm.ptr
        cf.br ^bb165
      ^bb167:
      %1316 = arith.constant 0 : i32
      %1317 = arith.extsi %1316 : i32 to i64
      %1318 = llvm.mlir.constant(1 : i64) : i64
      %1319 = llvm.alloca %1318 x i64 : (i64) -> !llvm.ptr
      llvm.store %1317, %1319 : i64, !llvm.ptr
      cf.br ^bb168
      ^bb168:
      %1320 = llvm.load %1319 : !llvm.ptr -> i64
      %1321 = arith.constant 5 : i32
      %1323 = arith.extsi %1321 : i32 to i64
      %1322 = arith.cmpi slt, %1320, %1323 : i64
      cf.cond_br %1322, ^bb169, ^bb170
      ^bb169:
        %1324 = arith.constant 0 : i32
        %1325 = arith.extsi %1324 : i32 to i64
        %1326 = llvm.mlir.constant(1 : i64) : i64
        %1327 = llvm.alloca %1326 x i64 : (i64) -> !llvm.ptr
        llvm.store %1325, %1327 : i64, !llvm.ptr
        %1328 = arith.constant 0 : i32
        %1329 = arith.extsi %1328 : i32 to i64
        %1330 = llvm.mlir.constant(1 : i64) : i64
        %1331 = llvm.alloca %1330 x i64 : (i64) -> !llvm.ptr
        llvm.store %1329, %1331 : i64, !llvm.ptr
        cf.br ^bb171
        ^bb171:
        %1332 = llvm.load %1331 : !llvm.ptr -> i64
        %1333 = arith.constant 5 : i32
        %1335 = arith.extsi %1333 : i32 to i64
        %1334 = arith.cmpi slt, %1332, %1335 : i64
        cf.cond_br %1334, ^bb172, ^bb173
        ^bb172:
          %1336 = llvm.load %1327 : !llvm.ptr -> i64
          %1338 = llvm.mlir.addressof @combo_adj : !llvm.ptr
          %1339 = llvm.load %1338 : !llvm.ptr -> !llvm.ptr
          %1340 = llvm.load %1279 : !llvm.ptr -> i64
          %1341 = arith.constant 25 : i32
          %1343 = arith.extsi %1341 : i32 to i64
          %1342 = arith.muli %1340, %1343 : i64
          %1344 = llvm.load %1319 : !llvm.ptr -> i64
          %1345 = arith.constant 5 : i32
          %1347 = arith.extsi %1345 : i32 to i64
          %1346 = arith.muli %1344, %1347 : i64
          %1348 = arith.addi %1342, %1346 : i64
          %1349 = llvm.load %1331 : !llvm.ptr -> i64
          %1350 = arith.addi %1348, %1349 : i64
          %1351 = llvm.getelementptr %1339[%1350] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %1337 = llvm.load %1351 : !llvm.ptr -> i64
          %1353 = llvm.load %1331 : !llvm.ptr -> i64
          %1354 = llvm.getelementptr %1247[%1353] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %1352 = llvm.load %1354 : !llvm.ptr -> i64
          %1355 = arith.muli %1337, %1352 : i64
          %1356 = arith.addi %1336, %1355 : i64
          llvm.store %1356, %1327 : i64, !llvm.ptr
          %1357 = llvm.load %1331 : !llvm.ptr -> i64
          %1358 = arith.constant 1 : i32
          %1360 = arith.extsi %1358 : i32 to i64
          %1359 = arith.addi %1357, %1360 : i64
          llvm.store %1359, %1331 : i64, !llvm.ptr
          cf.br ^bb171
        ^bb173:
        %1361 = llvm.load %1327 : !llvm.ptr -> i64
        %1362 = llvm.load %1319 : !llvm.ptr -> i64
        %1363 = llvm.getelementptr %1252[%1362] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        llvm.store %1361, %1363 : i64, !llvm.ptr
        %1364 = llvm.load %1319 : !llvm.ptr -> i64
        %1365 = arith.constant 1 : i32
        %1367 = arith.extsi %1365 : i32 to i64
        %1366 = arith.addi %1364, %1367 : i64
        llvm.store %1366, %1319 : i64, !llvm.ptr
        cf.br ^bb168
      ^bb170:
      %1368 = arith.constant 1 : i32
      %1369 = arith.extsi %1368 : i32 to i64
      %1370 = llvm.mlir.constant(1 : i64) : i64
      %1371 = llvm.alloca %1370 x i64 : (i64) -> !llvm.ptr
      llvm.store %1369, %1371 : i64, !llvm.ptr
      %1372 = arith.constant 0 : i32
      %1373 = arith.extsi %1372 : i32 to i64
      %1374 = llvm.mlir.constant(1 : i64) : i64
      %1375 = llvm.alloca %1374 x i64 : (i64) -> !llvm.ptr
      llvm.store %1373, %1375 : i64, !llvm.ptr
      %1376 = arith.constant 0 : i32
      %1378 = arith.extsi %1376 : i32 to i64
      %1377 = arith.cmpi sgt, %1284, %1378 : i64
      cf.cond_br %1377, ^bb174, ^bb175
      ^bb174:
        %1379 = arith.constant 0 : i32
        %1380 = arith.extsi %1379 : i32 to i64
        %1381 = llvm.mlir.constant(1 : i64) : i64
        %1382 = llvm.alloca %1381 x i64 : (i64) -> !llvm.ptr
        llvm.store %1380, %1382 : i64, !llvm.ptr
        cf.br ^bb177
        ^bb177:
        %1383 = llvm.load %1382 : !llvm.ptr -> i64
        %1384 = arith.constant 15 : i32
        %1386 = arith.extsi %1384 : i32 to i64
        %1385 = arith.cmpi slt, %1383, %1386 : i64
        %1387 = scf.if %1385 -> (i1) {
          %1388 = llvm.load %1371 : !llvm.ptr -> i64
          %1389 = arith.constant 0 : i32
          %1391 = arith.extsi %1389 : i32 to i64
          %1390 = arith.cmpi ne, %1388, %1391 : i64
          scf.yield %1390 : i1
        } else {
          %1392 = arith.constant false
          scf.yield %1392 : i1
        }
        cf.cond_br %1387, ^bb178, ^bb179
        ^bb178:
          %1393 = arith.constant 0 : i32
          %1394 = arith.extsi %1393 : i32 to i64
          %1395 = llvm.mlir.constant(1 : i64) : i64
          %1396 = llvm.alloca %1395 x i64 : (i64) -> !llvm.ptr
          llvm.store %1394, %1396 : i64, !llvm.ptr
          %1397 = arith.constant 0 : i32
          %1398 = arith.extsi %1397 : i32 to i64
          %1399 = llvm.mlir.constant(1 : i64) : i64
          %1400 = llvm.alloca %1399 x i64 : (i64) -> !llvm.ptr
          llvm.store %1398, %1400 : i64, !llvm.ptr
          cf.br ^bb180
          ^bb180:
          %1401 = llvm.load %1400 : !llvm.ptr -> i64
          %1402 = arith.constant 5 : i32
          %1404 = arith.extsi %1402 : i32 to i64
          %1403 = arith.cmpi slt, %1401, %1404 : i64
          cf.cond_br %1403, ^bb181, ^bb182
          ^bb181:
            %1405 = llvm.load %1396 : !llvm.ptr -> i64
            %1407 = llvm.load %1382 : !llvm.ptr -> i64
            %1408 = llvm.load %1400 : !llvm.ptr -> i64
            %1406 = func.call @h_get(%1407, %1408) : (i64, i64) -> i64
            %1410 = llvm.load %1400 : !llvm.ptr -> i64
            %1411 = llvm.getelementptr %1252[%1410] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %1409 = llvm.load %1411 : !llvm.ptr -> i64
            %1412 = arith.muli %1406, %1409 : i64
            %1413 = arith.addi %1405, %1412 : i64
            llvm.store %1413, %1396 : i64, !llvm.ptr
            %1414 = llvm.load %1400 : !llvm.ptr -> i64
            %1415 = arith.constant 1 : i32
            %1417 = arith.extsi %1415 : i32 to i64
            %1416 = arith.addi %1414, %1417 : i64
            llvm.store %1416, %1400 : i64, !llvm.ptr
            cf.br ^bb180
          ^bb182:
          %1419 = llvm.load %1382 : !llvm.ptr -> i64
          %1420 = llvm.getelementptr %1213[%1419] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %1418 = llvm.load %1420 : !llvm.ptr -> i64
          %1421 = arith.muli %1418, %1284 : i64
          %1422 = llvm.load %1396 : !llvm.ptr -> i64
          %1423 = arith.cmpi sgt, %1422, %1421 : i64
          cf.cond_br %1423, ^bb183, ^bb184
          ^bb183:
            %1424 = arith.constant 0 : i32
            %1425 = arith.extsi %1424 : i32 to i64
            llvm.store %1425, %1371 : i64, !llvm.ptr
            cf.br ^bb185
          ^bb184:
            %1426 = llvm.load %1396 : !llvm.ptr -> i64
            %1427 = arith.cmpi eq, %1426, %1421 : i64
            cf.cond_br %1427, ^bb186, ^bb187
            ^bb186:
              %1428 = llvm.load %1375 : !llvm.ptr -> i64
              %1429 = arith.constant 1 : i32
              %1431 = arith.extsi %1429 : i32 to i64
              %1430 = arith.addi %1428, %1431 : i64
              llvm.store %1430, %1375 : i64, !llvm.ptr
              cf.br ^bb188
            ^bb187:
              cf.br ^bb188
            ^bb188:
            cf.br ^bb185
          ^bb185:
          %1432 = llvm.load %1382 : !llvm.ptr -> i64
          %1433 = arith.constant 1 : i32
          %1435 = arith.extsi %1433 : i32 to i64
          %1434 = arith.addi %1432, %1435 : i64
          llvm.store %1434, %1382 : i64, !llvm.ptr
          cf.br ^bb177
        ^bb179:
        cf.br ^bb176
      ^bb175:
        %1436 = arith.constant 0 : i32
        %1437 = arith.extsi %1436 : i32 to i64
        %1438 = llvm.mlir.constant(1 : i64) : i64
        %1439 = llvm.alloca %1438 x i64 : (i64) -> !llvm.ptr
        llvm.store %1437, %1439 : i64, !llvm.ptr
        cf.br ^bb189
        ^bb189:
        %1440 = llvm.load %1439 : !llvm.ptr -> i64
        %1441 = arith.constant 15 : i32
        %1443 = arith.extsi %1441 : i32 to i64
        %1442 = arith.cmpi slt, %1440, %1443 : i64
        %1444 = scf.if %1442 -> (i1) {
          %1445 = llvm.load %1371 : !llvm.ptr -> i64
          %1446 = arith.constant 0 : i32
          %1448 = arith.extsi %1446 : i32 to i64
          %1447 = arith.cmpi ne, %1445, %1448 : i64
          scf.yield %1447 : i1
        } else {
          %1449 = arith.constant false
          scf.yield %1449 : i1
        }
        cf.cond_br %1444, ^bb190, ^bb191
        ^bb190:
          %1450 = arith.constant 0 : i32
          %1451 = arith.extsi %1450 : i32 to i64
          %1452 = llvm.mlir.constant(1 : i64) : i64
          %1453 = llvm.alloca %1452 x i64 : (i64) -> !llvm.ptr
          llvm.store %1451, %1453 : i64, !llvm.ptr
          %1454 = arith.constant 0 : i32
          %1455 = arith.extsi %1454 : i32 to i64
          %1456 = llvm.mlir.constant(1 : i64) : i64
          %1457 = llvm.alloca %1456 x i64 : (i64) -> !llvm.ptr
          llvm.store %1455, %1457 : i64, !llvm.ptr
          cf.br ^bb192
          ^bb192:
          %1458 = llvm.load %1457 : !llvm.ptr -> i64
          %1459 = arith.constant 5 : i32
          %1461 = arith.extsi %1459 : i32 to i64
          %1460 = arith.cmpi slt, %1458, %1461 : i64
          cf.cond_br %1460, ^bb193, ^bb194
          ^bb193:
            %1462 = llvm.load %1453 : !llvm.ptr -> i64
            %1464 = llvm.load %1439 : !llvm.ptr -> i64
            %1465 = llvm.load %1457 : !llvm.ptr -> i64
            %1463 = func.call @h_get(%1464, %1465) : (i64, i64) -> i64
            %1467 = llvm.load %1457 : !llvm.ptr -> i64
            %1468 = llvm.getelementptr %1252[%1467] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %1466 = llvm.load %1468 : !llvm.ptr -> i64
            %1469 = arith.muli %1463, %1466 : i64
            %1470 = arith.addi %1462, %1469 : i64
            llvm.store %1470, %1453 : i64, !llvm.ptr
            %1471 = llvm.load %1457 : !llvm.ptr -> i64
            %1472 = arith.constant 1 : i32
            %1474 = arith.extsi %1472 : i32 to i64
            %1473 = arith.addi %1471, %1474 : i64
            llvm.store %1473, %1457 : i64, !llvm.ptr
            cf.br ^bb192
          ^bb194:
          %1476 = llvm.load %1439 : !llvm.ptr -> i64
          %1477 = llvm.getelementptr %1213[%1476] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %1475 = llvm.load %1477 : !llvm.ptr -> i64
          %1478 = arith.muli %1475, %1284 : i64
          %1479 = llvm.load %1453 : !llvm.ptr -> i64
          %1480 = arith.cmpi slt, %1479, %1478 : i64
          cf.cond_br %1480, ^bb195, ^bb196
          ^bb195:
            %1481 = arith.constant 0 : i32
            %1482 = arith.extsi %1481 : i32 to i64
            llvm.store %1482, %1371 : i64, !llvm.ptr
            cf.br ^bb197
          ^bb196:
            %1483 = llvm.load %1453 : !llvm.ptr -> i64
            %1484 = arith.cmpi eq, %1483, %1478 : i64
            cf.cond_br %1484, ^bb198, ^bb199
            ^bb198:
              %1485 = llvm.load %1375 : !llvm.ptr -> i64
              %1486 = arith.constant 1 : i32
              %1488 = arith.extsi %1486 : i32 to i64
              %1487 = arith.addi %1485, %1488 : i64
              llvm.store %1487, %1375 : i64, !llvm.ptr
              cf.br ^bb200
            ^bb199:
              cf.br ^bb200
            ^bb200:
            cf.br ^bb197
          ^bb197:
          %1489 = llvm.load %1439 : !llvm.ptr -> i64
          %1490 = arith.constant 1 : i32
          %1492 = arith.extsi %1490 : i32 to i64
          %1491 = arith.addi %1489, %1492 : i64
          llvm.store %1491, %1439 : i64, !llvm.ptr
          cf.br ^bb189
        ^bb191:
        cf.br ^bb176
      ^bb176:
      %1493 = llvm.load %1371 : !llvm.ptr -> i64
      %1494 = arith.constant 0 : i32
      %1496 = arith.extsi %1494 : i32 to i64
      %1495 = arith.cmpi eq, %1493, %1496 : i64
      cf.cond_br %1495, ^bb201, ^bb202
      ^bb201:
        %1497 = llvm.load %1279 : !llvm.ptr -> i64
        %1498 = arith.constant 1 : i32
        %1500 = arith.extsi %1498 : i32 to i64
        %1499 = arith.addi %1497, %1500 : i64
        llvm.store %1499, %1279 : i64, !llvm.ptr
        cf.br ^bb162
      ^bb202:
        cf.br ^bb203
      ^bb203:
      %1501 = arith.constant 0 : i32
      %1503 = arith.extsi %1501 : i32 to i64
      %1502 = arith.cmpi ne, %arg1, %1503 : i64
      %1504 = scf.if %1502 -> (i1) {
        %1505 = llvm.load %1375 : !llvm.ptr -> i64
        %1506 = arith.constant 5 : i32
        %1508 = arith.extsi %1506 : i32 to i64
        %1507 = arith.cmpi ne, %1505, %1508 : i64
        scf.yield %1507 : i1
      } else {
        %1509 = arith.constant false
        scf.yield %1509 : i1
      }
      cf.cond_br %1504, ^bb204, ^bb205
      ^bb204:
        %1510 = llvm.load %1279 : !llvm.ptr -> i64
        %1511 = arith.constant 1 : i32
        %1513 = arith.extsi %1511 : i32 to i64
        %1512 = arith.addi %1510, %1513 : i64
        llvm.store %1512, %1279 : i64, !llvm.ptr
        cf.br ^bb162
      ^bb205:
        cf.br ^bb206
      ^bb206:
      %1514 = arith.constant 0 : i32
      %1516 = arith.extsi %1514 : i32 to i64
      %1515 = arith.cmpi slt, %1284, %1516 : i64
      %1517 = scf.if %1515 -> (i64) {
        %1519 = arith.constant 0 : i64
        %1518 = arith.subi %1519, %1284 : i64
        scf.yield %1518 : i64
      } else {
        scf.yield %1284 : i64
      }
      %1520 = arith.constant 1 : i32
      %1522 = arith.extsi %1520 : i32 to i64
      %1521 = arith.cmpi eq, %1517, %1522 : i64
      cf.cond_br %1521, ^bb207, ^bb208
      ^bb207:
        %1523 = arith.constant 0 : i32
        %1524 = arith.extsi %1523 : i32 to i64
        %1525 = llvm.mlir.constant(1 : i64) : i64
        %1526 = llvm.alloca %1525 x i64 : (i64) -> !llvm.ptr
        llvm.store %1524, %1526 : i64, !llvm.ptr
        cf.br ^bb210
        ^bb210:
        %1527 = llvm.load %1526 : !llvm.ptr -> i64
        %1528 = arith.constant 5 : i32
        %1530 = arith.extsi %1528 : i32 to i64
        %1529 = arith.cmpi slt, %1527, %1530 : i64
        cf.cond_br %1529, ^bb211, ^bb212
        ^bb211:
          %1532 = llvm.load %1526 : !llvm.ptr -> i64
          %1533 = llvm.getelementptr %1252[%1532] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          %1531 = llvm.load %1533 : !llvm.ptr -> i64
          %1534 = arith.divsi %1531, %1284 : i64
          %1535 = llvm.load %1526 : !llvm.ptr -> i64
          %1536 = llvm.getelementptr %1257[%1535] : (!llvm.ptr, i64) -> !llvm.ptr, i64
          llvm.store %1534, %1536 : i64, !llvm.ptr
          %1537 = llvm.load %1526 : !llvm.ptr -> i64
          %1538 = arith.constant 1 : i32
          %1540 = arith.extsi %1538 : i32 to i64
          %1539 = arith.addi %1537, %1540 : i64
          llvm.store %1539, %1526 : i64, !llvm.ptr
          cf.br ^bb210
        ^bb212:
        %1541 = llvm.load %1275 : !llvm.ptr -> i64
        %1542 = func.call @f_func(%1257) : (!llvm.ptr) -> i64
        %1544 = llvm.mlir.addressof @combo_den : !llvm.ptr
        %1545 = llvm.load %1544 : !llvm.ptr -> !llvm.ptr
        %1546 = llvm.load %1279 : !llvm.ptr -> i64
        %1547 = llvm.getelementptr %1545[%1546] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %1543 = llvm.load %1547 : !llvm.ptr -> i64
        %1548 = arith.muli %1542, %1543 : i64
        %1549 = arith.addi %1541, %1548 : i64
        %1550 = llvm.mlir.addressof @MOD : !llvm.ptr
        %1551 = llvm.load %1550 : !llvm.ptr -> i64
        %1552 = arith.remsi %1549, %1551 : i64
        llvm.store %1552, %1275 : i64, !llvm.ptr
        cf.br ^bb209
      ^bb208:
        %1553 = arith.constant 0 : i32
        %1554 = arith.extsi %1553 : i32 to i64
        %1555 = llvm.mlir.constant(1 : i64) : i64
        %1556 = llvm.alloca %1555 x i64 : (i64) -> !llvm.ptr
        llvm.store %1554, %1556 : i64, !llvm.ptr
        cf.br ^bb213
        ^bb213:
        %1557 = llvm.load %1556 : !llvm.ptr -> i64
        %1558 = arith.constant 5 : i32
        %1560 = arith.extsi %1558 : i32 to i64
        %1559 = arith.cmpi slt, %1557, %1560 : i64
        cf.cond_br %1559, ^bb214, ^bb215
        ^bb214:
          %1561 = arith.constant 0 : i32
          %1562 = arith.extsi %1561 : i32 to i64
          %1563 = llvm.mlir.constant(1 : i64) : i64
          %1564 = llvm.alloca %1563 x i64 : (i64) -> !llvm.ptr
          llvm.store %1562, %1564 : i64, !llvm.ptr
          cf.br ^bb216
          ^bb216:
          %1565 = llvm.load %1564 : !llvm.ptr -> i64
          %1566 = arith.constant 5 : i32
          %1568 = arith.extsi %1566 : i32 to i64
          %1567 = arith.cmpi slt, %1565, %1568 : i64
          cf.cond_br %1567, ^bb217, ^bb218
          ^bb217:
            %1570 = llvm.mlir.addressof @combo_r : !llvm.ptr
            %1571 = llvm.load %1570 : !llvm.ptr -> !llvm.ptr
            %1572 = llvm.load %1279 : !llvm.ptr -> i64
            %1573 = arith.constant 25 : i32
            %1575 = arith.extsi %1573 : i32 to i64
            %1574 = arith.muli %1572, %1575 : i64
            %1576 = llvm.load %1556 : !llvm.ptr -> i64
            %1577 = arith.constant 5 : i32
            %1579 = arith.extsi %1577 : i32 to i64
            %1578 = arith.muli %1576, %1579 : i64
            %1580 = arith.addi %1574, %1578 : i64
            %1581 = llvm.load %1564 : !llvm.ptr -> i64
            %1582 = arith.addi %1580, %1581 : i64
            %1583 = llvm.getelementptr %1571[%1582] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %1569 = llvm.load %1583 : !llvm.ptr -> i64
            %1584 = arith.muli %1284, %1569 : i64
            %1585 = llvm.load %1556 : !llvm.ptr -> i64
            %1586 = arith.constant 5 : i32
            %1588 = arith.extsi %1586 : i32 to i64
            %1587 = arith.muli %1585, %1588 : i64
            %1589 = llvm.load %1564 : !llvm.ptr -> i64
            %1590 = arith.addi %1587, %1589 : i64
            %1591 = llvm.getelementptr %1267[%1590] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            llvm.store %1584, %1591 : i64, !llvm.ptr
            %1592 = llvm.load %1564 : !llvm.ptr -> i64
            %1593 = arith.constant 1 : i32
            %1595 = arith.extsi %1593 : i32 to i64
            %1594 = arith.addi %1592, %1595 : i64
            llvm.store %1594, %1564 : i64, !llvm.ptr
            cf.br ^bb216
          ^bb218:
          %1596 = llvm.load %1556 : !llvm.ptr -> i64
          %1597 = arith.constant 1 : i32
          %1599 = arith.extsi %1597 : i32 to i64
          %1598 = arith.addi %1596, %1599 : i64
          llvm.store %1598, %1556 : i64, !llvm.ptr
          cf.br ^bb213
        ^bb215:
        %1600 = arith.constant 2 : i32
        %1602 = arith.extsi %1600 : i32 to i64
        %1601 = arith.muli %1517, %1602 : i64
        %1603 = arith.constant 0 : i32
        %1604 = arith.extsi %1603 : i32 to i64
        %1605 = llvm.mlir.constant(1 : i64) : i64
        %1606 = llvm.alloca %1605 x i64 : (i64) -> !llvm.ptr
        llvm.store %1604, %1606 : i64, !llvm.ptr
        %1607 = arith.constant 0 : i32
        %1608 = arith.extsi %1607 : i32 to i64
        %1609 = llvm.mlir.constant(1 : i64) : i64
        %1610 = llvm.alloca %1609 x i64 : (i64) -> !llvm.ptr
        llvm.store %1608, %1610 : i64, !llvm.ptr
        cf.br ^bb219
        ^bb219:
        %1611 = llvm.load %1610 : !llvm.ptr -> i64
        %1612 = arith.constant 32 : i32
        %1614 = arith.extsi %1612 : i32 to i64
        %1613 = arith.cmpi slt, %1611, %1614 : i64
        cf.cond_br %1613, ^bb220, ^bb221
        ^bb220:
          %1615 = arith.constant 0 : i32
          %1616 = arith.extsi %1615 : i32 to i64
          %1617 = llvm.mlir.constant(1 : i64) : i64
          %1618 = llvm.alloca %1617 x i64 : (i64) -> !llvm.ptr
          llvm.store %1616, %1618 : i64, !llvm.ptr
          cf.br ^bb222
          ^bb222:
          %1619 = llvm.load %1618 : !llvm.ptr -> i64
          %1620 = arith.constant 5 : i32
          %1622 = arith.extsi %1620 : i32 to i64
          %1621 = arith.cmpi slt, %1619, %1622 : i64
          cf.cond_br %1621, ^bb223, ^bb224
          ^bb223:
            %1623 = arith.constant 2 : i32
            %1625 = llvm.load %1618 : !llvm.ptr -> i64
            %1626 = llvm.getelementptr %1252[%1625] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %1624 = llvm.load %1626 : !llvm.ptr -> i64
            %1628 = arith.extsi %1623 : i32 to i64
            %1627 = arith.muli %1628, %1624 : i64
            %1629 = llvm.load %1618 : !llvm.ptr -> i64
            %1630 = llvm.getelementptr %1262[%1629] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            llvm.store %1627, %1630 : i64, !llvm.ptr
            %1631 = llvm.load %1618 : !llvm.ptr -> i64
            %1632 = arith.constant 1 : i32
            %1634 = arith.extsi %1632 : i32 to i64
            %1633 = arith.addi %1631, %1634 : i64
            llvm.store %1633, %1618 : i64, !llvm.ptr
            cf.br ^bb222
          ^bb224:
          %1635 = arith.constant 0 : i32
          %1636 = arith.extsi %1635 : i32 to i64
          %1637 = llvm.mlir.constant(1 : i64) : i64
          %1638 = llvm.alloca %1637 x i64 : (i64) -> !llvm.ptr
          llvm.store %1636, %1638 : i64, !llvm.ptr
          cf.br ^bb225
          ^bb225:
          %1639 = llvm.load %1638 : !llvm.ptr -> i64
          %1640 = arith.constant 5 : i32
          %1642 = arith.extsi %1640 : i32 to i64
          %1641 = arith.cmpi slt, %1639, %1642 : i64
          cf.cond_br %1641, ^bb226, ^bb227
          ^bb226:
            %1643 = llvm.load %1610 : !llvm.ptr -> i64
            %1644 = arith.constant 1 : i32
            %1645 = llvm.load %1638 : !llvm.ptr -> i64
            %1647 = arith.extsi %1644 : i32 to i64
            %1646 = arith.shli %1647, %1645 : i64
            %1648 = arith.andi %1643, %1646 : i64
            %1649 = arith.constant 0 : i32
            %1651 = arith.extsi %1649 : i32 to i64
            %1650 = arith.cmpi ne, %1648, %1651 : i64
            cf.cond_br %1650, ^bb228, ^bb229
            ^bb228:
              %1652 = arith.constant 0 : i32
              %1653 = arith.extsi %1652 : i32 to i64
              %1654 = llvm.mlir.constant(1 : i64) : i64
              %1655 = llvm.alloca %1654 x i64 : (i64) -> !llvm.ptr
              llvm.store %1653, %1655 : i64, !llvm.ptr
              cf.br ^bb231
              ^bb231:
              %1656 = llvm.load %1655 : !llvm.ptr -> i64
              %1657 = arith.constant 5 : i32
              %1659 = arith.extsi %1657 : i32 to i64
              %1658 = arith.cmpi slt, %1656, %1659 : i64
              cf.cond_br %1658, ^bb232, ^bb233
              ^bb232:
                %1661 = llvm.load %1655 : !llvm.ptr -> i64
                %1662 = llvm.getelementptr %1262[%1661] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                %1660 = llvm.load %1662 : !llvm.ptr -> i64
                %1664 = llvm.load %1638 : !llvm.ptr -> i64
                %1665 = arith.constant 5 : i32
                %1667 = arith.extsi %1665 : i32 to i64
                %1666 = arith.muli %1664, %1667 : i64
                %1668 = llvm.load %1655 : !llvm.ptr -> i64
                %1669 = arith.addi %1666, %1668 : i64
                %1670 = llvm.getelementptr %1267[%1669] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                %1663 = llvm.load %1670 : !llvm.ptr -> i64
                %1671 = arith.addi %1660, %1663 : i64
                %1672 = llvm.load %1655 : !llvm.ptr -> i64
                %1673 = llvm.getelementptr %1262[%1672] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                llvm.store %1671, %1673 : i64, !llvm.ptr
                %1674 = llvm.load %1655 : !llvm.ptr -> i64
                %1675 = arith.constant 1 : i32
                %1677 = arith.extsi %1675 : i32 to i64
                %1676 = arith.addi %1674, %1677 : i64
                llvm.store %1676, %1655 : i64, !llvm.ptr
                cf.br ^bb231
              ^bb233:
              cf.br ^bb230
            ^bb229:
              cf.br ^bb230
            ^bb230:
            %1678 = llvm.load %1638 : !llvm.ptr -> i64
            %1679 = arith.constant 1 : i32
            %1681 = arith.extsi %1679 : i32 to i64
            %1680 = arith.addi %1678, %1681 : i64
            llvm.store %1680, %1638 : i64, !llvm.ptr
            cf.br ^bb225
          ^bb227:
          %1682 = arith.constant 1 : i32
          %1683 = arith.extsi %1682 : i32 to i64
          %1684 = llvm.mlir.constant(1 : i64) : i64
          %1685 = llvm.alloca %1684 x i64 : (i64) -> !llvm.ptr
          llvm.store %1683, %1685 : i64, !llvm.ptr
          %1686 = arith.constant 0 : i32
          %1687 = arith.extsi %1686 : i32 to i64
          %1688 = llvm.mlir.constant(1 : i64) : i64
          %1689 = llvm.alloca %1688 x i64 : (i64) -> !llvm.ptr
          llvm.store %1687, %1689 : i64, !llvm.ptr
          cf.br ^bb234
          ^bb234:
          %1690 = llvm.load %1689 : !llvm.ptr -> i64
          %1691 = arith.constant 5 : i32
          %1693 = arith.extsi %1691 : i32 to i64
          %1692 = arith.cmpi slt, %1690, %1693 : i64
          cf.cond_br %1692, ^bb235, ^bb236
          ^bb235:
            %1695 = llvm.load %1689 : !llvm.ptr -> i64
            %1696 = llvm.getelementptr %1262[%1695] : (!llvm.ptr, i64) -> !llvm.ptr, i64
            %1694 = llvm.load %1696 : !llvm.ptr -> i64
            %1697 = arith.remsi %1694, %1601 : i64
            %1698 = arith.constant 0 : i32
            %1700 = arith.extsi %1698 : i32 to i64
            %1699 = arith.cmpi ne, %1697, %1700 : i64
            cf.cond_br %1699, ^bb237, ^bb238
            ^bb237:
              %1701 = arith.constant 0 : i32
              %1702 = arith.extsi %1701 : i32 to i64
              llvm.store %1702, %1685 : i64, !llvm.ptr
              cf.br ^bb236
            ^bb238:
              cf.br ^bb239
            ^bb239:
            %1703 = llvm.load %1689 : !llvm.ptr -> i64
            %1704 = arith.constant 1 : i32
            %1706 = arith.extsi %1704 : i32 to i64
            %1705 = arith.addi %1703, %1706 : i64
            llvm.store %1705, %1689 : i64, !llvm.ptr
            cf.br ^bb234
          ^bb236:
          %1707 = llvm.load %1685 : !llvm.ptr -> i64
          %1708 = arith.constant 0 : i32
          %1710 = arith.extsi %1708 : i32 to i64
          %1709 = arith.cmpi ne, %1707, %1710 : i64
          cf.cond_br %1709, ^bb240, ^bb241
          ^bb240:
            %1711 = arith.constant 0 : i32
            %1712 = arith.extsi %1711 : i32 to i64
            %1713 = llvm.mlir.constant(1 : i64) : i64
            %1714 = llvm.alloca %1713 x i64 : (i64) -> !llvm.ptr
            llvm.store %1712, %1714 : i64, !llvm.ptr
            cf.br ^bb243
            ^bb243:
            %1715 = llvm.load %1714 : !llvm.ptr -> i64
            %1716 = arith.constant 5 : i32
            %1718 = arith.extsi %1716 : i32 to i64
            %1717 = arith.cmpi slt, %1715, %1718 : i64
            cf.cond_br %1717, ^bb244, ^bb245
            ^bb244:
              %1720 = llvm.load %1714 : !llvm.ptr -> i64
              %1721 = llvm.getelementptr %1262[%1720] : (!llvm.ptr, i64) -> !llvm.ptr, i64
              %1719 = llvm.load %1721 : !llvm.ptr -> i64
              %1722 = arith.constant 2 : i32
              %1724 = arith.extsi %1722 : i32 to i64
              %1723 = arith.muli %1724, %1284 : i64
              %1725 = arith.divsi %1719, %1723 : i64
              %1726 = llvm.load %1714 : !llvm.ptr -> i64
              %1727 = llvm.getelementptr %1257[%1726] : (!llvm.ptr, i64) -> !llvm.ptr, i64
              llvm.store %1725, %1727 : i64, !llvm.ptr
              %1728 = llvm.load %1714 : !llvm.ptr -> i64
              %1729 = arith.constant 1 : i32
              %1731 = arith.extsi %1729 : i32 to i64
              %1730 = arith.addi %1728, %1731 : i64
              llvm.store %1730, %1714 : i64, !llvm.ptr
              cf.br ^bb243
            ^bb245:
            %1732 = arith.constant 1 : i32
            %1733 = arith.extsi %1732 : i32 to i64
            %1734 = llvm.mlir.constant(1 : i64) : i64
            %1735 = llvm.alloca %1734 x i64 : (i64) -> !llvm.ptr
            llvm.store %1733, %1735 : i64, !llvm.ptr
            %1736 = arith.constant 0 : i32
            %1737 = arith.extsi %1736 : i32 to i64
            %1738 = llvm.mlir.constant(1 : i64) : i64
            %1739 = llvm.alloca %1738 x i64 : (i64) -> !llvm.ptr
            llvm.store %1737, %1739 : i64, !llvm.ptr
            cf.br ^bb246
            ^bb246:
            %1740 = llvm.load %1739 : !llvm.ptr -> i64
            %1741 = arith.constant 15 : i32
            %1743 = arith.extsi %1741 : i32 to i64
            %1742 = arith.cmpi slt, %1740, %1743 : i64
            %1744 = scf.if %1742 -> (i1) {
              %1745 = llvm.load %1735 : !llvm.ptr -> i64
              %1746 = arith.constant 0 : i32
              %1748 = arith.extsi %1746 : i32 to i64
              %1747 = arith.cmpi ne, %1745, %1748 : i64
              scf.yield %1747 : i1
            } else {
              %1749 = arith.constant false
              scf.yield %1749 : i1
            }
            cf.cond_br %1744, ^bb247, ^bb248
            ^bb247:
              %1750 = arith.constant 0 : i32
              %1751 = arith.extsi %1750 : i32 to i64
              %1752 = llvm.mlir.constant(1 : i64) : i64
              %1753 = llvm.alloca %1752 x i64 : (i64) -> !llvm.ptr
              llvm.store %1751, %1753 : i64, !llvm.ptr
              %1754 = arith.constant 0 : i32
              %1755 = arith.extsi %1754 : i32 to i64
              %1756 = llvm.mlir.constant(1 : i64) : i64
              %1757 = llvm.alloca %1756 x i64 : (i64) -> !llvm.ptr
              llvm.store %1755, %1757 : i64, !llvm.ptr
              cf.br ^bb249
              ^bb249:
              %1758 = llvm.load %1757 : !llvm.ptr -> i64
              %1759 = arith.constant 5 : i32
              %1761 = arith.extsi %1759 : i32 to i64
              %1760 = arith.cmpi slt, %1758, %1761 : i64
              cf.cond_br %1760, ^bb250, ^bb251
              ^bb250:
                %1762 = llvm.load %1753 : !llvm.ptr -> i64
                %1764 = llvm.load %1739 : !llvm.ptr -> i64
                %1765 = llvm.load %1757 : !llvm.ptr -> i64
                %1763 = func.call @h_get(%1764, %1765) : (i64, i64) -> i64
                %1767 = llvm.load %1757 : !llvm.ptr -> i64
                %1768 = llvm.getelementptr %1257[%1767] : (!llvm.ptr, i64) -> !llvm.ptr, i64
                %1766 = llvm.load %1768 : !llvm.ptr -> i64
                %1769 = arith.muli %1763, %1766 : i64
                %1770 = arith.addi %1762, %1769 : i64
                llvm.store %1770, %1753 : i64, !llvm.ptr
                %1771 = llvm.load %1757 : !llvm.ptr -> i64
                %1772 = arith.constant 1 : i32
                %1774 = arith.extsi %1772 : i32 to i64
                %1773 = arith.addi %1771, %1774 : i64
                llvm.store %1773, %1757 : i64, !llvm.ptr
                cf.br ^bb249
              ^bb251:
              %1775 = llvm.load %1753 : !llvm.ptr -> i64
              %1777 = llvm.load %1739 : !llvm.ptr -> i64
              %1778 = llvm.getelementptr %1213[%1777] : (!llvm.ptr, i64) -> !llvm.ptr, i64
              %1776 = llvm.load %1778 : !llvm.ptr -> i64
              %1779 = arith.cmpi sgt, %1775, %1776 : i64
              cf.cond_br %1779, ^bb252, ^bb253
              ^bb252:
                %1780 = arith.constant 0 : i32
                %1781 = arith.extsi %1780 : i32 to i64
                llvm.store %1781, %1735 : i64, !llvm.ptr
                cf.br ^bb254
              ^bb253:
                cf.br ^bb254
              ^bb254:
              %1782 = llvm.load %1739 : !llvm.ptr -> i64
              %1783 = arith.constant 1 : i32
              %1785 = arith.extsi %1783 : i32 to i64
              %1784 = arith.addi %1782, %1785 : i64
              llvm.store %1784, %1739 : i64, !llvm.ptr
              cf.br ^bb246
            ^bb248:
            %1786 = llvm.load %1735 : !llvm.ptr -> i64
            %1787 = arith.constant 0 : i32
            %1789 = arith.extsi %1787 : i32 to i64
            %1788 = arith.cmpi ne, %1786, %1789 : i64
            cf.cond_br %1788, ^bb255, ^bb256
            ^bb255:
              %1790 = llvm.load %1606 : !llvm.ptr -> i64
              %1791 = func.call @f_func(%1257) : (!llvm.ptr) -> i64
              %1792 = arith.addi %1790, %1791 : i64
              %1793 = llvm.mlir.addressof @MOD : !llvm.ptr
              %1794 = llvm.load %1793 : !llvm.ptr -> i64
              %1795 = arith.remsi %1792, %1794 : i64
              llvm.store %1795, %1606 : i64, !llvm.ptr
              cf.br ^bb257
            ^bb256:
              cf.br ^bb257
            ^bb257:
            cf.br ^bb242
          ^bb241:
            cf.br ^bb242
          ^bb242:
          %1796 = llvm.load %1610 : !llvm.ptr -> i64
          %1797 = arith.constant 1 : i32
          %1799 = arith.extsi %1797 : i32 to i64
          %1798 = arith.addi %1796, %1799 : i64
          llvm.store %1798, %1610 : i64, !llvm.ptr
          cf.br ^bb219
        ^bb221:
        %1800 = llvm.load %1275 : !llvm.ptr -> i64
        %1801 = llvm.load %1606 : !llvm.ptr -> i64
        %1803 = llvm.mlir.addressof @combo_den : !llvm.ptr
        %1804 = llvm.load %1803 : !llvm.ptr -> !llvm.ptr
        %1805 = llvm.load %1279 : !llvm.ptr -> i64
        %1806 = llvm.getelementptr %1804[%1805] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %1802 = llvm.load %1806 : !llvm.ptr -> i64
        %1807 = arith.muli %1801, %1802 : i64
        %1808 = arith.addi %1800, %1807 : i64
        %1809 = llvm.mlir.addressof @MOD : !llvm.ptr
        %1810 = llvm.load %1809 : !llvm.ptr -> i64
        %1811 = arith.remsi %1808, %1810 : i64
        llvm.store %1811, %1275 : i64, !llvm.ptr
        cf.br ^bb209
      ^bb209:
      %1812 = llvm.load %1279 : !llvm.ptr -> i64
      %1813 = arith.constant 1 : i32
      %1815 = arith.extsi %1813 : i32 to i64
      %1814 = arith.addi %1812, %1815 : i64
      llvm.store %1814, %1279 : i64, !llvm.ptr
      cf.br ^bb162
    ^bb164:
    func.call @free(%1213) : (!llvm.ptr) -> ()
    func.call @free(%1247) : (!llvm.ptr) -> ()
    func.call @free(%1252) : (!llvm.ptr) -> ()
    func.call @free(%1257) : (!llvm.ptr) -> ()
    func.call @free(%1262) : (!llvm.ptr) -> ()
    func.call @free(%1267) : (!llvm.ptr) -> ()
    %1822 = llvm.load %1275 : !llvm.ptr -> i64
    func.return %1822 : i64
  }
  func.func @B_sequence(%arg0: i64, %arg1: !llvm.ptr) -> () {
    %1823 = arith.constant 1 : i32
    %1824 = arith.constant 0 : i32
    %1825 = arith.extsi %1823 : i32 to i64
    %1826 = arith.extsi %1824 : i32 to i64
    %1827 = llvm.getelementptr %arg1[%1826] : (!llvm.ptr, i64) -> !llvm.ptr, i64
    llvm.store %1825, %1827 : i64, !llvm.ptr
    %1828 = arith.constant 7 : i32
    %1829 = arith.constant 1 : i32
    %1830 = arith.extsi %1828 : i32 to i64
    %1831 = arith.extsi %1829 : i32 to i64
    %1832 = llvm.getelementptr %arg1[%1831] : (!llvm.ptr, i64) -> !llvm.ptr, i64
    llvm.store %1830, %1832 : i64, !llvm.ptr
    %1833 = arith.constant 2 : i32
    %1834 = arith.extsi %1833 : i32 to i64
    %1835 = llvm.mlir.constant(1 : i64) : i64
    %1836 = llvm.alloca %1835 x i64 : (i64) -> !llvm.ptr
    llvm.store %1834, %1836 : i64, !llvm.ptr
    cf.br ^bb258
    ^bb258:
    %1837 = llvm.load %1836 : !llvm.ptr -> i64
    %1838 = arith.cmpi slt, %1837, %arg0 : i64
    cf.cond_br %1838, ^bb259, ^bb260
    ^bb259:
      %1839 = arith.constant 7 : i32
      %1841 = llvm.load %1836 : !llvm.ptr -> i64
      %1842 = arith.constant 1 : i32
      %1844 = arith.extsi %1842 : i32 to i64
      %1843 = arith.subi %1841, %1844 : i64
      %1845 = llvm.getelementptr %arg1[%1843] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %1840 = llvm.load %1845 : !llvm.ptr -> i64
      %1847 = arith.extsi %1839 : i32 to i64
      %1846 = arith.muli %1847, %1840 : i64
      %1849 = llvm.load %1836 : !llvm.ptr -> i64
      %1850 = arith.constant 2 : i32
      %1852 = arith.extsi %1850 : i32 to i64
      %1851 = arith.subi %1849, %1852 : i64
      %1853 = llvm.getelementptr %arg1[%1851] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %1848 = llvm.load %1853 : !llvm.ptr -> i64
      %1855 = llvm.load %1836 : !llvm.ptr -> i64
      %1856 = arith.constant 2 : i32
      %1858 = arith.extsi %1856 : i32 to i64
      %1857 = arith.subi %1855, %1858 : i64
      %1859 = llvm.getelementptr %arg1[%1857] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      %1854 = llvm.load %1859 : !llvm.ptr -> i64
      %1860 = arith.muli %1848, %1854 : i64
      %1861 = arith.addi %1846, %1860 : i64
      %1862 = llvm.mlir.addressof @MOD : !llvm.ptr
      %1863 = llvm.load %1862 : !llvm.ptr -> i64
      %1864 = arith.remsi %1861, %1863 : i64
      %1865 = llvm.load %1836 : !llvm.ptr -> i64
      %1866 = llvm.getelementptr %arg1[%1865] : (!llvm.ptr, i64) -> !llvm.ptr, i64
      llvm.store %1864, %1866 : i64, !llvm.ptr
      %1867 = llvm.load %1836 : !llvm.ptr -> i64
      %1868 = arith.constant 1 : i32
      %1870 = arith.extsi %1868 : i32 to i64
      %1869 = arith.addi %1867, %1870 : i64
      llvm.store %1869, %1836 : i64, !llvm.ptr
      cf.br ^bb258
    ^bb260:
    func.return
  }
  func.func @main() -> i32 {
    func.call @precompute_combos() : () -> ()
    %1872 = arith.constant 100 : i32
    %1873 = arith.extsi %1872 : i32 to i64
    %1875 = arith.constant 1005 : i32
    %1876 = arith.constant 8 : i32
    %1877 = arith.extsi %1875 : i32 to i64
    %1878 = arith.extsi %1876 : i32 to i64
    %1874 = func.call @calloc(%1877, %1878) : (i64, i64) -> !llvm.ptr
    %1880 = arith.constant 10 : i32
    %1882 = arith.extsi %1880 : i32 to i64
    %1881 = arith.muli %1882, %1873 : i64
    %1883 = arith.constant 5 : i32
    %1885 = arith.extsi %1883 : i32 to i64
    %1884 = arith.addi %1881, %1885 : i64
    func.call @B_sequence(%1884, %1874) : (i64, !llvm.ptr) -> ()
    %1887 = arith.constant 10 : i32
    %1888 = arith.constant 8 : i32
    %1889 = arith.extsi %1887 : i32 to i64
    %1890 = arith.extsi %1888 : i32 to i64
    %1886 = func.call @calloc(%1889, %1890) : (i64, i64) -> !llvm.ptr
    %1891 = arith.constant 0 : i32
    %1892 = arith.extsi %1891 : i32 to i64
    %1893 = llvm.mlir.constant(1 : i64) : i64
    %1894 = llvm.alloca %1893 x i64 : (i64) -> !llvm.ptr
    llvm.store %1892, %1894 : i64, !llvm.ptr
    %1895 = arith.constant 0 : i32
    %1896 = arith.extsi %1895 : i32 to i64
    %1897 = llvm.mlir.constant(1 : i64) : i64
    %1898 = llvm.alloca %1897 x i64 : (i64) -> !llvm.ptr
    llvm.store %1896, %1898 : i64, !llvm.ptr
    cf.br ^bb261
    ^bb261:
    %1899 = llvm.load %1898 : !llvm.ptr -> i64
    %1900 = arith.cmpi slt, %1899, %1873 : i64
    cf.cond_br %1900, ^bb262, ^bb263
    ^bb262:
      %1901 = arith.constant 0 : i32
      %1902 = arith.extsi %1901 : i32 to i64
      %1903 = llvm.mlir.constant(1 : i64) : i64
      %1904 = llvm.alloca %1903 x i64 : (i64) -> !llvm.ptr
      llvm.store %1902, %1904 : i64, !llvm.ptr
      cf.br ^bb264
      ^bb264:
      %1905 = llvm.load %1904 : !llvm.ptr -> i64
      %1906 = arith.constant 10 : i32
      %1908 = arith.extsi %1906 : i32 to i64
      %1907 = arith.cmpi slt, %1905, %1908 : i64
      cf.cond_br %1907, ^bb265, ^bb266
      ^bb265:
        %1910 = arith.constant 10 : i32
        %1911 = llvm.load %1898 : !llvm.ptr -> i64
        %1913 = arith.extsi %1910 : i32 to i64
        %1912 = arith.muli %1913, %1911 : i64
        %1914 = llvm.load %1904 : !llvm.ptr -> i64
        %1915 = arith.addi %1912, %1914 : i64
        %1916 = llvm.getelementptr %1874[%1915] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        %1909 = llvm.load %1916 : !llvm.ptr -> i64
        %1917 = llvm.load %1904 : !llvm.ptr -> i64
        %1918 = llvm.getelementptr %1886[%1917] : (!llvm.ptr, i64) -> !llvm.ptr, i64
        llvm.store %1909, %1918 : i64, !llvm.ptr
        %1919 = llvm.load %1904 : !llvm.ptr -> i64
        %1920 = arith.constant 1 : i32
        %1922 = arith.extsi %1920 : i32 to i64
        %1921 = arith.addi %1919, %1922 : i64
        llvm.store %1921, %1904 : i64, !llvm.ptr
        cf.br ^bb264
      ^bb266:
      %1923 = llvm.load %1894 : !llvm.ptr -> i64
      %1925 = arith.constant 1 : i32
      %1926 = arith.extsi %1925 : i32 to i64
      %1924 = func.call @P_func(%1886, %1926) : (!llvm.ptr, i64) -> i64
      %1927 = arith.addi %1923, %1924 : i64
      %1928 = llvm.mlir.addressof @MOD : !llvm.ptr
      %1929 = llvm.load %1928 : !llvm.ptr -> i64
      %1930 = arith.remsi %1927, %1929 : i64
      llvm.store %1930, %1894 : i64, !llvm.ptr
      %1931 = llvm.load %1898 : !llvm.ptr -> i64
      %1932 = arith.constant 1 : i32
      %1934 = arith.extsi %1932 : i32 to i64
      %1933 = arith.addi %1931, %1934 : i64
      llvm.store %1933, %1898 : i64, !llvm.ptr
      cf.br ^bb261
    ^bb263:
    %1935 = llvm.mlir.addressof @str_0 : !llvm.ptr
    %1936 = llvm.load %1894 : !llvm.ptr -> i64
    %1937 = llvm.call @printf(%1935, %1936) vararg(!llvm.func<i32 (ptr, ...)>) : (!llvm.ptr, i64) -> i32
    func.call @free(%1874) : (!llvm.ptr) -> ()
    func.call @free(%1886) : (!llvm.ptr) -> ()
    %1941 = llvm.mlir.addressof @combo_I : !llvm.ptr
    %1942 = llvm.load %1941 : !llvm.ptr -> !llvm.ptr
    func.call @free(%1942) : (!llvm.ptr) -> ()
    %1944 = llvm.mlir.addressof @combo_det : !llvm.ptr
    %1945 = llvm.load %1944 : !llvm.ptr -> !llvm.ptr
    func.call @free(%1945) : (!llvm.ptr) -> ()
    %1947 = llvm.mlir.addressof @combo_adj : !llvm.ptr
    %1948 = llvm.load %1947 : !llvm.ptr -> !llvm.ptr
    func.call @free(%1948) : (!llvm.ptr) -> ()
    %1950 = llvm.mlir.addressof @combo_r : !llvm.ptr
    %1951 = llvm.load %1950 : !llvm.ptr -> !llvm.ptr
    func.call @free(%1951) : (!llvm.ptr) -> ()
    %1953 = llvm.mlir.addressof @combo_den : !llvm.ptr
    %1954 = llvm.load %1953 : !llvm.ptr -> !llvm.ptr
    func.call @free(%1954) : (!llvm.ptr) -> ()
    %1955 = arith.constant 0 : i32
    func.return %1955 : i32
  }
}