#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 quaddobl_Newton_Laurent_step();
int quaddobl_Newton_step();
int quaddobl_sample_to_new_slices();
int quaddobl_witness_set_to_Laurent_system_container();
int quaddobl_witness_set_to_system_container();
int solcon_write_quaddobl_solutions();
int swap_quaddobl_slices();
int quaddobl_track_paths(int islaurent) {
  int *a, *b, fail;
  double *c;
  fail = quaddobl_sample_to_new_slices();
  if (0 > 0)
    printf("Done tracking.\n");
  if (0 > 1)
    printf("Solutions computed :\n");
  if (0 > 1)
    fail = solcon_write_quaddobl_solutions();
  fail = swap_quaddobl_slices();
  if (islaurent == 1) {
    fail = quaddobl_witness_set_to_Laurent_system_container();
    fail = quaddobl_Newton_Laurent_step();
  } else {
    fail = quaddobl_witness_set_to_system_container();
    fail = quaddobl_Newton_step();
  }
  return fail;
}


x86 assembly (clang, -O0):
<quaddobl_track_paths>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <quaddobl_sample_to_new_slices@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1040 <swap_quaddobl_slices@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x4(%rbp)
jne    11a2 <quaddobl_track_paths+0x42>
mov    $0x0,%al
call   1080 <quaddobl_witness_set_to_Laurent_system_container@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1050 <quaddobl_Newton_Laurent_step@plt>
mov    %eax,-0x1c(%rbp)
jmp    11b6 <quaddobl_track_paths+0x56>
mov    $0x0,%al
call   1060 <quaddobl_witness_set_to_system_container@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1070 <quaddobl_Newton_step@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_track_paths>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <quaddobl_sample_to_new_slices@plt>
xor    %eax,%eax
call   1040 <swap_quaddobl_slices@plt>
xor    %eax,%eax
cmp    $0x1,%ebx
jne    1185 <quaddobl_track_paths+0x25>
call   1080 <quaddobl_witness_set_to_Laurent_system_container@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <quaddobl_Newton_Laurent_step@plt>
call   1060 <quaddobl_witness_set_to_system_container@plt>
xor    %eax,%eax
pop    %rbx
jmp    1070 <quaddobl_Newton_step@plt>

LLVM IR (-O0):
define i32 @quaddobl_track_paths(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca double*
store i32 %0, i32* %2
%7 = call i32 (...) @quaddobl_sample_to_new_slices()
store i32 %7, i32* %5
%8 = call i32 (...) @swap_quaddobl_slices()
store i32 %8, i32* %5
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 1
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 (...) @quaddobl_witness_set_to_Laurent_system_container()
store i32 %12, i32* %5
%13 = call i32 (...) @quaddobl_Newton_Laurent_step()
store i32 %13, i32* %5
br label %17
14: ; preds = %1
%15 = call i32 (...) @quaddobl_witness_set_to_system_container()
store i32 %15, i32* %5
%16 = call i32 (...) @quaddobl_Newton_step()
store i32 %16, i32* %5
br label %17
17: ; preds = %14, %11
%18 = load i32, i32* %5
ret i32 %18
}

LLVM IR (-O2):
define i32 @quaddobl_track_paths(i32 %0) {
%2 = tail call i32 (...) @quaddobl_sample_to_new_slices()
%3 = tail call i32 (...) @swap_quaddobl_slices()
%4 = icmp eq i32 %0, 1
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = tail call i32 (...) @quaddobl_witness_set_to_Laurent_system_container()
%7 = tail call i32 (...) @quaddobl_Newton_Laurent_step()
br label %11
8: ; preds = %1
%9 = tail call i32 (...) @quaddobl_witness_set_to_system_container()
%10 = tail call i32 (...) @quaddobl_Newton_step()
br label %11
11: ; preds = %8, %5
%12 = phi i32 [ %7, %5 ], [ %10, %8 ]
ret i32 %12
}