#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_c2phc(int, int *, int *, double *);
int reporting_path_tracker(int n, int *m, double *c, int *nbstep, int *nbfail,
                           int *nbiter, int *nbsyst) {
  int a[4], b[2], fail;
  b[0] = n;
  b[1] = *m;
  fail = _ada_use_c2phc(156, a, b, c);
  *m = b[1];
  *nbstep = a[0];
  *nbfail = a[1];
  *nbiter = a[2];
  *nbsyst = a[3];
  return fail;
}


x86 assembly (clang, -O0):
<reporting_path_tracker>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x44(%rbp)
lea    -0x40(%rbp),%rsi
lea    -0x48(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    $0x9c,%edi
call   1030 <_ada_use_c2phc@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x44(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x40(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x3c(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x38(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x34(%rbp),%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4c(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reporting_path_tracker>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%rcx
mov    %rsi,%rbx
mov    0x50(%rsp),%r13
mov    %edi,0x8(%rsp)
mov    (%rsi),%eax
mov    %eax,0xc(%rsp)
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    $0x9c,%edi
call   1030 <_ada_use_c2phc@plt>
mov    0xc(%rsp),%ecx
mov    %ecx,(%rbx)
mov    0x10(%rsp),%ecx
mov    %ecx,(%r12)
mov    0x14(%rsp),%ecx
mov    %ecx,(%r15)
mov    0x18(%rsp),%ecx
mov    %ecx,(%r14)
mov    0x1c(%rsp),%ecx
mov    %ecx,0x0(%r13)
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @reporting_path_tracker(i32 %0, i32* %1, double* %2, i32* %3, i32* %4, i32* %5, i32* %6) {
%8 = alloca i32
%9 = alloca i32*
%10 = alloca double*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca [4 x i32]
%16 = alloca [2 x i32]
%17 = alloca i32
store i32 %0, i32* %8
store i32* %1, i32** %9
store double* %2, double** %10
store i32* %3, i32** %11
store i32* %4, i32** %12
store i32* %5, i32** %13
store i32* %6, i32** %14
%18 = load i32, i32* %8
%19 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 0
store i32 %18, i32* %19
%20 = load i32*, i32** %9
%21 = load i32, i32* %20
%22 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 1
store i32 %21, i32* %22
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 0
%24 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 0
%25 = load double*, double** %10
%26 = call i32 @_ada_use_c2phc(i32 156, i32* %23, i32* %24, double* %25)
store i32 %26, i32* %17
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %16, i64 0, i64 1
%28 = load i32, i32* %27
%29 = load i32*, i32** %9
store i32 %28, i32* %29
%30 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 0
%31 = load i32, i32* %30
%32 = load i32*, i32** %11
store i32 %31, i32* %32
%33 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 1
%34 = load i32, i32* %33
%35 = load i32*, i32** %12
store i32 %34, i32* %35
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 2
%37 = load i32, i32* %36
%38 = load i32*, i32** %13
store i32 %37, i32* %38
%39 = getelementptr inbounds [4 x i32], [4 x i32]* %15, i64 0, i64 3
%40 = load i32, i32* %39
%41 = load i32*, i32** %14
store i32 %40, i32* %41
%42 = load i32, i32* %17
ret i32 %42
}

LLVM IR (-O2):
define i32 @reporting_path_tracker(i32 %0, i32* nocapture %1, double* %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6) {
%8 = alloca [4 x i32]
%9 = alloca [2 x i32]
%10 = bitcast [4 x i32]* %8 to i8*
%11 = bitcast [2 x i32]* %9 to i8*
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
store i32 %0, i32* %12
%13 = load i32, i32* %1
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
store i32 %13, i32* %14
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 0
%16 = call i32 @_ada_use_c2phc(i32 156, i32* %15, i32* %12, double* %2)
%17 = load i32, i32* %14
store i32 %17, i32* %1
%18 = load i32, i32* %15
store i32 %18, i32* %3
%19 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 1
%20 = load i32, i32* %19
store i32 %20, i32* %4
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 2
%22 = load i32, i32* %21
store i32 %22, i32* %5
%23 = getelementptr inbounds [4 x i32], [4 x i32]* %8, i64 0, i64 3
%24 = load i32, i32* %23
store i32 %24, i32* %6
ret i32 %16
}