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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int solcon_write_dobldobl_solutions();
int solcon_write_quaddobl_solutions();
int solcon_write_standard_solutions();
int solve_dobldobl_Laurent_system(int *, int /*<<< orphan*/, int *, char *, int,
                                  int);
int solve_quaddobl_Laurent_system(int *, int /*<<< orphan*/, int *, char *, int,
                                  int);
int solve_standard_Laurent_system(int *, int /*<<< orphan*/, int *, char *, int,
                                  int, int);
int syscon_read_dobldobl_Laurent_system();
int syscon_read_quaddobl_Laurent_system();
int syscon_read_standard_Laurent_system();
int syscon_write_dobldobl_Laurent_system();
int syscon_write_quaddobl_Laurent_system();
int syscon_write_standard_Laurent_system();
int Laurent_input_output_on_files(int precision) {
  int fail, rc, nrc, nbtasks, focusmv, vrb, i;
  char rocos[1024];
  if (precision == 0) {
    fail = syscon_read_standard_Laurent_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_standard_Laurent_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nFocus on mixed volumes (1 = yes, 0 = no) : ");
    scanf("%d", &focusmv);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_standard_Laurent_system(&rc, 0, &nrc, rocos, nbtasks, focusmv,
                                         vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_standard_solutions();
  } else if (precision == 1) {
    fail = syscon_read_dobldobl_Laurent_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_dobldobl_Laurent_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_dobldobl_Laurent_system(&rc, 0, &nrc, rocos, nbtasks, vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_dobldobl_solutions();
  } else if (precision == 2) {
    fail = syscon_read_quaddobl_Laurent_system();
    printf("\nThe system in the container : \n");
    fail = syscon_write_quaddobl_Laurent_system();
    printf("\nGive the number of tasks : ");
    scanf("%d", &nbtasks);
    printf("\nGive the verbose level : ");
    scanf("%d", &vrb);
    fail = solve_quaddobl_Laurent_system(&rc, 0, &nrc, rocos, nbtasks, vrb);
    printf("\nROOT COUNTS :\n");
    for (i = 0; i < nrc; i++)
      printf("%c", rocos[i]);
    printf("\nThe root count : %d\n", rc);
    printf("\nThe solutions :\n");
    fail = solcon_write_quaddobl_solutions();
  }
  return fail;
}


x86 assembly (clang, -O0):
<Laurent_input_output_on_files>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1312 <Laurent_input_output_on_files+0x132>
mov    $0x0,%al
call   1090 <syscon_read_standard_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10f0 <syscon_write_standard_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe0f(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf1(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdd3(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   10b0 <scanf@plt>
lea    -0x420(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
mov    -0x1c(%rbp),%eax
lea    -0xc(%rbp),%rdi
xor    %esi,%esi
lea    -0x10(%rbp),%rdx
mov    %eax,(%rsp)
call   10c0 <solve_standard_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12e4 <Laurent_input_output_on_files+0x104>
movslq -0x20(%rbp),%rax
movsbl -0x420(%rbp,%rax,1),%esi
ff
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12b0 <Laurent_input_output_on_files+0xd0>
mov    -0xc(%rbp),%esi
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <solcon_write_standard_solutions@plt>
mov    %eax,-0x8(%rbp)
jmp    1517 <Laurent_input_output_on_files+0x337>
cmpl   $0x1,-0x4(%rbp)
jne    1412 <Laurent_input_output_on_files+0x232>
mov    $0x0,%al
call   1080 <syscon_read_dobldobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <syscon_write_dobldobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xcdc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xceb(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xccd(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   10b0 <scanf@plt>
lea    -0x420(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
lea    -0xc(%rbp),%rdi
xor    %esi,%esi
lea    -0x10(%rbp),%rdx
call   1100 <solve_dobldobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    13e4 <Laurent_input_output_on_files+0x204>
movslq -0x20(%rbp),%rax
movsbl -0x420(%rbp,%rax,1),%esi
ff
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13b0 <Laurent_input_output_on_files+0x1d0>
mov    -0xc(%rbp),%esi
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <solcon_write_dobldobl_solutions@plt>
mov    %eax,-0x8(%rbp)
jmp    1512 <Laurent_input_output_on_files+0x332>
cmpl   $0x2,-0x4(%rbp)
jne    150d <Laurent_input_output_on_files+0x32d>
mov    $0x0,%al
call   10a0 <syscon_read_quaddobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xbd3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10d0 <syscon_write_quaddobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xbdc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xbeb(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   10b0 <scanf@plt>
lea    0xc0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xbcd(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   10b0 <scanf@plt>
lea    -0x420(%rbp),%rcx
mov    -0x14(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
lea    -0xc(%rbp),%rdi
xor    %esi,%esi
lea    -0x10(%rbp),%rdx
call   10e0 <solve_quaddobl_Laurent_system@plt>
mov    %eax,-0x8(%rbp)
lea    0xbe7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    14e4 <Laurent_input_output_on_files+0x304>
movslq -0x20(%rbp),%rax
movsbl -0x420(%rbp,%rax,1),%esi
ff
lea    0xbca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    14b0 <Laurent_input_output_on_files+0x2d0>
mov    -0xc(%rbp),%esi
lea    0xbae(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xbb6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <solcon_write_quaddobl_solutions@plt>
mov    %eax,-0x8(%rbp)
jmp    1512 <Laurent_input_output_on_files+0x332>
jmp    1517 <Laurent_input_output_on_files+0x337>
mov    -0x8(%rbp),%eax
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Laurent_input_output_on_files>:
push   %rbx
sub    $0x420,%rsp
cmp    $0x2,%edi
je     1312 <Laurent_input_output_on_files+0x112>
cmp    $0x1,%edi
je     13e2 <Laurent_input_output_on_files+0x1e2>
test   %edi,%edi
jne    14ad <Laurent_input_output_on_files+0x2ad>
xor    %eax,%eax
call   10b0 <syscon_read_standard_Laurent_system@plt>
lea    0xe4e(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1110 <syscon_write_standard_Laurent_system@plt>
lea    0xdbd(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xdcc(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
lea    0xdbb(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
lea    0xdcd(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
mov    0x14(%rsp),%r8d
mov    0x1c(%rsp),%r9d
mov    0x10(%rsp),%eax
mov    %eax,(%rsp)
lea    0x18(%rsp),%rdi
lea    0xc(%rsp),%rdx
lea    0x20(%rsp),%rcx
xor    %esi,%esi
call   10e0 <solve_standard_Laurent_system@plt>
lea    0xddc(%rip),%rdi
call   1060 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    12e8 <Laurent_input_output_on_files+0xe8>
xor    %ebx,%ebx
movsbl 0x20(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     12d0 <Laurent_input_output_on_files+0xd0>
mov    0x18(%rsp),%esi
lea    0xd75(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xdac(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1090 <solcon_write_standard_solutions@plt>
jmp    14ad <Laurent_input_output_on_files+0x2ad>
xor    %eax,%eax
call   10c0 <syscon_read_quaddobl_Laurent_system@plt>
lea    0xd5e(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10f0 <syscon_write_quaddobl_Laurent_system@plt>
lea    0xccd(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xcdc(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
mov    0x14(%rsp),%r8d
mov    0x10(%rsp),%r9d
lea    0x18(%rsp),%rdi
lea    0xc(%rsp),%rdx
lea    0x20(%rsp),%rcx
xor    %esi,%esi
call   1100 <solve_quaddobl_Laurent_system@plt>
lea    0xd0e(%rip),%rdi
call   1060 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    13b8 <Laurent_input_output_on_files+0x1b8>
xor    %ebx,%ebx
xchg   %ax,%ax
movsbl 0x20(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     13a0 <Laurent_input_output_on_files+0x1a0>
mov    0x18(%rsp),%esi
lea    0xca5(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xcdc(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1050 <solcon_write_quaddobl_solutions@plt>
jmp    14ad <Laurent_input_output_on_files+0x2ad>
xor    %eax,%eax
call   10a0 <syscon_read_dobldobl_Laurent_system@plt>
lea    0xc8e(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1040 <syscon_write_dobldobl_Laurent_system@plt>
lea    0xbfd(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc0c(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
lea    0xc28(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   10d0 <scanf@plt>
mov    0x14(%rsp),%r8d
mov    0x10(%rsp),%r9d
lea    0x18(%rsp),%rdi
lea    0xc(%rsp),%rdx
lea    0x20(%rsp),%rcx
xor    %esi,%esi
call   1120 <solve_dobldobl_Laurent_system@plt>
lea    0xc3e(%rip),%rdi
call   1060 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    1488 <Laurent_input_output_on_files+0x288>
xor    %ebx,%ebx
xchg   %ax,%ax
movsbl 0x20(%rsp,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1470 <Laurent_input_output_on_files+0x270>
mov    0x18(%rsp),%esi
lea    0xbd5(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xc0c(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1080 <solcon_write_dobldobl_solutions@plt>
add    $0x420,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0AThe system in the container : \0A\00"
@.str.1 = [29 x i8] c"\0AGive the number of tasks : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [45 x i8] c"\0AFocus on mixed volumes (1 = yes, 0 = no) : \00"
@.str.4 = [27 x i8] c"\0AGive the verbose level : \00"
@.str.5 = [16 x i8] c"\0AROOT COUNTS :\0A\00"
@.str.6 = [3 x i8] c"%c\00"
@.str.7 = [22 x i8] c"\0AThe root count : %d\0A\00"
@.str.8 = [18 x i8] c"\0AThe solutions :\0A\00"
define i32 @Laurent_input_output_on_files(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
%10 = alloca [1024 x i8]
store i32 %0, i32* %2
%11 = load i32, i32* %2
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %48
13: ; preds = %1
%14 = call i32 (...) @syscon_read_standard_Laurent_system()
store i32 %14, i32* %3
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (...) @syscon_write_standard_Laurent_system()
store i32 %16, i32* %3
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%24 = load i32, i32* %6
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = call i32 @solve_standard_Laurent_system(i32* %4, i32 0, i32* %5, i8* %23, i32 %24, i32 %25, i32 %26)
store i32 %27, i32* %3
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %9
br label %29
29: ; preds = %40, %13
%30 = load i32, i32* %9
%31 = load i32, i32* %5
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %43
33: ; preds = %29
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %35
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %33
%41 = load i32, i32* %9
%42 = add nsw i32 %41, 1
store i32 %42, i32* %9
br label %29
43: ; preds = %29
%44 = load i32, i32* %4
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%47 = call i32 (...) @solcon_write_standard_solutions()
store i32 %47, i32* %3
br label %120
48: ; preds = %1
%49 = load i32, i32* %2
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %83
51: ; preds = %48
%52 = call i32 (...) @syscon_read_dobldobl_Laurent_system()
store i32 %52, i32* %3
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%54 = call i32 (...) @syscon_write_dobldobl_Laurent_system()
store i32 %54, i32* %3
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%56 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%59 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%60 = load i32, i32* %6
%61 = load i32, i32* %8
%62 = call i32 @solve_dobldobl_Laurent_system(i32* %4, i32 0, i32* %5, i8* %59, i32 %60, i32 %61)
store i32 %62, i32* %3
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %9
br label %64
64: ; preds = %75, %51
%65 = load i32, i32* %9
%66 = load i32, i32* %5
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %78
68: ; preds = %64
%69 = load i32, i32* %9
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %73)
br label %75
75: ; preds = %68
%76 = load i32, i32* %9
%77 = add nsw i32 %76, 1
store i32 %77, i32* %9
br label %64
78: ; preds = %64
%79 = load i32, i32* %4
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%82 = call i32 (...) @solcon_write_dobldobl_solutions()
store i32 %82, i32* %3
br label %119
83: ; preds = %48
%84 = load i32, i32* %2
%85 = icmp eq i32 %84, 2
br i1 %85, label %86, label %118
86: ; preds = %83
%87 = call i32 (...) @syscon_read_quaddobl_Laurent_system()
store i32 %87, i32* %3
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%89 = call i32 (...) @syscon_write_quaddobl_Laurent_system()
store i32 %89, i32* %3
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%91 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%93 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%94 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%95 = load i32, i32* %6
%96 = load i32, i32* %8
%97 = call i32 @solve_quaddobl_Laurent_system(i32* %4, i32 0, i32* %5, i8* %94, i32 %95, i32 %96)
store i32 %97, i32* %3
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %9
br label %99
99: ; preds = %110, %86
%100 = load i32, i32* %9
%101 = load i32, i32* %5
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %113
103: ; preds = %99
%104 = load i32, i32* %9
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %108)
br label %110
110: ; preds = %103
%111 = load i32, i32* %9
%112 = add nsw i32 %111, 1
store i32 %112, i32* %9
br label %99
113: ; preds = %99
%114 = load i32, i32* %4
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %114)
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0))
%117 = call i32 (...) @solcon_write_quaddobl_solutions()
store i32 %117, i32* %3
br label %118
118: ; preds = %113, %83
br label %119
119: ; preds = %118, %78
br label %120
120: ; preds = %119, %43
%121 = load i32, i32* %3
ret i32 %121
}

LLVM IR (-O2):
@.str.1 = [29 x i8] c"\0AGive the number of tasks : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [45 x i8] c"\0AFocus on mixed volumes (1 = yes, 0 = no) : \00"
@.str.4 = [27 x i8] c"\0AGive the verbose level : \00"
@.str.7 = [22 x i8] c"\0AThe root count : %d\0A\00"
@str.14 = [32 x i8] c"\0AThe system in the container : \00"
@str.15 = [15 x i8] c"\0AROOT COUNTS :\00"
@str.16 = [17 x i8] c"\0AThe solutions :\00"
define i32 @Laurent_input_output_on_files(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [1024 x i8]
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
switch i32 %0, label %104 [
i32 0, label %14
i32 1, label %46
i32 2, label %75
]
14: ; preds = %1
%15 = tail call i32 (...) @syscon_read_standard_Laurent_system()
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%17 = tail call i32 (...) @syscon_write_standard_Laurent_system()
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%24 = load i32, i32* %4
%25 = load i32, i32* %5
%26 = load i32, i32* %6
%27 = call i32 @solve_standard_Laurent_system(i32* %2, i32 0, i32* %3, i8* %13, i32 %24, i32 %25, i32 %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.15, i64 0, i64 0))
%29 = load i32, i32* %3
%30 = icmp sgt i32 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %14, %31
%32 = phi i64 [ %37, %31 ], [ 0, %14 ]
%33 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %32
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = call i32 @putchar(i32 %35)
%37 = add nuw nsw i64 %32, 1
%38 = load i32, i32* %3
%39 = sext i32 %38 to i64
%40 = icmp slt i64 %37, %39
br i1 %40, label %31, label %41
41: ; preds = %31, %14
%42 = load i32, i32* %2
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %42)
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%45 = call i32 (...) @solcon_write_standard_solutions()
br label %104
46: ; preds = %1
%47 = tail call i32 (...) @syscon_read_dobldobl_Laurent_system()
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%49 = tail call i32 (...) @syscon_write_dobldobl_Laurent_system()
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%53 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%54 = load i32, i32* %4
%55 = load i32, i32* %6
%56 = call i32 @solve_dobldobl_Laurent_system(i32* %2, i32 0, i32* %3, i8* %13, i32 %54, i32 %55)
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.15, i64 0, i64 0))
%58 = load i32, i32* %3
%59 = icmp sgt i32 %58, 0
br i1 %59, label %60, label %70
60: ; preds = %46, %60
%61 = phi i64 [ %66, %60 ], [ 0, %46 ]
%62 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = call i32 @putchar(i32 %64)
%66 = add nuw nsw i64 %61, 1
%67 = load i32, i32* %3
%68 = sext i32 %67 to i64
%69 = icmp slt i64 %66, %68
br i1 %69, label %60, label %70
70: ; preds = %60, %46
%71 = load i32, i32* %2
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %71)
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%74 = call i32 (...) @solcon_write_dobldobl_solutions()
br label %104
75: ; preds = %1
%76 = tail call i32 (...) @syscon_read_quaddobl_Laurent_system()
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.14, i64 0, i64 0))
%78 = tail call i32 (...) @syscon_write_quaddobl_Laurent_system()
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %4)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%82 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%83 = load i32, i32* %4
%84 = load i32, i32* %6
%85 = call i32 @solve_quaddobl_Laurent_system(i32* %2, i32 0, i32* %3, i8* %13, i32 %83, i32 %84)
%86 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.15, i64 0, i64 0))
%87 = load i32, i32* %3
%88 = icmp sgt i32 %87, 0
br i1 %88, label %89, label %99
89: ; preds = %75, %89
%90 = phi i64 [ %95, %89 ], [ 0, %75 ]
%91 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = call i32 @putchar(i32 %93)
%95 = add nuw nsw i64 %90, 1
%96 = load i32, i32* %3
%97 = sext i32 %96 to i64
%98 = icmp slt i64 %95, %97
br i1 %98, label %89, label %99
99: ; preds = %89, %75
%100 = load i32, i32* %2
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %100)
%102 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.16, i64 0, i64 0))
%103 = call i32 (...) @solcon_write_quaddobl_solutions()
br label %104
104: ; preds = %1, %70, %99, %41
%105 = phi i32 [ %45, %41 ], [ %74, %70 ], [ %103, %99 ], [ undef, %1 ]
ret i32 %105
}