#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 copy_start_solutions_to_container();
int copy_start_system_to_container();
int define_output_file();
int /*<<< orphan*/ printf(char *);
int read_standard_start_system();
int validate_solutions();
void test_validate(void) {
  int fail;
  printf("\nCalling Newton validation in PHCpack...\n");
  fail = read_standard_start_system();
  fail = define_output_file();
  printf("\nSee the output file results ...\n\n");
  fail = copy_start_system_to_container();
  fail = copy_start_solutions_to_container();
  fail = validate_solutions();
}


x86 assembly (clang, -O0):
<test_validate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1060 <read_standard_start_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <define_output_file@plt>
mov    %eax,-0x4(%rbp)
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1080 <copy_start_system_to_container@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <copy_start_solutions_to_container@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <validate_solutions@plt>
mov    %eax,-0x4(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_validate>:
push   %rax
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1060 <read_standard_start_system@plt>
xor    %eax,%eax
call   1040 <define_output_file@plt>
lea    0xea7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1080 <copy_start_system_to_container@plt>
xor    %eax,%eax
call   1050 <copy_start_solutions_to_container@plt>
xor    %eax,%eax
pop    %rcx
jmp    1070 <validate_solutions@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"\0ACalling Newton validation in PHCpack...\0A\00"
@.str.1 = [35 x i8] c"\0ASee the output file results ...\0A\0A\00"
define void @test_validate() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @read_standard_start_system()
store i32 %3, i32* %1
%4 = call i32 (...) @define_output_file()
store i32 %4, i32* %1
%5 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (...) @copy_start_system_to_container()
store i32 %6, i32* %1
%7 = call i32 (...) @copy_start_solutions_to_container()
store i32 %7, i32* %1
%8 = call i32 (...) @validate_solutions()
store i32 %8, i32* %1
ret void
}

LLVM IR (-O2):
@str = [41 x i8] c"\0ACalling Newton validation in PHCpack...\00"
@str.2 = [34 x i8] c"\0ASee the output file results ...\0A\00"
define void @test_validate() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @read_standard_start_system()
%3 = tail call i32 (...) @define_output_file()
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.2, i64 0, i64 0))
%5 = tail call i32 (...) @copy_start_system_to_container()
%6 = tail call i32 (...) @copy_start_solutions_to_container()
%7 = tail call i32 (...) @validate_solutions()
ret void
}