#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 */
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read_poly(int *, char *);
int /*<<< orphan*/ scanf(char *, int *);
int solcon_length_standard_solution_string(int, int *);
int solcon_write_standard_solution_string(int, int, char *);
int solve_standard_system(int *, int /*<<< orphan*/, int *, char *, int, int,
                          int);
int syscon_initialize_number_of_standard_polynomials(int);
int syscon_store_standard_polynomial(int, int, int, char *);
int /*<<< orphan*/ syscon_write_standard_system();
int standard_interactive_input_output(void) {
  int n, fail, k, nc, i, rc, nrc, len, nbtasks, focusmv, vrb;
  char rocos[1024];
  char ch, p[800];
  printf("\nGive the number of polynomials in the system : ");
  scanf("%d", &n);
  fail = syscon_initialize_number_of_standard_polynomials(n);
  printf("\nReading %d polynomials, ", n);
  printf("terminate each with ; (semicolon)...\n");
  for (k = 1; k <= n; k++) {
    printf("-> polynomial %d : ", k);
    ch = getchar();
    read_poly(&nc, p);
    fail = syscon_store_standard_polynomial(nc, n, k, p);
  }
  printf("The system in the container : \n");
  syscon_write_standard_system();
  printf("\nGive the number of tasks : ");
  scanf("%d", &nbtasks);
  printf("\nFocus on polynomials (1 = yes, 0 = no) : ");
  scanf("%d", &focusmv);
  printf("\nGive the verbose level : ");
  scanf("%d", &vrb);
  fail = solve_standard_system(&rc, 0, &nrc, rocos, nbtasks, focusmv, vrb);
  printf("\nTHE ROOT COUNTS :\n");
  for (i = 0; i < nrc; i++)
    printf("%c", rocos[i]);
  printf("\nThe root count : %d\n", rc);
  printf("interactive selection of solutions... \n");
  do {
    printf("\nGive an index to a solution (-1 to exit) : ");
    scanf("%d", &k);
    if (k < 0)
      break;
    fail = solcon_length_standard_solution_string(k, &len);
    {
      char s[len];
      fail = solcon_write_standard_solution_string(k, len, s);
      printf("\nSolution %d : \n%s", k, s);
    }
  } while (k >= 0);
  return fail;
}


