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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int celcon_copy_target_quaddobl_solution_to_container(int, int);
int celcon_mixed_volume(int, int *);
int celcon_quaddobl_polyhedral_homotopy();
int celcon_quaddobl_random_coefficient_system();
int celcon_solve_quaddobl_start_system(int, int *);
int celcon_track_quaddobl_solution_path(int, int, int /*<<< orphan*/);
int celcon_write_quaddobl_random_coefficient_system();
int /*<<< orphan*/ printf(char *, ...);
int solcon_write_quaddobl_solutions();
void solve_quaddobl_start_system(int len) {
  int fail, nb, tnb, k, tmv, mv, i;
  printf("solving a random coefficient system with quad doubles ...\n");
  fail = celcon_quaddobl_random_coefficient_system();
  fail = celcon_quaddobl_polyhedral_homotopy();
  printf("solving the binomial start systems ...\n");
  tnb = 0;
  tmv = 0;
  for (k = 1; k <= len; k++) {
    fail = celcon_solve_quaddobl_start_system(k, &nb);
    printf(" -> found %d start solutions from cell %d\n", nb, k);
    fail = celcon_mixed_volume(k, &mv);
    if (nb == mv)
      printf("#start solutions equals mixed volume %d, OK\n", mv);
    else
      printf("#start solutions does not equal mixed volume %d!!!\n", mv);
    tnb += nb;
    tmv += mv;
  }
  if (tnb == tmv)
    printf("Total #start solutions : %d = %d mixed volume, OK.\n", tnb, tmv);
  else
    printf("Total #start solutions : %d /= %d mixed volume!!!\n", tnb, tmv);
  printf("tracking the solution paths ...\n");
  for (k = 1; k <= len; k++) {
    fail = celcon_mixed_volume(k, &mv);
    for (i = 1; i <= mv; i++) {
      printf("Tracking path %d corresponding to cell %d ...\n", i, k);
      fail = celcon_track_quaddobl_solution_path(k, i, 0);
    }
  }
  printf("copying the target solutions to the solution container ...\n");
  for (k = 1; k <= len; k++) {
    fail = celcon_mixed_volume(k, &mv);
    for (i = 1; i <= mv; i++)
      fail = celcon_copy_target_quaddobl_solution_to_container(k, i);
  }
  printf("writing random coefficient system and its solutions to file ...\n");
  fail = celcon_write_quaddobl_random_coefficient_system();
  fail = solcon_write_quaddobl_solutions();
}


