#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 ne_put_loadbal_param_cc(int, int *, int *, int *, int *, int *, int *,
                            int *);
int ne_test_plbpc(int fileid) {
  int iproc;
  int num_int_nodes[10], num_bor_nodes[10], num_ext_nodes[10];
  int num_int_elems[10], num_bor_elems[10];
  int num_node_cmaps[10], num_elem_cmaps[10];
  for (iproc = 0; iproc < 10; iproc++) {
    num_int_nodes[iproc] = 200;
    num_bor_nodes[iproc] = 10;
    num_ext_nodes[iproc] = 5;
    num_int_elems[iproc] = 100;
    num_bor_elems[iproc] = 20;
    num_node_cmaps[iproc] = 4;
    num_elem_cmaps[iproc] = 2;
  }
  return (ne_put_loadbal_param_cc(fileid, num_int_nodes, num_bor_nodes,
                                  num_ext_nodes, num_int_elems, num_bor_elems,
                                  num_node_cmaps, num_elem_cmaps));
}


x86 assembly (clang, -O0):
<ne_test_plbpc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11a0 <ne_test_plbpc+0x90>
movslq -0x8(%rbp),%rax
movl   $0xc8,-0x30(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0xa,-0x60(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0x5,-0x90(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0x64,-0xc0(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0x14,-0xf0(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0x4,-0x120(%rbp,%rax,4)
movslq -0x8(%rbp),%rax
movl   $0x2,-0x150(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1125 <ne_test_plbpc+0x15>
mov    -0x4(%rbp),%edi
lea    -0x30(%rbp),%rsi
lea    -0x60(%rbp),%rdx
lea    -0x90(%rbp),%rcx
lea    -0xc0(%rbp),%r8
lea    -0xf0(%rbp),%r9
lea    -0x120(%rbp),%r10
lea    -0x150(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <ne_put_loadbal_param_cc@plt>
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ne_test_plbpc>:
sub    $0x148,%rsp
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xee3(%rip),%xmm1
movaps %xmm1,0xf0(%rsp)
movaps 0xee4(%rip),%xmm2
movaps %xmm2,0xc0(%rsp)
movaps 0xee5(%rip),%xmm3
movaps %xmm3,0x90(%rsp)
movaps 0xee6(%rip),%xmm4
movaps %xmm4,0x60(%rsp)
movaps 0xeea(%rip),%xmm5
movaps %xmm5,0x30(%rsp)
movaps 0xeee(%rip),%xmm6
movaps %xmm6,(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm1,0x100(%rsp)
movaps %xmm2,0xd0(%rsp)
movaps %xmm3,0xa0(%rsp)
movaps %xmm4,0x70(%rsp)
movaps %xmm5,0x40(%rsp)
movaps %xmm6,0x10(%rsp)
movl   $0xc8,0x140(%rsp)
movl   $0xa,0x110(%rsp)
movl   $0x5,0xe0(%rsp)
movl   $0x64,0xb0(%rsp)
movl   $0x14,0x80(%rsp)
movl   $0x4,0x50(%rsp)
movl   $0x2,0x20(%rsp)
movl   $0xc8,0x144(%rsp)
movl   $0xa,0x114(%rsp)
movl   $0x5,0xe4(%rsp)
movl   $0x64,0xb4(%rsp)
movl   $0x14,0x84(%rsp)
movl   $0x4,0x54(%rsp)
movl   $0x2,0x24(%rsp)
mov    %rsp,%rax
lea    0x30(%rsp),%r10
lea    0x120(%rsp),%rsi
lea    0xf0(%rsp),%rdx
lea    0xc0(%rsp),%rcx
lea    0x90(%rsp),%r8
lea    0x60(%rsp),%r9
push   %rax
push   %r10
call   1030 <ne_put_loadbal_param_cc@plt>
add    $0x158,%rsp
ret

LLVM IR (-O0):
define i32 @ne_test_plbpc(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i32]
%5 = alloca [10 x i32]
%6 = alloca [10 x i32]
%7 = alloca [10 x i32]
%8 = alloca [10 x i32]
%9 = alloca [10 x i32]
%10 = alloca [10 x i32]
store i32 %0, i32* %2
store i32 0, i32* %3
br label %11
11: ; preds = %36, %1
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %39
14: ; preds = %11
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %16
store i32 200, i32* %17
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 %19
store i32 10, i32* %20
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %22
store i32 5, i32* %23
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 %25
store i32 100, i32* %26
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 %28
store i32 20, i32* %29
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 %31
store i32 4, i32* %32
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %10, i64 0, i64 %34
store i32 2, i32* %35
br label %36
36: ; preds = %14
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %11
39: ; preds = %11
%40 = load i32, i32* %2
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%42 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 0
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 0
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 0
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %9, i64 0, i64 0
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %10, i64 0, i64 0
%48 = call i32 @ne_put_loadbal_param_cc(i32 %40, i32* %41, i32* %42, i32* %43, i32* %44, i32* %45, i32* %46, i32* %47)
ret i32 %48
}

LLVM IR (-O2):
define i32 @ne_test_plbpc(i32 %0) {
%2 = alloca [10 x i32]
%3 = alloca [10 x i32]
%4 = alloca [10 x i32]
%5 = alloca [10 x i32]
%6 = alloca [10 x i32]
%7 = alloca [10 x i32]
%8 = alloca [10 x i32]
%9 = bitcast [10 x i32]* %2 to i8*
%10 = bitcast [10 x i32]* %3 to i8*
%11 = bitcast [10 x i32]* %4 to i8*
%12 = bitcast [10 x i32]* %5 to i8*
%13 = bitcast [10 x i32]* %6 to i8*
%14 = bitcast [10 x i32]* %7 to i8*
%15 = bitcast [10 x i32]* %8 to i8*
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 0
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 0
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 0
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 0
%23 = bitcast [10 x i32]* %2 to <4 x i32>*
store <4 x i32> <i32 200, i32 200, i32 200, i32 200>, <4 x i32>* %23
%24 = bitcast [10 x i32]* %3 to <4 x i32>*
store <4 x i32> <i32 10, i32 10, i32 10, i32 10>, <4 x i32>* %24
%25 = bitcast [10 x i32]* %4 to <4 x i32>*
store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, <4 x i32>* %25
%26 = bitcast [10 x i32]* %5 to <4 x i32>*
store <4 x i32> <i32 100, i32 100, i32 100, i32 100>, <4 x i32>* %26
%27 = bitcast [10 x i32]* %6 to <4 x i32>*
store <4 x i32> <i32 20, i32 20, i32 20, i32 20>, <4 x i32>* %27
%28 = bitcast [10 x i32]* %7 to <4 x i32>*
store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, <4 x i32>* %28
%29 = bitcast [10 x i32]* %8 to <4 x i32>*
store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32>* %29
%30 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 4
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 4
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 4
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 4
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 4
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 4
%37 = bitcast i32* %30 to <4 x i32>*
store <4 x i32> <i32 200, i32 200, i32 200, i32 200>, <4 x i32>* %37
%38 = bitcast i32* %31 to <4 x i32>*
store <4 x i32> <i32 10, i32 10, i32 10, i32 10>, <4 x i32>* %38
%39 = bitcast i32* %32 to <4 x i32>*
store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, <4 x i32>* %39
%40 = bitcast i32* %33 to <4 x i32>*
store <4 x i32> <i32 100, i32 100, i32 100, i32 100>, <4 x i32>* %40
%41 = bitcast i32* %34 to <4 x i32>*
store <4 x i32> <i32 20, i32 20, i32 20, i32 20>, <4 x i32>* %41
%42 = bitcast i32* %35 to <4 x i32>*
store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, <4 x i32>* %42
%43 = bitcast i32* %36 to <4 x i32>*
store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32>* %43
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
store i32 200, i32* %44
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 8
store i32 10, i32* %45
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 8
store i32 5, i32* %46
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 8
store i32 100, i32* %47
%48 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 8
store i32 20, i32* %48
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 8
store i32 4, i32* %49
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 8
store i32 2, i32* %50
%51 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
store i32 200, i32* %51
%52 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 9
store i32 10, i32* %52
%53 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 9
store i32 5, i32* %53
%54 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 9
store i32 100, i32* %54
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 9
store i32 20, i32* %55
%56 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 9
store i32 4, i32* %56
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 9
store i32 2, i32* %57
%58 = call i32 @ne_put_loadbal_param_cc(i32 %0, i32* %16, i32* %17, i32* %18, i32* %19, i32* %20, i32* %21, i32* %22)
ret i32 %58
}