#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_add(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_clear(int /*<<< orphan*/);
scalar_t__ mpz_cmp(int /*<<< orphan*/, int /*<<< orphan*/);
scalar_t__ mpz_cmp_ui(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpz_init(int /*<<< orphan*/);
int /*<<< orphan*/ mpz_mod(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_mul(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_set(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mpz_set_ui(int /*<<< orphan*/, int);
int /*<<< orphan*/ mpz_sub(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
int /*<<< orphan*/ mpz_tdiv_q(int /*<<< orphan*/, int /*<<< orphan*/,
                              int /*<<< orphan*/);
void point_math_inversemod(mpz_t r, mpz_t a, mpz_t m) {
  mpz_t c, d, uc, vc, ud, vd, rem, q, uct, vct, udt, vdt, temp;
  mpz_init(c);
  mpz_init(d);
  mpz_init(uc);
  mpz_init(vc);
  mpz_init(ud);
  mpz_init(vd);
  mpz_init(rem);
  mpz_init(q);
  mpz_init(uct);
  mpz_init(vct);
  mpz_init(udt);
  mpz_init(vdt);
  mpz_init(temp);
  while (mpz_cmp_ui(a, 0) < 0) {
    mpz_add(a, a, m);
  }
  if (mpz_cmp_ui(a, 0) < 0 || mpz_cmp(m, a) <= 0) {
    mpz_mod(a, a, m);
  }
  mpz_set(c, a);
  mpz_set(d, m);
  mpz_set_ui(uc, 1);
  mpz_set_ui(vc, 0);
  mpz_set_ui(ud, 0);
  mpz_set_ui(vd, 1);
  while (mpz_cmp_ui(c, 0) != 0) {
    mpz_tdiv_q(q, d, c);
    mpz_mod(rem, d, c);
    mpz_set(d, c);
    mpz_set(c, rem);
    mpz_set(uct, uc);
    mpz_set(vct, vc);
    mpz_set(udt, ud);
    mpz_set(vdt, vd);
    mpz_mul(temp, q, uct);
    mpz_sub(uc, udt, temp);
    mpz_mul(temp, q, vct);
    mpz_sub(vc, vdt, temp);
    mpz_set(ud, uct);
    mpz_set(vd, vct);
  }
  if (mpz_cmp_ui(ud, 0) > 0) {
    mpz_set(r, ud);
  } else {
    mpz_add(r, ud, m);
  }
  mpz_clear(c);
  mpz_clear(d);
  mpz_clear(uc);
  mpz_clear(vc);
  mpz_clear(ud);
  mpz_clear(vd);
  mpz_clear(rem);
  mpz_clear(q);
  mpz_clear(uct);
  mpz_clear(vct);
  mpz_clear(udt);
  mpz_clear(vdt);
  mpz_clear(temp);
}


x86 assembly (clang, -O0):
<point_math_inversemod>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x10(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x14(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x18(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x1c(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x20(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x24(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x28(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x2c(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x30(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x34(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x38(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x3c(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x40(%rbp),%edi
call   1050 <mpz_init@plt>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
cmp    $0x0,%rax
jge    1250 <point_math_inversemod+0xa0>
mov    -0x8(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1060 <mpz_add@plt>
jmp    1229 <point_math_inversemod+0x79>
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
cmp    $0x0,%rax
jl     1279 <point_math_inversemod+0xc9>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1090 <mpz_cmp@plt>
cmp    $0x0,%rax
jg     1287 <point_math_inversemod+0xd7>
mov    -0x8(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   10b0 <mpz_mod@plt>
mov    -0x10(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x14(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x18(%rbp),%edi
mov    $0x1,%esi
call   10a0 <mpz_set_ui@plt>
mov    -0x1c(%rbp),%edi
xor    %esi,%esi
call   10a0 <mpz_set_ui@plt>
mov    -0x20(%rbp),%edi
xor    %esi,%esi
call   10a0 <mpz_set_ui@plt>
mov    -0x24(%rbp),%edi
mov    $0x1,%esi
call   10a0 <mpz_set_ui@plt>
mov    -0x10(%rbp),%edi
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
cmp    $0x0,%rax
je     1390 <point_math_inversemod+0x1e0>
mov    -0x2c(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
call   10d0 <mpz_tdiv_q@plt>
mov    -0x28(%rbp),%edi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%edx
call   10b0 <mpz_mod@plt>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x10(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x30(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x34(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x38(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x3c(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x40(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x30(%rbp),%edx
call   1070 <mpz_mul@plt>
mov    -0x18(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    -0x40(%rbp),%edx
call   1040 <mpz_sub@plt>
mov    -0x40(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x34(%rbp),%edx
call   1070 <mpz_mul@plt>
mov    -0x1c(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x40(%rbp),%edx
call   1040 <mpz_sub@plt>
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1030 <mpz_set@plt>
mov    -0x24(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1030 <mpz_set@plt>
jmp    12cb <point_math_inversemod+0x11b>
mov    -0x20(%rbp),%edi
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
cmp    $0x0,%rax
jle    13b4 <point_math_inversemod+0x204>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1030 <mpz_set@plt>
jmp    13c2 <point_math_inversemod+0x212>
mov    -0x4(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1060 <mpz_add@plt>
mov    -0x10(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x14(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x18(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x1c(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x20(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x24(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x28(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x2c(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x30(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x34(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x38(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x3c(%rbp),%edi
call   10c0 <mpz_clear@plt>
mov    -0x40(%rbp),%edi
call   10c0 <mpz_clear@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<point_math_inversemod>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %esi,%ebp
mov    %edi,%r14d
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
call   1050 <mpz_init@plt>
nopl   0x0(%rax)
mov    %ebp,%edi
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
mov    %ebp,%edi
test   %rax,%rax
jns    121b <point_math_inversemod+0x6b>
mov    %ebp,%esi
mov    %ebx,%edx
call   1060 <mpz_add@plt>
jmp    1200 <point_math_inversemod+0x50>
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
test   %rax,%rax
js     1235 <point_math_inversemod+0x85>
mov    %ebx,%edi
mov    %ebp,%esi
call   1090 <mpz_cmp@plt>
test   %rax,%rax
jg     1240 <point_math_inversemod+0x90>
mov    %ebp,%edi
mov    %ebp,%esi
mov    %ebx,%edx
call   10b0 <mpz_mod@plt>
mov    %ebp,%esi
call   1030 <mpz_set@plt>
mov    %ebx,%esi
call   1030 <mpz_set@plt>
mov    $0x1,%esi
call   10a0 <mpz_set_ui@plt>
xor    %esi,%esi
call   10a0 <mpz_set_ui@plt>
xor    %esi,%esi
call   10a0 <mpz_set_ui@plt>
mov    $0x1,%esi
call   10a0 <mpz_set_ui@plt>
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
test   %rax,%rax
je     12c4 <point_math_inversemod+0x114>
call   10d0 <mpz_tdiv_q@plt>
call   10b0 <mpz_mod@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
call   1070 <mpz_mul@plt>
call   1040 <mpz_sub@plt>
call   1070 <mpz_mul@plt>
call   1040 <mpz_sub@plt>
call   1030 <mpz_set@plt>
call   1030 <mpz_set@plt>
jmp    1270 <point_math_inversemod+0xc0>
xor    %esi,%esi
call   1080 <mpz_cmp_ui@plt>
mov    %r14d,%edi
test   %rax,%rax
jle    12da <point_math_inversemod+0x12a>
call   1030 <mpz_set@plt>
jmp    12e1 <point_math_inversemod+0x131>
mov    %ebx,%edx
call   1060 <mpz_add@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
call   10c0 <mpz_clear@plt>
pop    %rbx
pop    %r14
pop    %rbp
jmp    10c0 <mpz_clear@plt>

LLVM IR (-O0):
define void @point_math_inversemod(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%20 = load i32, i32* %7
%21 = call i32 @mpz_init(i32 %20)
%22 = load i32, i32* %8
%23 = call i32 @mpz_init(i32 %22)
%24 = load i32, i32* %9
%25 = call i32 @mpz_init(i32 %24)
%26 = load i32, i32* %10
%27 = call i32 @mpz_init(i32 %26)
%28 = load i32, i32* %11
%29 = call i32 @mpz_init(i32 %28)
%30 = load i32, i32* %12
%31 = call i32 @mpz_init(i32 %30)
%32 = load i32, i32* %13
%33 = call i32 @mpz_init(i32 %32)
%34 = load i32, i32* %14
%35 = call i32 @mpz_init(i32 %34)
%36 = load i32, i32* %15
%37 = call i32 @mpz_init(i32 %36)
%38 = load i32, i32* %16
%39 = call i32 @mpz_init(i32 %38)
%40 = load i32, i32* %17
%41 = call i32 @mpz_init(i32 %40)
%42 = load i32, i32* %18
%43 = call i32 @mpz_init(i32 %42)
%44 = load i32, i32* %19
%45 = call i32 @mpz_init(i32 %44)
br label %46
46: ; preds = %50, %3
%47 = load i32, i32* %5
%48 = call i64 @mpz_cmp_ui(i32 %47, i32 0)
%49 = icmp slt i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %46
%51 = load i32, i32* %5
%52 = load i32, i32* %5
%53 = load i32, i32* %6
%54 = call i32 @mpz_add(i32 %51, i32 %52, i32 %53)
br label %46
55: ; preds = %46
%56 = load i32, i32* %5
%57 = call i64 @mpz_cmp_ui(i32 %56, i32 0)
%58 = icmp slt i64 %57, 0
br i1 %58, label %64, label %59
59: ; preds = %55
%60 = load i32, i32* %6
%61 = load i32, i32* %5
%62 = call i64 @mpz_cmp(i32 %60, i32 %61)
%63 = icmp sle i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %59, %55
%65 = load i32, i32* %5
%66 = load i32, i32* %5
%67 = load i32, i32* %6
%68 = call i32 @mpz_mod(i32 %65, i32 %66, i32 %67)
br label %69
69: ; preds = %64, %59
%70 = load i32, i32* %7
%71 = load i32, i32* %5
%72 = call i32 @mpz_set(i32 %70, i32 %71)
%73 = load i32, i32* %8
%74 = load i32, i32* %6
%75 = call i32 @mpz_set(i32 %73, i32 %74)
%76 = load i32, i32* %9
%77 = call i32 @mpz_set_ui(i32 %76, i32 1)
%78 = load i32, i32* %10
%79 = call i32 @mpz_set_ui(i32 %78, i32 0)
%80 = load i32, i32* %11
%81 = call i32 @mpz_set_ui(i32 %80, i32 0)
%82 = load i32, i32* %12
%83 = call i32 @mpz_set_ui(i32 %82, i32 1)
br label %84
84: ; preds = %88, %69
%85 = load i32, i32* %7
%86 = call i64 @mpz_cmp_ui(i32 %85, i32 0)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %137
88: ; preds = %84
%89 = load i32, i32* %14
%90 = load i32, i32* %8
%91 = load i32, i32* %7
%92 = call i32 @mpz_tdiv_q(i32 %89, i32 %90, i32 %91)
%93 = load i32, i32* %13
%94 = load i32, i32* %8
%95 = load i32, i32* %7
%96 = call i32 @mpz_mod(i32 %93, i32 %94, i32 %95)
%97 = load i32, i32* %8
%98 = load i32, i32* %7
%99 = call i32 @mpz_set(i32 %97, i32 %98)
%100 = load i32, i32* %7
%101 = load i32, i32* %13
%102 = call i32 @mpz_set(i32 %100, i32 %101)
%103 = load i32, i32* %15
%104 = load i32, i32* %9
%105 = call i32 @mpz_set(i32 %103, i32 %104)
%106 = load i32, i32* %16
%107 = load i32, i32* %10
%108 = call i32 @mpz_set(i32 %106, i32 %107)
%109 = load i32, i32* %17
%110 = load i32, i32* %11
%111 = call i32 @mpz_set(i32 %109, i32 %110)
%112 = load i32, i32* %18
%113 = load i32, i32* %12
%114 = call i32 @mpz_set(i32 %112, i32 %113)
%115 = load i32, i32* %19
%116 = load i32, i32* %14
%117 = load i32, i32* %15
%118 = call i32 @mpz_mul(i32 %115, i32 %116, i32 %117)
%119 = load i32, i32* %9
%120 = load i32, i32* %17
%121 = load i32, i32* %19
%122 = call i32 @mpz_sub(i32 %119, i32 %120, i32 %121)
%123 = load i32, i32* %19
%124 = load i32, i32* %14
%125 = load i32, i32* %16
%126 = call i32 @mpz_mul(i32 %123, i32 %124, i32 %125)
%127 = load i32, i32* %10
%128 = load i32, i32* %18
%129 = load i32, i32* %19
%130 = call i32 @mpz_sub(i32 %127, i32 %128, i32 %129)
%131 = load i32, i32* %11
%132 = load i32, i32* %15
%133 = call i32 @mpz_set(i32 %131, i32 %132)
%134 = load i32, i32* %12
%135 = load i32, i32* %16
%136 = call i32 @mpz_set(i32 %134, i32 %135)
br label %84
137: ; preds = %84
%138 = load i32, i32* %11
%139 = call i64 @mpz_cmp_ui(i32 %138, i32 0)
%140 = icmp sgt i64 %139, 0
br i1 %140, label %141, label %145
141: ; preds = %137
%142 = load i32, i32* %4
%143 = load i32, i32* %11
%144 = call i32 @mpz_set(i32 %142, i32 %143)
br label %150
145: ; preds = %137
%146 = load i32, i32* %4
%147 = load i32, i32* %11
%148 = load i32, i32* %6
%149 = call i32 @mpz_add(i32 %146, i32 %147, i32 %148)
br label %150
150: ; preds = %145, %141
%151 = load i32, i32* %7
%152 = call i32 @mpz_clear(i32 %151)
%153 = load i32, i32* %8
%154 = call i32 @mpz_clear(i32 %153)
%155 = load i32, i32* %9
%156 = call i32 @mpz_clear(i32 %155)
%157 = load i32, i32* %10
%158 = call i32 @mpz_clear(i32 %157)
%159 = load i32, i32* %11
%160 = call i32 @mpz_clear(i32 %159)
%161 = load i32, i32* %12
%162 = call i32 @mpz_clear(i32 %161)
%163 = load i32, i32* %13
%164 = call i32 @mpz_clear(i32 %163)
%165 = load i32, i32* %14
%166 = call i32 @mpz_clear(i32 %165)
%167 = load i32, i32* %15
%168 = call i32 @mpz_clear(i32 %167)
%169 = load i32, i32* %16
%170 = call i32 @mpz_clear(i32 %169)
%171 = load i32, i32* %17
%172 = call i32 @mpz_clear(i32 %171)
%173 = load i32, i32* %18
%174 = call i32 @mpz_clear(i32 %173)
%175 = load i32, i32* %19
%176 = call i32 @mpz_clear(i32 %175)
ret void
}

LLVM IR (-O2):
define void @point_math_inversemod(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @mpz_init(i32 undef)
%5 = tail call i32 @mpz_init(i32 undef)
%6 = tail call i32 @mpz_init(i32 undef)
%7 = tail call i32 @mpz_init(i32 undef)
%8 = tail call i32 @mpz_init(i32 undef)
%9 = tail call i32 @mpz_init(i32 undef)
%10 = tail call i32 @mpz_init(i32 undef)
%11 = tail call i32 @mpz_init(i32 undef)
%12 = tail call i32 @mpz_init(i32 undef)
%13 = tail call i32 @mpz_init(i32 undef)
%14 = tail call i32 @mpz_init(i32 undef)
%15 = tail call i32 @mpz_init(i32 undef)
%16 = tail call i32 @mpz_init(i32 undef)
%17 = tail call i64 @mpz_cmp_ui(i32 %1, i32 0)
%18 = icmp slt i64 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %3, %19
%20 = tail call i32 @mpz_add(i32 %1, i32 %1, i32 %2)
%21 = tail call i64 @mpz_cmp_ui(i32 %1, i32 0)
%22 = icmp slt i64 %21, 0
br i1 %22, label %19, label %23
23: ; preds = %19, %3
%24 = tail call i64 @mpz_cmp_ui(i32 %1, i32 0)
%25 = icmp slt i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = tail call i64 @mpz_cmp(i32 %2, i32 %1)
%28 = icmp slt i64 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %26, %23
%30 = tail call i32 @mpz_mod(i32 %1, i32 %1, i32 %2)
br label %31
31: ; preds = %29, %26
%32 = tail call i32 @mpz_set(i32 undef, i32 %1)
%33 = tail call i32 @mpz_set(i32 undef, i32 %2)
%34 = tail call i32 @mpz_set_ui(i32 undef, i32 1)
%35 = tail call i32 @mpz_set_ui(i32 undef, i32 0)
%36 = tail call i32 @mpz_set_ui(i32 undef, i32 0)
%37 = tail call i32 @mpz_set_ui(i32 undef, i32 1)
%38 = tail call i64 @mpz_cmp_ui(i32 undef, i32 0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %57, label %40
40: ; preds = %31, %40
%41 = tail call i32 @mpz_tdiv_q(i32 undef, i32 undef, i32 undef)
%42 = tail call i32 @mpz_mod(i32 undef, i32 undef, i32 undef)
%43 = tail call i32 @mpz_set(i32 undef, i32 undef)
%44 = tail call i32 @mpz_set(i32 undef, i32 undef)
%45 = tail call i32 @mpz_set(i32 undef, i32 undef)
%46 = tail call i32 @mpz_set(i32 undef, i32 undef)
%47 = tail call i32 @mpz_set(i32 undef, i32 undef)
%48 = tail call i32 @mpz_set(i32 undef, i32 undef)
%49 = tail call i32 @mpz_mul(i32 undef, i32 undef, i32 undef)
%50 = tail call i32 @mpz_sub(i32 undef, i32 undef, i32 undef)
%51 = tail call i32 @mpz_mul(i32 undef, i32 undef, i32 undef)
%52 = tail call i32 @mpz_sub(i32 undef, i32 undef, i32 undef)
%53 = tail call i32 @mpz_set(i32 undef, i32 undef)
%54 = tail call i32 @mpz_set(i32 undef, i32 undef)
%55 = tail call i64 @mpz_cmp_ui(i32 undef, i32 0)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %40
57: ; preds = %40, %31
%58 = tail call i64 @mpz_cmp_ui(i32 undef, i32 0)
%59 = icmp sgt i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = tail call i32 @mpz_set(i32 %0, i32 undef)
br label %64
62: ; preds = %57
%63 = tail call i32 @mpz_add(i32 %0, i32 undef, i32 %2)
br label %64
64: ; preds = %62, %60
%65 = tail call i32 @mpz_clear(i32 undef)
%66 = tail call i32 @mpz_clear(i32 undef)
%67 = tail call i32 @mpz_clear(i32 undef)
%68 = tail call i32 @mpz_clear(i32 undef)
%69 = tail call i32 @mpz_clear(i32 undef)
%70 = tail call i32 @mpz_clear(i32 undef)
%71 = tail call i32 @mpz_clear(i32 undef)
%72 = tail call i32 @mpz_clear(i32 undef)
%73 = tail call i32 @mpz_clear(i32 undef)
%74 = tail call i32 @mpz_clear(i32 undef)
%75 = tail call i32 @mpz_clear(i32 undef)
%76 = tail call i32 @mpz_clear(i32 undef)
%77 = tail call i32 @mpz_clear(i32 undef)
ret void
}