#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 define_output_file();
int determine_output_during_continuation();
int /*<<< orphan*/ printf(char *);
int read_standard_start_Laurent_system();
int read_standard_target_Laurent_system();
int /*<<< orphan*/ scanf(char *, int *);
int solve_by_standard_Laurent_homotopy_continuation(int);
int tune_continuation_parameters();
int write_standard_start_Laurent_system();
int write_standard_target_Laurent_system();
int write_start_solutions();
int write_target_solutions();
int run_standard_Laurent_continuation(void) {
  int fail, nbtasks;
  printf("\nCalling the standard path trackers in PHCpack...\n");
  fail = read_standard_target_Laurent_system();
  fail = read_standard_start_Laurent_system();
  fail = define_output_file();
  fail = write_standard_target_Laurent_system();
  fail = write_standard_start_Laurent_system();
  fail = write_start_solutions();
  printf("\n");
  fail = tune_continuation_parameters();
  printf("\n");
  fail = determine_output_during_continuation();
  printf("\nGive the number of tasks (0 for no multitasking ) : ");
  scanf("%d", &nbtasks);
  printf("\nSee the output file for results ...\n");
  fail = solve_by_standard_Laurent_homotopy_continuation(nbtasks);
  fail = write_target_solutions();
  return fail;
}


x86 assembly (clang, -O0):
<run_standard_Laurent_continuation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe31(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10b0 <read_standard_target_Laurent_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1090 <read_standard_start_Laurent_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <define_output_file@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10d0 <write_standard_target_Laurent_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <write_standard_start_Laurent_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <write_start_solutions@plt>
mov    %eax,-0x4(%rbp)
lea    0xe79(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <tune_continuation_parameters@plt>
mov    %eax,-0x4(%rbp)
lea    0xe63(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <determine_output_during_continuation@plt>
mov    %eax,-0x4(%rbp)
lea    0xdf0(%rip),%rdi
call   1050 <printf@plt>
lea    0xe1a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   10c0 <scanf@plt>
lea    0xe0d(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
call   1040 <solve_by_standard_Laurent_homotopy_continuation@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10e0 <write_target_solutions@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_standard_Laurent_continuation>:
push   %rax
lea    0xe51(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   10d0 <read_standard_target_Laurent_system@plt>
xor    %eax,%eax
call   10b0 <read_standard_start_Laurent_system@plt>
xor    %eax,%eax
call   1080 <define_output_file@plt>
xor    %eax,%eax
call   10f0 <write_standard_target_Laurent_system@plt>
xor    %eax,%eax
call   1090 <write_standard_start_Laurent_system@plt>
xor    %eax,%eax
call   10a0 <write_start_solutions@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <tune_continuation_parameters@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   10c0 <determine_output_during_continuation@plt>
lea    0xdc0(%rip),%rdi
call   1070 <printf@plt>
lea    0xdea(%rip),%rdi
lea    0x4(%rsp),%rsi
call   10e0 <scanf@plt>
lea    0xe0e(%rip),%rdi
call   1060 <puts@plt>
mov    0x4(%rsp),%edi
call   1050 <solve_by_standard_Laurent_homotopy_continuation@plt>
xor    %eax,%eax
call   1100 <write_target_solutions@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [51 x i8] c"\0ACalling the standard path trackers in PHCpack...\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [54 x i8] c"\0AGive the number of tasks (0 for no multitasking ) : \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [38 x i8] c"\0ASee the output file for results ...\0A\00"
define i32 @run_standard_Laurent_continuation() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @read_standard_target_Laurent_system()
store i32 %4, i32* %1
%5 = call i32 (...) @read_standard_start_Laurent_system()
store i32 %5, i32* %1
%6 = call i32 (...) @define_output_file()
store i32 %6, i32* %1
%7 = call i32 (...) @write_standard_target_Laurent_system()
store i32 %7, i32* %1
%8 = call i32 (...) @write_standard_start_Laurent_system()
store i32 %8, i32* %1
%9 = call i32 (...) @write_start_solutions()
store i32 %9, i32* %1
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 (...) @tune_continuation_parameters()
store i32 %11, i32* %1
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 (...) @determine_output_during_continuation()
store i32 %13, i32* %1
%14 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%16 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%17 = load i32, i32* %2
%18 = call i32 @solve_by_standard_Laurent_homotopy_continuation(i32 %17)
store i32 %18, i32* %1
%19 = call i32 (...) @write_target_solutions()
store i32 %19, i32* %1
%20 = load i32, i32* %1
ret i32 %20
}

LLVM IR (-O2):
@.str.2 = [54 x i8] c"\0AGive the number of tasks (0 for no multitasking ) : \00"
@.str.3 = [3 x i8] c"%d\00"
@str = [50 x i8] c"\0ACalling the standard path trackers in PHCpack...\00"
@str.5 = [37 x i8] c"\0ASee the output file for results ...\00"
define i32 @run_standard_Laurent_continuation() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @read_standard_target_Laurent_system()
%5 = tail call i32 (...) @read_standard_start_Laurent_system()
%6 = tail call i32 (...) @define_output_file()
%7 = tail call i32 (...) @write_standard_target_Laurent_system()
%8 = tail call i32 (...) @write_standard_start_Laurent_system()
%9 = tail call i32 (...) @write_start_solutions()
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 (...) @tune_continuation_parameters()
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 (...) @determine_output_during_continuation()
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.5, i64 0, i64 0))
%17 = load i32, i32* %1
%18 = call i32 @solve_by_standard_Laurent_homotopy_continuation(i32 %17)
%19 = call i32 (...) @write_target_solutions()
ret i32 %19
}