#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 _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int standard_laursys_solve(int nbtasks, int topdim, int filter, int factor,
                           int verbose) {
  int fail = 0;
  int pars[4];
  double *c;
  pars[0] = nbtasks;
  pars[1] = topdim;
  pars[2] = filter;
  pars[3] = factor;
  fail = _ada_use_c2phc4c(846, pars, &verbose, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<standard_laursys_solve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
lea    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rcx
mov    $0x34e,%edi
lea    -0x14(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<standard_laursys_solve>:
sub    $0x28,%rsp
mov    %r8d,0xc(%rsp)
mov    %edi,0x10(%rsp)
mov    %esi,0x14(%rsp)
mov    %edx,0x18(%rsp)
mov    %ecx,0x1c(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    $0x34e,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
define i32 @standard_laursys_solve(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [4 x i32]
%13 = alloca double*
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 0, i32* %11
%14 = load i32, i32* %6
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 0
store i32 %14, i32* %15
%16 = load i32, i32* %7
%17 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 1
store i32 %16, i32* %17
%18 = load i32, i32* %8
%19 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 2
store i32 %18, i32* %19
%20 = load i32, i32* %9
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 3
store i32 %20, i32* %21
%22 = getelementptr inbounds [4 x i32], [4 x i32]* %12, i64 0, i64 0
%23 = load double*, double** %13
%24 = call i32 @_ada_use_c2phc4c(i32 846, i32* %22, i32* %10, double* %23, i32 0)
store i32 %24, i32* %11
%25 = load i32, i32* %11
ret i32 %25
}

LLVM IR (-O2):
define i32 @standard_laursys_solve(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca [4 x i32]
store i32 %4, i32* %6
%8 = bitcast [4 x i32]* %7 to i8*
%9 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 0
store i32 %0, i32* %9
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 1
store i32 %1, i32* %10
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 2
store i32 %2, i32* %11
%12 = getelementptr inbounds [4 x i32], [4 x i32]* %7, i64 0, i64 3
store i32 %3, i32* %12
%13 = call i32 @_ada_use_c2phc4c(i32 846, i32* %9, i32* %6, double* undef, i32 0)
ret i32 %13
}