#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_dobldobl_container_to_start_solutions();
int copy_dobldobl_container_to_start_system();
int copy_dobldobl_container_to_target_system();
int copy_dobldobl_start_system_to_container();
int copy_dobldobl_target_system_to_container();
int padcon_add_symbols(int);
int solcon_dobldobl_multi_homogenization(int);
int syscon_dobldobl_multi_homogenization(int, int, int *, int);
void padcon_dobldobl_multi_projective_transformation(int n, int m, int *idz) {
  int fail;
  fail = solcon_dobldobl_multi_homogenization(m);
  fail = copy_dobldobl_container_to_start_solutions();
  fail = copy_dobldobl_target_system_to_container();
  fail = syscon_dobldobl_multi_homogenization(n, m, idz, 0);
  fail = copy_dobldobl_container_to_target_system();
  fail = copy_dobldobl_start_system_to_container();
  fail = syscon_dobldobl_multi_homogenization(n, m, idz, 1);
  fail = copy_dobldobl_container_to_start_system();
  fail = padcon_add_symbols(m);
}


x86 assembly (clang, -O0):
<padcon_dobldobl_multi_projective_transformation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <solcon_dobldobl_multi_homogenization@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1060 <copy_dobldobl_container_to_start_solutions@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <copy_dobldobl_target_system_to_container@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
xor    %ecx,%ecx
call   1070 <syscon_dobldobl_multi_homogenization@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <copy_dobldobl_container_to_target_system@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1090 <copy_dobldobl_start_system_to_container@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    $0x1,%ecx
call   1070 <syscon_dobldobl_multi_homogenization@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1080 <copy_dobldobl_container_to_start_system@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
call   10a0 <padcon_add_symbols@plt>
mov    %eax,-0x14(%rbp)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<padcon_dobldobl_multi_projective_transformation>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebx
mov    %edi,%ebp
mov    %esi,%edi
call   1040 <solcon_dobldobl_multi_homogenization@plt>
xor    %eax,%eax
call   1060 <copy_dobldobl_container_to_start_solutions@plt>
xor    %eax,%eax
call   1050 <copy_dobldobl_target_system_to_container@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r14,%rdx
xor    %ecx,%ecx
call   1070 <syscon_dobldobl_multi_homogenization@plt>
xor    %eax,%eax
call   1030 <copy_dobldobl_container_to_target_system@plt>
xor    %eax,%eax
call   1090 <copy_dobldobl_start_system_to_container@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r14,%rdx
mov    $0x1,%ecx
call   1070 <syscon_dobldobl_multi_homogenization@plt>
xor    %eax,%eax
call   1080 <copy_dobldobl_container_to_start_system@plt>
mov    %ebx,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10a0 <padcon_add_symbols@plt>

LLVM IR (-O0):
define void @padcon_dobldobl_multi_projective_transformation(i32 %0, i32 %1, i32* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32* %2, i32** %6
%8 = load i32, i32* %5
%9 = call i32 @solcon_dobldobl_multi_homogenization(i32 %8)
store i32 %9, i32* %7
%10 = call i32 (...) @copy_dobldobl_container_to_start_solutions()
store i32 %10, i32* %7
%11 = call i32 (...) @copy_dobldobl_target_system_to_container()
store i32 %11, i32* %7
%12 = load i32, i32* %4
%13 = load i32, i32* %5
%14 = load i32*, i32** %6
%15 = call i32 @syscon_dobldobl_multi_homogenization(i32 %12, i32 %13, i32* %14, i32 0)
store i32 %15, i32* %7
%16 = call i32 (...) @copy_dobldobl_container_to_target_system()
store i32 %16, i32* %7
%17 = call i32 (...) @copy_dobldobl_start_system_to_container()
store i32 %17, i32* %7
%18 = load i32, i32* %4
%19 = load i32, i32* %5
%20 = load i32*, i32** %6
%21 = call i32 @syscon_dobldobl_multi_homogenization(i32 %18, i32 %19, i32* %20, i32 1)
store i32 %21, i32* %7
%22 = call i32 (...) @copy_dobldobl_container_to_start_system()
store i32 %22, i32* %7
%23 = load i32, i32* %5
%24 = call i32 @padcon_add_symbols(i32 %23)
store i32 %24, i32* %7
ret void
}

LLVM IR (-O2):
define void @padcon_dobldobl_multi_projective_transformation(i32 %0, i32 %1, i32* %2) {
%4 = tail call i32 @solcon_dobldobl_multi_homogenization(i32 %1)
%5 = tail call i32 (...) @copy_dobldobl_container_to_start_solutions()
%6 = tail call i32 (...) @copy_dobldobl_target_system_to_container()
%7 = tail call i32 @syscon_dobldobl_multi_homogenization(i32 %0, i32 %1, i32* %2, i32 0)
%8 = tail call i32 (...) @copy_dobldobl_container_to_target_system()
%9 = tail call i32 (...) @copy_dobldobl_start_system_to_container()
%10 = tail call i32 @syscon_dobldobl_multi_homogenization(i32 %0, i32 %1, i32* %2, i32 1)
%11 = tail call i32 (...) @copy_dobldobl_container_to_start_system()
%12 = tail call i32 @padcon_add_symbols(i32 %1)
ret void
}