x86 assembly (clang, -O0):
<solve_quaddobl_start_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <celcon_quaddobl_random_coefficient_system@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <celcon_quaddobl_polyhedral_homotopy@plt>
mov    %eax,-0x8(%rbp)
lea    0xe77(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     1271 <solve_quaddobl_start_system+0xe1>
mov    -0x14(%rbp),%edi
lea    -0xc(%rbp),%rsi
call   1030 <celcon_solve_quaddobl_start_system@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%edi
lea    -0x1c(%rbp),%rsi
call   1080 <celcon_mixed_volume@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jne    1240 <solve_quaddobl_start_system+0xb0>
mov    -0x1c(%rbp),%esi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    1251 <solve_quaddobl_start_system+0xc1>
mov    -0x1c(%rbp),%esi
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11e0 <solve_quaddobl_start_system+0x50>
mov    -0x10(%rbp),%eax
cmp    -0x18(%rbp),%eax
jne    1296 <solve_quaddobl_start_system+0x106>
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    12aa <solve_quaddobl_start_system+0x11a>
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     1332 <solve_quaddobl_start_system+0x1a2>
mov    -0x14(%rbp),%edi
lea    -0x1c(%rbp),%rsi
call   1080 <celcon_mixed_volume@plt>
mov    %eax,-0x8(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     131f <solve_quaddobl_start_system+0x18f>
mov    -0x20(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%esi
xor    %edx,%edx
call   1060 <celcon_track_quaddobl_solution_path@plt>
mov    %eax,-0x8(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12e1 <solve_quaddobl_start_system+0x151>
jmp    1324 <solve_quaddobl_start_system+0x194>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12bf <solve_quaddobl_start_system+0x12f>
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     13a4 <solve_quaddobl_start_system+0x214>
mov    -0x14(%rbp),%edi
lea    -0x1c(%rbp),%rsi
call   1080 <celcon_mixed_volume@plt>
mov    %eax,-0x8(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     1391 <solve_quaddobl_start_system+0x201>
mov    -0x14(%rbp),%edi
mov    -0x20(%rbp),%esi
call   10b0 <celcon_copy_target_quaddobl_solution_to_container@plt>
mov    %eax,-0x8(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1369 <solve_quaddobl_start_system+0x1d9>
jmp    1396 <solve_quaddobl_start_system+0x206>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1347 <solve_quaddobl_start_system+0x1b7>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   1090 <celcon_write_quaddobl_random_coefficient_system@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <solcon_write_quaddobl_solutions@plt>
mov    %eax,-0x8(%rbp)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solve_quaddobl_start_system>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%r14d
lea    0xf6d(%rip),%rdi
call   1050 <puts@plt>
xor    %r12d,%r12d
xor    %eax,%eax
call   10b0 <celcon_quaddobl_random_coefficient_system@plt>
xor    %eax,%eax
call   1060 <celcon_quaddobl_polyhedral_homotopy@plt>
lea    0xf8a(%rip),%rdi
call   1050 <puts@plt>
test   %r14d,%r14d
jle    126c <solve_quaddobl_start_system+0xcc>
mov    %r14d,%r13d
neg    %r13d
mov    $0x1,%ebp
mov    %rsp,%r15
xor    %ebx,%ebx
xor    %r12d,%r12d
jmp    1229 <solve_quaddobl_start_system+0x89>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xe51(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
add    0x4(%rsp),%r12d
add    (%rsp),%ebx
lea    0x1(%r13,%rbp,1),%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
je     1267 <solve_quaddobl_start_system+0xc7>
mov    %ebp,%edi
lea    0x4(%rsp),%rsi
call   1030 <celcon_solve_quaddobl_start_system@plt>
mov    0x4(%rsp),%esi
lea    0xdc0(%rip),%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %r15,%rsi
call   1090 <celcon_mixed_volume@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%eax
cmp    %eax,%esi
jne    1200 <solve_quaddobl_start_system+0x60>
lea    0xdc6(%rip),%rdi
jmp    1209 <solve_quaddobl_start_system+0x69>
cmp    %ebx,%r12d
jne    127b <solve_quaddobl_start_system+0xdb>
lea    0xe19(%rip),%rdi
mov    %r12d,%esi
mov    %r12d,%edx
jmp    1287 <solve_quaddobl_start_system+0xe7>
lea    0xe3e(%rip),%rdi
mov    %r12d,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xeee(%rip),%rdi
call   1050 <puts@plt>
test   %r14d,%r14d
jle    1353 <solve_quaddobl_start_system+0x1b3>
mov    $0x1,%ebp
mov    %rsp,%r15
lea    0xe41(%rip),%r12
jmp    12ca <solve_quaddobl_start_system+0x12a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x1(%rbp),%eax
cmp    %r14d,%ebp
mov    %eax,%ebp
je     1303 <solve_quaddobl_start_system+0x163>
mov    %ebp,%edi
mov    %r15,%rsi
call   1090 <celcon_mixed_volume@plt>
cmpl   $0x0,(%rsp)
jle    12c0 <solve_quaddobl_start_system+0x120>
xor    %ebx,%ebx
nopl   0x0(%rax)
add    $0x1,%ebx
mov    %r12,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebp,%edi
mov    %ebx,%esi
xor    %edx,%edx
call   1070 <celcon_track_quaddobl_solution_path@plt>
cmp    (%rsp),%ebx
jl     12e0 <solve_quaddobl_start_system+0x140>
jmp    12c0 <solve_quaddobl_start_system+0x120>
lea    0xe99(%rip),%rdi
call   1050 <puts@plt>
test   %r14d,%r14d
jle    135f <solve_quaddobl_start_system+0x1bf>
mov    $0x1,%ebp
mov    %rsp,%r15
jmp    132a <solve_quaddobl_start_system+0x18a>
xchg   %ax,%ax
lea    0x1(%rbp),%eax
cmp    %r14d,%ebp
mov    %eax,%ebp
je     135f <solve_quaddobl_start_system+0x1bf>
mov    %ebp,%edi
mov    %r15,%rsi
call   1090 <celcon_mixed_volume@plt>
cmpl   $0x0,(%rsp)
jle    1320 <solve_quaddobl_start_system+0x180>
xor    %ebx,%ebx
nopl   0x0(%rax)
add    $0x1,%ebx
mov    %ebp,%edi
mov    %ebx,%esi
call   10c0 <celcon_copy_target_quaddobl_solution_to_container@plt>
cmp    (%rsp),%ebx
jl     1340 <solve_quaddobl_start_system+0x1a0>
jmp    1320 <solve_quaddobl_start_system+0x180>
lea    0xe49(%rip),%rdi
call   1050 <puts@plt>
lea    0xe78(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
call   10a0 <celcon_write_quaddobl_random_coefficient_system@plt>
xor    %eax,%eax
call   1040 <solcon_write_quaddobl_solutions@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [59 x i8] c"solving a random coefficient system with quad doubles ...\0A\00"
@.str.1 = [40 x i8] c"solving the binomial start systems ...\0A\00"
@.str.2 = [43 x i8] c" -> found %d start solutions from cell %d\0A\00"
@.str.3 = [45 x i8] c"#start solutions equals mixed volume %d, OK\0A\00"
@.str.4 = [52 x i8] c"#start solutions does not equal mixed volume %d!!!\0A\00"
@.str.5 = [52 x i8] c"Total #start solutions : %d = %d mixed volume, OK.\0A\00"
@.str.6 = [51 x i8] c"Total #start solutions : %d /= %d mixed volume!!!\0A\00"
@.str.7 = [33 x i8] c"tracking the solution paths ...\0A\00"
@.str.8 = [47 x i8] c"Tracking path %d corresponding to cell %d ...\0A\00"
@.str.9 = [60 x i8] c"copying the target solutions to the solution container ...\0A\00"
@.str.10 = [65 x i8] c"writing random coefficient system and its solutions to file ...\0A\00"
define void @solve_quaddobl_start_system(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (...) @celcon_quaddobl_random_coefficient_system()
store i32 %11, i32* %3
%12 = call i32 (...) @celcon_quaddobl_polyhedral_homotopy()
store i32 %12, i32* %3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %5
store i32 0, i32* %7
store i32 1, i32* %6
br label %14
14: ; preds = %42, %1
%15 = load i32, i32* %6
%16 = load i32, i32* %2
%17 = icmp sle i32 %15, %16
br i1 %17, label %18, label %45
18: ; preds = %14
%19 = load i32, i32* %6
%20 = call i32 @celcon_solve_quaddobl_start_system(i32 %19, i32* %4)
store i32 %20, i32* %3
%21 = load i32, i32* %4
%22 = load i32, i32* %6
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %21, i32 %22)
%24 = load i32, i32* %6
%25 = call i32 @celcon_mixed_volume(i32 %24, i32* %8)
store i32 %25, i32* %3
%26 = load i32, i32* %4
%27 = load i32, i32* %8
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %32
29: ; preds = %18
%30 = load i32, i32* %8
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i32 %30)
br label %35
32: ; preds = %18
%33 = load i32, i32* %8
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i32 %33)
br label %35
35: ; preds = %32, %29
%36 = load i32, i32* %4
%37 = load i32, i32* %5
%38 = add nsw i32 %37, %36
store i32 %38, i32* %5
%39 = load i32, i32* %8
%40 = load i32, i32* %7
%41 = add nsw i32 %40, %39
store i32 %41, i32* %7
br label %42
42: ; preds = %35
%43 = load i32, i32* %6
%44 = add nsw i32 %43, 1
store i32 %44, i32* %6
br label %14
45: ; preds = %14
%46 = load i32, i32* %5
%47 = load i32, i32* %7
%48 = icmp eq i32 %46, %47
br i1 %48, label %49, label %53
49: ; preds = %45
%50 = load i32, i32* %5
%51 = load i32, i32* %7
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0), i32 %50, i32 %51)
br label %57
53: ; preds = %45
%54 = load i32, i32* %5
%55 = load i32, i32* %7
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i32 %54, i32 %55)
br label %57
57: ; preds = %53, %49
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %6
br label %59
59: ; preds = %81, %57
%60 = load i32, i32* %6
%61 = load i32, i32* %2
%62 = icmp sle i32 %60, %61
br i1 %62, label %63, label %84
63: ; preds = %59
%64 = load i32, i32* %6
%65 = call i32 @celcon_mixed_volume(i32 %64, i32* %8)
store i32 %65, i32* %3
store i32 1, i32* %9
br label %66
66: ; preds = %77, %63
%67 = load i32, i32* %9
%68 = load i32, i32* %8
%69 = icmp sle i32 %67, %68
br i1 %69, label %70, label %80
70: ; preds = %66
%71 = load i32, i32* %9
%72 = load i32, i32* %6
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i32 %71, i32 %72)
%74 = load i32, i32* %6
%75 = load i32, i32* %9
%76 = call i32 @celcon_track_quaddobl_solution_path(i32 %74, i32 %75, i32 0)
store i32 %76, i32* %3
br label %77
77: ; preds = %70
%78 = load i32, i32* %9
%79 = add nsw i32 %78, 1
store i32 %79, i32* %9
br label %66
80: ; preds = %66
br label %81
81: ; preds = %80
%82 = load i32, i32* %6
%83 = add nsw i32 %82, 1
store i32 %83, i32* %6
br label %59
84: ; preds = %59
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %6
br label %86
86: ; preds = %105, %84
%87 = load i32, i32* %6
%88 = load i32, i32* %2
%89 = icmp sle i32 %87, %88
br i1 %89, label %90, label %108
90: ; preds = %86
%91 = load i32, i32* %6
%92 = call i32 @celcon_mixed_volume(i32 %91, i32* %8)
store i32 %92, i32* %3
store i32 1, i32* %9
br label %93
93: ; preds = %101, %90
%94 = load i32, i32* %9
%95 = load i32, i32* %8
%96 = icmp sle i32 %94, %95
br i1 %96, label %97, label %104
97: ; preds = %93
%98 = load i32, i32* %6
%99 = load i32, i32* %9
%100 = call i32 @celcon_copy_target_quaddobl_solution_to_container(i32 %98, i32 %99)
store i32 %100, i32* %3
br label %101
101: ; preds = %97
%102 = load i32, i32* %9
%103 = add nsw i32 %102, 1
store i32 %103, i32* %9
br label %93
104: ; preds = %93
br label %105
105: ; preds = %104
%106 = load i32, i32* %6
%107 = add nsw i32 %106, 1
store i32 %107, i32* %6
br label %86
108: ; preds = %86
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.10, i64 0, i64 0))
%110 = call i32 (...) @celcon_write_quaddobl_random_coefficient_system()
store i32 %110, i32* %3
%111 = call i32 (...) @solcon_write_quaddobl_solutions()
store i32 %111, i32* %3
ret void
}