x86 assembly (clang, -O0):
<standard_interactive_input_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x780,%rsp
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe71(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   10c0 <scanf@plt>
mov    -0x4(%rbp),%edi
call   1070 <syscon_initialize_number_of_standard_polynomials@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     125a <standard_interactive_input_output+0xba>
mov    -0xc(%rbp),%esi
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1090 <getchar@plt>
mov    %al,-0x431(%rbp)
lea    -0x760(%rbp),%rsi
lea    -0x10(%rbp),%rdi
call   1030 <read_poly@plt>
mov    -0x10(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    -0x760(%rbp),%rcx
call   1050 <syscon_store_standard_polynomial@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11fa <standard_interactive_input_output+0x5a>
lea    0xe27(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10b0 <syscon_write_standard_system@plt>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdad(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   10c0 <scanf@plt>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xd8f(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   10c0 <scanf@plt>
lea    0xe3e(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xd71(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10c0 <scanf@plt>
lea    -0x430(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    -0x2c(%rbp),%eax
lea    -0x18(%rbp),%rdi
xor    %esi,%esi
lea    -0x1c(%rbp),%rdx
sub    $0x10,%rsp
mov    %eax,(%rsp)
call   1060 <solve_standard_system@plt>
add    $0x10,%rsp
mov    %eax,-0x8(%rbp)
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1341 <standard_interactive_input_output+0x1a1>
movslq -0x14(%rbp),%rax
movsbl -0x430(%rbp,%rax,1),%esi
ff
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    130d <standard_interactive_input_output+0x16d>
mov    -0x18(%rbp),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xcbc(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   10c0 <scanf@plt>
cmpl   $0x0,-0xc(%rbp)
jge    138d <standard_interactive_input_output+0x1ed>
jmp    1405 <standard_interactive_input_output+0x265>
mov    -0xc(%rbp),%edi
lea    -0x20(%rbp),%rsi
call   10a0 <solcon_length_standard_solution_string@plt>
mov    %eax,-0x8(%rbp)
mov    -0x20(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x768(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdx
sub    %rcx,%rdx
mov    %rdx,-0x778(%rbp)
mov    %rdx,%rsp
mov    %rax,-0x770(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1040 <solcon_write_standard_solution_string@plt>
mov    -0x778(%rbp),%rdx
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%esi
lea    0xda3(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x768(%rbp),%rax
mov    %rax,%rsp
cmpl   $0x0,-0xc(%rbp)
jge    1360 <standard_interactive_input_output+0x1c0>
mov    -0x8(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_interactive_input_output>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x748,%rsp
lea    0xe25(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xe48(%rip),%rdi
lea    -0x30(%rbp),%rsi
call   10e0 <scanf@plt>
mov    -0x30(%rbp),%edi
call   1090 <syscon_initialize_number_of_standard_polynomials@plt>
mov    -0x30(%rbp),%esi
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xf09(%rip),%rdi
call   1070 <puts@plt>
movl   $0x1,-0x2c(%rbp)
cmpl   $0x0,-0x30(%rbp)
jle    127b <standard_interactive_input_output+0xbb>
mov    $0x1,%ebx
lea    0xe1e(%rip),%r14
lea    -0x4c(%rbp),%r15
lea    -0x770(%rbp),%r12
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   10a0 <printf@plt>
xor    %eax,%eax
call   10b0 <getchar@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1030 <read_poly@plt>
mov    -0x4c(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    %ebx,%edx
mov    %r12,%rcx
call   1050 <syscon_store_standard_polynomial@plt>
lea    0x1(%rbx),%eax
mov    %eax,-0x2c(%rbp)
cmp    -0x30(%rbp),%ebx
mov    %eax,%ebx
jl     1240 <standard_interactive_input_output+0x80>
lea    0xebe(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10d0 <syscon_write_standard_system@plt>
lea    0xdcd(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xd8e(%rip),%rbx
lea    -0x44(%rbp),%rsi
mov    %rbx,%rdi
call   10e0 <scanf@plt>
lea    0xdc9(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    -0x40(%rbp),%rsi
mov    %rbx,%rdi
call   10e0 <scanf@plt>
lea    0xdda(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    -0x3c(%rbp),%rsi
mov    %rbx,%rdi
call   10e0 <scanf@plt>
mov    -0x44(%rbp),%r8d
mov    -0x40(%rbp),%r9d
mov    -0x3c(%rbp),%eax
sub    $0x8,%rsp
lea    -0x48(%rbp),%rdi
lea    -0x38(%rbp),%rdx
lea    -0x450(%rbp),%rcx
xor    %esi,%esi
push   %rax
call   1080 <solve_standard_system@plt>
add    $0x10,%rsp
mov    %eax,%r13d
lea    0xe48(%rip),%rdi
call   1070 <puts@plt>
cmpl   $0x0,-0x38(%rbp)
jle    134a <standard_interactive_input_output+0x18a>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl -0x450(%rbp,%rbx,1),%edi
ff
call   1060 <putchar@plt>
add    $0x1,%rbx
movslq -0x38(%rbp),%rax
cmp    %rax,%rbx
jl     1330 <standard_interactive_input_output+0x170>
mov    -0x48(%rbp),%esi
lea    0xd71(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xe10(%rip),%rdi
call   1070 <puts@plt>
lea    0xd6d(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
lea    0xcb5(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10e0 <scanf@plt>
mov    -0x2c(%rbp),%edi
test   %edi,%edi
js     140e <standard_interactive_input_output+0x24e>
lea    0xc9a(%rip),%rbx
lea    -0x2c(%rbp),%r14
nopl   0x0(%rax,%rax,1)
lea    -0x34(%rbp),%rsi
call   10c0 <solcon_length_standard_solution_string@plt>
mov    %rsp,%r15
mov    -0x34(%rbp),%eax
mov    %rsp,%r12
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
mov    %r12,%rdx
call   1040 <solcon_write_standard_solution_string@plt>
mov    %eax,%r13d
mov    -0x2c(%rbp),%esi
lea    0xd2d(%rip),%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   10a0 <printf@plt>
mov    %r15,%rsp
cmpl   $0x0,-0x2c(%rbp)
js     140e <standard_interactive_input_output+0x24e>
lea    0xce6(%rip),%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   10e0 <scanf@plt>
mov    -0x2c(%rbp),%edi
test   %edi,%edi
jns    13a0 <standard_interactive_input_output+0x1e0>
mov    %r13d,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"\0AGive the number of polynomials in the system : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AReading %d polynomials, \00"
@.str.3 = [38 x i8] c"terminate each with ; (semicolon)...\0A\00"
@.str.4 = [20 x i8] c"-> polynomial %d : \00"
@.str.5 = [32 x i8] c"The system in the container : \0A\00"
@.str.6 = [29 x i8] c"\0AGive the number of tasks : \00"
@.str.7 = [43 x i8] c"\0AFocus on polynomials (1 = yes, 0 = no) : \00"
@.str.8 = [27 x i8] c"\0AGive the verbose level : \00"
@.str.9 = [20 x i8] c"\0ATHE ROOT COUNTS :\0A\00"
@.str.10 = [3 x i8] c"%c\00"
@.str.11 = [22 x i8] c"\0AThe root count : %d\0A\00"
@.str.12 = [40 x i8] c"interactive selection of solutions... \0A\00"
@.str.13 = [45 x i8] c"\0AGive an index to a solution (-1 to exit) : \00"
@.str.14 = [19 x i8] c"\0ASolution %d : \0A%s\00"
define i32 @standard_interactive_input_output() {
%1 = alloca i32
%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 i32
%11 = alloca i32
%12 = alloca [1024 x i8]
%13 = alloca i8
%14 = alloca [800 x i8]
%15 = alloca i8*
%16 = alloca i64
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%19 = load i32, i32* %1
%20 = call i32 @syscon_initialize_number_of_standard_polynomials(i32 %19)
store i32 %20, i32* %2
%21 = load i32, i32* %1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %24
24: ; preds = %39, %0
%25 = load i32, i32* %3
%26 = load i32, i32* %1
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %42
28: ; preds = %24
%29 = load i32, i32* %3
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = call signext i8 (...) @getchar()
store i8 %31, i8* %13
%32 = getelementptr inbounds [800 x i8], [800 x i8]* %14, i64 0, i64 0
%33 = call i32 @read_poly(i32* %4, i8* %32)
%34 = load i32, i32* %4
%35 = load i32, i32* %1
%36 = load i32, i32* %3
%37 = getelementptr inbounds [800 x i8], [800 x i8]* %14, i64 0, i64 0
%38 = call i32 @syscon_store_standard_polynomial(i32 %34, i32 %35, i32 %36, i8* %37)
store i32 %38, i32* %2
br label %39
39: ; preds = %28
%40 = load i32, i32* %3
%41 = add nsw i32 %40, 1
store i32 %41, i32* %3
br label %24
42: ; preds = %24
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%44 = call i32 (...) @syscon_write_standard_system()
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %11)
%51 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%52 = load i32, i32* %9
%53 = load i32, i32* %10
%54 = load i32, i32* %11
%55 = call i32 @solve_standard_system(i32* %6, i32 0, i32* %7, i8* %51, i32 %52, i32 %53, i32 %54)
store i32 %55, i32* %2
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %5
br label %57
57: ; preds = %68, %42
%58 = load i32, i32* %5
%59 = load i32, i32* %7
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %71
61: ; preds = %57
%62 = load i32, i32* %5
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 %66)
br label %68
68: ; preds = %61
%69 = load i32, i32* %5
%70 = add nsw i32 %69, 1
store i32 %70, i32* %5
br label %57
71: ; preds = %57
%72 = load i32, i32* %6
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %72)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
br label %75
75: ; preds = %94, %71
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0))
%77 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%78 = load i32, i32* %3
%79 = icmp slt i32 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %75
br label %97
81: ; preds = %75
%82 = load i32, i32* %3
%83 = call i32 @solcon_length_standard_solution_string(i32 %82, i32* %8)
store i32 %83, i32* %2
%84 = load i32, i32* %8
%85 = zext i32 %84 to i64
%86 = call i8* @llvm.stacksave()
store i8* %86, i8** %15
%87 = alloca i8, i64 %85
store i64 %85, i64* %16
%88 = load i32, i32* %3
%89 = load i32, i32* %8
%90 = call i32 @solcon_write_standard_solution_string(i32 %88, i32 %89, i8* %87)
store i32 %90, i32* %2
%91 = load i32, i32* %3
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %91, i8* %87)
%93 = load i8*, i8** %15
br label %94
94: ; preds = %81
%95 = load i32, i32* %3
%96 = icmp sge i32 %95, 0
br i1 %96, label %75, label %97
97: ; preds = %94, %80
%98 = load i32, i32* %2
ret i32 %98
}

LLVM IR (-O2):
@.str = [49 x i8] c"\0AGive the number of polynomials in the system : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [26 x i8] c"\0AReading %d polynomials, \00"
@.str.4 = [20 x i8] c"-> polynomial %d : \00"
@.str.6 = [29 x i8] c"\0AGive the number of tasks : \00"
@.str.7 = [43 x i8] c"\0AFocus on polynomials (1 = yes, 0 = no) : \00"
@.str.8 = [27 x i8] c"\0AGive the verbose level : \00"
@.str.11 = [22 x i8] c"\0AThe root count : %d\0A\00"
@.str.13 = [45 x i8] c"\0AGive an index to a solution (-1 to exit) : \00"
@.str.14 = [19 x i8] c"\0ASolution %d : \0A%s\00"
@str = [37 x i8] c"terminate each with ; (semicolon)...\00"
@str.15 = [31 x i8] c"The system in the container : \00"
@str.16 = [19 x i8] c"\0ATHE ROOT COUNTS :\00"
@str.17 = [39 x i8] c"interactive selection of solutions... \00"
define i32 @standard_interactive_input_output() {
%1 = alloca i32
%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]
%11 = alloca [800 x i8]
%12 = bitcast i32* %1 to i8*
%13 = bitcast i32* %2 to i8*
%14 = bitcast i32* %3 to i8*
%15 = bitcast i32* %4 to i8*
%16 = bitcast i32* %5 to i8*
%17 = bitcast i32* %6 to i8*
%18 = bitcast i32* %7 to i8*
%19 = bitcast i32* %8 to i8*
%20 = bitcast i32* %9 to i8*
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%22 = getelementptr inbounds [800 x i8], [800 x i8]* %11, i64 0, i64 0
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%25 = load i32, i32* %1
%26 = call i32 @syscon_initialize_number_of_standard_polynomials(i32 %25)
%27 = load i32, i32* %1
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
store i32 1, i32* %2
%30 = load i32, i32* %1
%31 = icmp slt i32 %30, 1
br i1 %31, label %43, label %32
32: ; preds = %0, %32
%33 = phi i32 [ %40, %32 ], [ 1, %0 ]
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = call signext i8 (...) @getchar()
%36 = call i32 @read_poly(i32* %3, i8* %22)
%37 = load i32, i32* %3
%38 = load i32, i32* %1
%39 = call i32 @syscon_store_standard_polynomial(i32 %37, i32 %38, i32 %33, i8* %22)
%40 = add nuw nsw i32 %33, 1
store i32 %40, i32* %2
%41 = load i32, i32* %1
%42 = icmp slt i32 %33, %41
br i1 %42, label %32, label %43
43: ; preds = %32, %0
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.15, i64 0, i64 0))
%45 = call i32 (...) @syscon_write_standard_system()
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%52 = load i32, i32* %7
%53 = load i32, i32* %8
%54 = load i32, i32* %9
%55 = call i32 @solve_standard_system(i32* %4, i32 0, i32* %5, i8* %21, i32 %52, i32 %53, i32 %54)
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.16, i64 0, i64 0))
%57 = load i32, i32* %5
%58 = icmp sgt i32 %57, 0
br i1 %58, label %59, label %69
59: ; preds = %43, %59
%60 = phi i64 [ %65, %59 ], [ 0, %43 ]
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %60
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 @putchar(i32 %63)
%65 = add nuw nsw i64 %60, 1
%66 = load i32, i32* %5
%67 = sext i32 %66 to i64
%68 = icmp slt i64 %65, %67
br i1 %68, label %59, label %69
69: ; preds = %59, %43
%70 = load i32, i32* %4
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %70)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.17, i64 0, i64 0))
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0))
%74 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%75 = load i32, i32* %2
%76 = icmp slt i32 %75, 0
br i1 %76, label %96, label %82
77: ; preds = %82
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.13, i64 0, i64 0))
%79 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%80 = load i32, i32* %2
%81 = icmp slt i32 %80, 0
br i1 %81, label %96, label %82
82: ; preds = %69, %77
%83 = phi i32 [ %80, %77 ], [ %75, %69 ]
%84 = call i32 @solcon_length_standard_solution_string(i32 %83, i32* %6)
%85 = load i32, i32* %6
%86 = zext i32 %85 to i64
%87 = call i8* @llvm.stacksave()
%88 = alloca i8, i64 %86
%89 = load i32, i32* %2
%90 = load i32, i32* %6
%91 = call i32 @solcon_write_standard_solution_string(i32 %89, i32 %90, i8* %88)
%92 = load i32, i32* %2
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i32 %92, i8* %88)
%94 = load i32, i32* %2
%95 = icmp sgt i32 %94, -1
br i1 %95, label %77, label %96
96: ; preds = %82, %77, %69
%97 = phi i32 [ %55, %69 ], [ %91, %77 ], [ %91, %82 ]
ret i32 %97
}