#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 solcon_write_standard_solutions();
int standard_Newton_Laurent_step();
int standard_Newton_step();
int standard_sample_to_new_slices();
int standard_witness_set_to_Laurent_system_container();
int standard_witness_set_to_system_container();
int swap_standard_slices();
int standard_track_paths(int islaurent) {
  int fail;
  fail = standard_sample_to_new_slices();
  if (0 > 0)
    printf("Done tracking.\n");
  if (0 > 1)
    printf("Solutions computed :\n");
  if (0 > 1)
    fail = solcon_write_standard_solutions();
  fail = swap_standard_slices();
  if (islaurent == 1) {
    fail = standard_witness_set_to_Laurent_system_container();
    fail = standard_Newton_Laurent_step();
  } else {
    fail = standard_witness_set_to_system_container();
    fail = standard_Newton_step();
  }
  return fail;
}


x86 assembly (clang, -O0):
<standard_track_paths>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1080 <standard_sample_to_new_slices@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <swap_standard_slices@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    11a2 <standard_track_paths+0x42>
mov    $0x0,%al
call   1030 <standard_witness_set_to_Laurent_system_container@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1060 <standard_Newton_Laurent_step@plt>
mov    %eax,-0x8(%rbp)
jmp    11b6 <standard_track_paths+0x56>
mov    $0x0,%al
call   1070 <standard_witness_set_to_system_container@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1040 <standard_Newton_step@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_track_paths>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1080 <standard_sample_to_new_slices@plt>
xor    %eax,%eax
call   1050 <swap_standard_slices@plt>
xor    %eax,%eax
cmp    $0x1,%ebx
jne    1185 <standard_track_paths+0x25>
call   1030 <standard_witness_set_to_Laurent_system_container@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <standard_Newton_Laurent_step@plt>
call   1070 <standard_witness_set_to_system_container@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <standard_Newton_step@plt>

LLVM IR (-O0):
define i32 @standard_track_paths(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 (...) @standard_sample_to_new_slices()
store i32 %4, i32* %3
%5 = call i32 (...) @swap_standard_slices()
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 (...) @standard_witness_set_to_Laurent_system_container()
store i32 %9, i32* %3
%10 = call i32 (...) @standard_Newton_Laurent_step()
store i32 %10, i32* %3
br label %14
11: ; preds = %1
%12 = call i32 (...) @standard_witness_set_to_system_container()
store i32 %12, i32* %3
%13 = call i32 (...) @standard_Newton_step()
store i32 %13, i32* %3
br label %14
14: ; preds = %11, %8
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
define i32 @standard_track_paths(i32 %0) {
%2 = tail call i32 (...) @standard_sample_to_new_slices()
%3 = tail call i32 (...) @swap_standard_slices()
%4 = icmp eq i32 %0, 1
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 (...) @standard_witness_set_to_Laurent_system_container()
%7 = tail call i32 (...) @standard_Newton_Laurent_step()
br label %11
8: ; preds = %1
%9 = tail call i32 (...) @standard_witness_set_to_system_container()
%10 = tail call i32 (...) @standard_Newton_step()
br label %11
11: ; preds = %8, %5
%12 = phi i32 [ %7, %5 ], [ %10, %8 ]
ret i32 %12
}