LLVM IR (-O2):
@.str.2 = [43 x i8] c" -> found %d start solutions from cell %d\0A\00"
@.str.3 = [45 x i8] c"#start solutions equals mixed volume %d, OK\0A\00"
@.str.4 = [52 x i8] c"#start solutions does not equal mixed volume %d!!!\0A\00"
@.str.5 = [52 x i8] c"Total #start solutions : %d = %d mixed volume, OK.\0A\00"
@.str.6 = [51 x i8] c"Total #start solutions : %d /= %d mixed volume!!!\0A\00"
@.str.8 = [47 x i8] c"Tracking path %d corresponding to cell %d ...\0A\00"
@str = [58 x i8] c"solving a random coefficient system with quad doubles ...\00"
@str.11 = [39 x i8] c"solving the binomial start systems ...\00"
@str.12 = [32 x i8] c"tracking the solution paths ...\00"
@str.13 = [59 x i8] c"copying the target solutions to the solution container ...\00"
@str.14 = [64 x i8] c"writing random coefficient system and its solutions to file ...\00"
define void @solve_quaddobl_start_system(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %2 to i8*
%5 = bitcast i32* %3 to i8*
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 (...) @celcon_quaddobl_random_coefficient_system()
%8 = tail call i32 (...) @celcon_quaddobl_polyhedral_homotopy()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.11, i64 0, i64 0))
%10 = icmp slt i32 %0, 1
br i1 %10, label %35, label %11
11: ; preds = %1, %26
%12 = phi i32 [ %30, %26 ], [ 0, %1 ]
%13 = phi i32 [ %31, %26 ], [ 1, %1 ]
%14 = phi i32 [ %28, %26 ], [ 0, %1 ]
%15 = call i32 @celcon_solve_quaddobl_start_system(i32 %13, i32* %2)
%16 = load i32, i32* %2
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %16, i32 %13)
%18 = call i32 @celcon_mixed_volume(i32 %13, i32* %3)
%19 = load i32, i32* %2
%20 = load i32, i32* %3
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %11
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i32 %19)
br label %26
24: ; preds = %11
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.4, i64 0, i64 0), i32 %20)
br label %26
26: ; preds = %24, %22
%27 = load i32, i32* %2
%28 = add nsw i32 %27, %14
%29 = load i32, i32* %3
%30 = add nsw i32 %29, %12
%31 = add nuw i32 %13, 1
%32 = icmp eq i32 %13, %0
br i1 %32, label %33, label %11
33: ; preds = %26
%34 = icmp eq i32 %28, %30
br i1 %34, label %35, label %38
35: ; preds = %1, %33
%36 = phi i32 [ %28, %33 ], [ 0, %1 ]
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0), i32 %36, i32 %36)
br label %40
38: ; preds = %33
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i32 %28, i32 %30)
br label %40
40: ; preds = %38, %35
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.12, i64 0, i64 0))
br i1 %10, label %42, label %44
42: ; preds = %40
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.13, i64 0, i64 0))
br label %75
44: ; preds = %40, %56
%45 = phi i32 [ %57, %56 ], [ 1, %40 ]
%46 = call i32 @celcon_mixed_volume(i32 %45, i32* %3)
%47 = load i32, i32* %3
%48 = icmp slt i32 %47, 1
br i1 %48, label %56, label %49
49: ; preds = %44, %49
%50 = phi i32 [ %53, %49 ], [ 1, %44 ]
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i32 %50, i32 %45)
%52 = call i32 @celcon_track_quaddobl_solution_path(i32 %45, i32 %50, i32 0)
%53 = add nuw nsw i32 %50, 1
%54 = load i32, i32* %3
%55 = icmp slt i32 %50, %54
br i1 %55, label %49, label %56
56: ; preds = %49, %44
%57 = add nuw i32 %45, 1
%58 = icmp eq i32 %45, %0
br i1 %58, label %59, label %44
59: ; preds = %56
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.13, i64 0, i64 0))
br i1 %10, label %75, label %61
61: ; preds = %59, %72
%62 = phi i32 [ %73, %72 ], [ 1, %59 ]
%63 = call i32 @celcon_mixed_volume(i32 %62, i32* %3)
%64 = load i32, i32* %3
%65 = icmp slt i32 %64, 1
br i1 %65, label %72, label %66
66: ; preds = %61, %66
%67 = phi i32 [ %69, %66 ], [ 1, %61 ]
%68 = call i32 @celcon_copy_target_quaddobl_solution_to_container(i32 %62, i32 %67)
%69 = add nuw nsw i32 %67, 1
%70 = load i32, i32* %3
%71 = icmp slt i32 %67, %70
br i1 %71, label %66, label %72
72: ; preds = %66, %61
%73 = add nuw i32 %62, 1
%74 = icmp eq i32 %62, %0
br i1 %74, label %75, label %61
75: ; preds = %72, %42, %59
%76 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.14, i64 0, i64 0))
%77 = call i32 (...) @celcon_write_quaddobl_random_coefficient_system()
%78 = call i32 (...) @solcon_write_quaddobl_solutions()
ret void
}