#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*/ _ada_track_paths(int, int, int *, int, int *, int, double *,
                                    int *, int, int *, int, double *, int,
                                    int *, int, int *);
int /*<<< orphan*/ printf(char *);
int path_tracker(int n, int m, int *p_ms, int p_ns, int *p_s, int p_nc,
                 double *p_c, int *q_ms, int q_ns, int *q_s, int q_nc,
                 double *q_c, int nbmul, int *mul, int nbcfs, int *cfs) {
  printf("Passing the data to the Ada routines ...\n");
  _ada_track_paths(n, m, p_ms, p_ns, p_s, p_nc, p_c, q_ms, q_ns, q_s, q_nc, q_c,
                   nbmul, mul, nbcfs, cfs);
  printf("... done with call to Ada routine.\n");
  return 0;
}


x86 assembly (clang, -O0):
<path_tracker>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x2c(%rbp)
mov    %esi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %ecx,-0x3c(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9d,-0x4c(%rbp)
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x38(%rbp),%rdx
mov    -0x3c(%rbp),%ecx
mov    -0x48(%rbp),%r8
mov    -0x4c(%rbp),%r9d
mov    0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    0x20(%rbp),%r13d
mov    0x28(%rbp),%r12
mov    0x30(%rbp),%r15d
mov    0x38(%rbp),%r14
mov    0x40(%rbp),%ebx
mov    0x48(%rbp),%r11
mov    0x50(%rbp),%r10d
mov    0x58(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x60(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x58(%rbp),%rax
mov    %r13d,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15d,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %ebx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10d,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1040 <_ada_track_paths@plt>
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<path_tracker>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9d,%r14d
mov    %r8,%r15
mov    %ecx,%r12d
mov    %rdx,%r13
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    0xd8(%rsp),%rax
mov    %rax,0x48(%rsp)
mov    0xd0(%rsp),%eax
mov    %eax,0x40(%rsp)
mov    0xc8(%rsp),%rax
mov    %rax,0x38(%rsp)
mov    0xc0(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0xb8(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0xb0(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0xa8(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0xa0(%rsp),%eax
mov    %eax,0x10(%rsp)
movaps 0x90(%rsp),%xmm0
movups %xmm0,(%rsp)
mov    %ebx,%edi
mov    %ebp,%esi
mov    %r13,%rdx
mov    %r12d,%ecx
mov    %r15,%r8
mov    %r14d,%r9d
call   1040 <_ada_track_paths@plt>
lea    0xe57(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"Passing the data to the Ada routines ...\0A\00"
@.str.1 = [36 x i8] c"... done with call to Ada routine.\0A\00"
define i32 @path_tracker(i32 %0, i32 %1, i32* %2, i32 %3, i32* %4, i32 %5, double* %6, i32* %7, i32 %8, i32* %9, i32 %10, double* %11, i32 %12, i32* %13, i32 %14, i32* %15) {
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32*
%20 = alloca i32
%21 = alloca i32*
%22 = alloca i32
%23 = alloca double*
%24 = alloca i32*
%25 = alloca i32
%26 = alloca i32*
%27 = alloca i32
%28 = alloca double*
%29 = alloca i32
%30 = alloca i32*
%31 = alloca i32
%32 = alloca i32*
store i32 %0, i32* %17
store i32 %1, i32* %18
store i32* %2, i32** %19
store i32 %3, i32* %20
store i32* %4, i32** %21
store i32 %5, i32* %22
store double* %6, double** %23
store i32* %7, i32** %24
store i32 %8, i32* %25
store i32* %9, i32** %26
store i32 %10, i32* %27
store double* %11, double** %28
store i32 %12, i32* %29
store i32* %13, i32** %30
store i32 %14, i32* %31
store i32* %15, i32** %32
%33 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%34 = load i32, i32* %17
%35 = load i32, i32* %18
%36 = load i32*, i32** %19
%37 = load i32, i32* %20
%38 = load i32*, i32** %21
%39 = load i32, i32* %22
%40 = load double*, double** %23
%41 = load i32*, i32** %24
%42 = load i32, i32* %25
%43 = load i32*, i32** %26
%44 = load i32, i32* %27
%45 = load double*, double** %28
%46 = load i32, i32* %29
%47 = load i32*, i32** %30
%48 = load i32, i32* %31
%49 = load i32*, i32** %32
%50 = call i32 @_ada_track_paths(i32 %34, i32 %35, i32* %36, i32 %37, i32* %38, i32 %39, double* %40, i32* %41, i32 %42, i32* %43, i32 %44, double* %45, i32 %46, i32* %47, i32 %48, i32* %49)
%51 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [41 x i8] c"Passing the data to the Ada routines ...\00"
@str.2 = [35 x i8] c"... done with call to Ada routine.\00"
define i32 @path_tracker(i32 %0, i32 %1, i32* %2, i32 %3, i32* %4, i32 %5, double* %6, i32* %7, i32 %8, i32* %9, i32 %10, double* %11, i32 %12, i32* %13, i32 %14, i32* %15) {
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str, i64 0, i64 0))
%18 = tail call i32 @_ada_track_paths(i32 %0, i32 %1, i32* %2, i32 %3, i32* %4, i32 %5, double* %6, i32* %7, i32 %8, i32* %9, i32 %10, double* %11, i32 %12, i32* %13, i32 %14, i32* %15)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}