#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 syscon_random_system(int n, int m, int d, int c, int neq) {
  int a[2], b[3], fail;
  double *tmp;
  a[0] = n;
  a[1] = neq;
  b[0] = m;
  b[1] = d;
  b[2] = c;
  fail = _ada_use_c2phc4c(109, a, b, tmp, 0);
  return fail;
}


x86 assembly (clang, -O0):
<syscon_random_system>:
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)
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    -0x1c(%rbp),%rsi
lea    -0x28(%rbp),%rdx
mov    -0x38(%rbp),%rcx
mov    $0x6d,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @syscon_random_system(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 [2 x i32]
%12 = alloca [3 x i32]
%13 = alloca i32
%14 = 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
%15 = load i32, i32* %6
%16 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
store i32 %15, i32* %16
%17 = load i32, i32* %10
%18 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 1
store i32 %17, i32* %18
%19 = load i32, i32* %7
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
store i32 %19, i32* %20
%21 = load i32, i32* %8
%22 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 1
store i32 %21, i32* %22
%23 = load i32, i32* %9
%24 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 2
store i32 %23, i32* %24
%25 = getelementptr inbounds [2 x i32], [2 x i32]* %11, i64 0, i64 0
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %12, i64 0, i64 0
%27 = load double*, double** %14
%28 = call i32 @_ada_use_c2phc4c(i32 109, i32* %25, i32* %26, double* %27, i32 0)
store i32 %28, i32* %13
%29 = load i32, i32* %13
ret i32 %29
}

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