#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*/ ask_options_for_Pade(int *, int *, int *, int *, int *);
int copy_quaddobl_start_solutions_to_container();
int copy_quaddobl_start_system_to_container();
int /*<<< orphan*/ printf(char *);
int quaddobl_Pade_approximant(int, int, int, int, int);
int /*<<< orphan*/ quaddobl_query_pool();
int read_quaddobl_start_system();
void quaddobl_Pade_test(void) {
  int fail, idx, numdeg, dendeg, nbr, verbose;
  printf("\nPade approximant creator in quad double precision ...\n");
  fail = read_quaddobl_start_system();
  fail = copy_quaddobl_start_system_to_container();
  fail = copy_quaddobl_start_solutions_to_container();
  ask_options_for_Pade(&idx, &numdeg, &dendeg, &nbr, &verbose);
  fail = quaddobl_Pade_approximant(idx, numdeg, dendeg, nbr, verbose);
  printf("\nDone with the Pade approximant constructor.");
  quaddobl_query_pool();
}


x86 assembly (clang, -O0):
<quaddobl_Pade_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xe81(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <read_quaddobl_start_system@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <copy_quaddobl_start_system_to_container@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <copy_quaddobl_start_solutions_to_container@plt>
mov    %eax,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x14(%rbp),%rcx
lea    -0x18(%rbp),%r8
call   1040 <ask_options_for_Pade@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
call   1090 <quaddobl_Pade_approximant@plt>
mov    %eax,-0x4(%rbp)
lea    0xe5e(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <quaddobl_query_pool@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quaddobl_Pade_test>:
sub    $0x18,%rsp
lea    0xea2(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <read_quaddobl_start_system@plt>
xor    %eax,%eax
call   1070 <copy_quaddobl_start_system_to_container@plt>
xor    %eax,%eax
call   1080 <copy_quaddobl_start_solutions_to_container@plt>
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
call   1050 <ask_options_for_Pade@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0x4(%rsp),%r8d
call   10a0 <quaddobl_Pade_approximant@plt>
lea    0xe1c(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
call   1090 <quaddobl_query_pool@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [56 x i8] c"\0APade approximant creator in quad double precision ...\0A\00"
@.str.1 = [45 x i8] c"\0ADone with the Pade approximant constructor.\00"
define void @quaddobl_Pade_test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @read_quaddobl_start_system()
store i32 %8, i32* %1
%9 = call i32 (...) @copy_quaddobl_start_system_to_container()
store i32 %9, i32* %1
%10 = call i32 (...) @copy_quaddobl_start_solutions_to_container()
store i32 %10, i32* %1
%11 = call i32 @ask_options_for_Pade(i32* %2, i32* %3, i32* %4, i32* %5, i32* %6)
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = load i32, i32* %6
%17 = call i32 @quaddobl_Pade_approximant(i32 %12, i32 %13, i32 %14, i32 %15, i32 %16)
store i32 %17, i32* %1
%18 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 (...) @quaddobl_query_pool()
ret void
}

LLVM IR (-O2):
@.str.1 = [45 x i8] c"\0ADone with the Pade approximant constructor.\00"
@str = [55 x i8] c"\0APade approximant creator in quad double precision ...\00"
define void @quaddobl_Pade_test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = bitcast i32* %4 to i8*
%10 = bitcast i32* %5 to i8*
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 (...) @read_quaddobl_start_system()
%13 = tail call i32 (...) @copy_quaddobl_start_system_to_container()
%14 = tail call i32 (...) @copy_quaddobl_start_solutions_to_container()
%15 = call i32 @ask_options_for_Pade(i32* %1, i32* %2, i32* %3, i32* %4, i32* %5)
%16 = load i32, i32* %1
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = load i32, i32* %5
%21 = call i32 @quaddobl_Pade_approximant(i32 %16, i32 %17, i32 %18, i32 %19, i32 %20)
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 (...) @quaddobl_query_pool()
ret void
}