#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*/ ifill(int *, int, int);
void SetIWork(int m, int n, int panel_size, int *iworkptr, int **segrep,
              int **parent, int **xplore, int **repfnz, int **panel_lsub,
              int **xprune, int **marker) {
  *segrep = iworkptr;
  *parent = iworkptr + m;
  *xplore = *parent + m;
  *repfnz = *xplore + m;
  *panel_lsub = *repfnz + panel_size * m;
  *xprune = *panel_lsub + panel_size * m;
  *marker = *xprune + n;
  ifill(*repfnz, m * panel_size, (-1));
  ifill(*panel_lsub, m * panel_size, (-1));
}


x86 assembly (clang, -O0):
<SetIWork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rcx
movslq -0x4(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
movslq -0x4(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    0x10(%rbp),%rax
mov    (%rax),%rcx
movslq -0x4(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    0x18(%rbp),%rax
mov    (%rax),%rcx
mov    -0xc(%rbp),%eax
imul   -0x4(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rcx
mov    0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    0x20(%rbp),%rax
mov    (%rax),%rcx
mov    -0xc(%rbp),%eax
imul   -0x4(%rbp),%eax
cltq
shl    $0x2,%rax
add    %rax,%rcx
mov    0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    0x28(%rbp),%rax
mov    (%rax),%rcx
movslq -0x8(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
mov    0x30(%rbp),%rax
mov    %rcx,(%rax)
mov    0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x4(%rbp),%esi
imul   -0xc(%rbp),%esi
mov    $0xffffffff,%edx
call   1030 <ifill@plt>
mov    0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x4(%rbp),%esi
imul   -0xc(%rbp),%esi
mov    $0xffffffff,%edx
call   1030 <ifill@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SetIWork>:
push   %r14
push   %rbx
push   %rax
mov    0x40(%rsp),%r10
mov    0x38(%rsp),%r11
mov    0x30(%rsp),%r14
mov    0x28(%rsp),%rax
mov    0x20(%rsp),%rbx
mov    %rcx,(%r8)
movslq %edi,%rdi
lea    (%rcx,%rdi,4),%rcx
mov    %rcx,(%r9)
lea    (%rcx,%rdi,4),%rcx
mov    %rcx,(%rbx)
lea    (%rcx,%rdi,4),%rcx
mov    %rcx,(%rax)
imul   %edx,%edi
movslq %edi,%rbx
lea    (%rcx,%rbx,4),%rcx
mov    %rcx,(%r14)
lea    (%rcx,%rbx,4),%rcx
mov    %rcx,(%r11)
movslq %esi,%rdx
lea    (%rcx,%rdx,4),%rcx
mov    %rcx,(%r10)
mov    (%rax),%rdi
mov    %ebx,%esi
mov    $0xffffffff,%edx
call   1030 <ifill@plt>
mov    (%r14),%rdi
mov    %ebx,%esi
mov    $0xffffffff,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <ifill@plt>

LLVM IR (-O0):
define void @SetIWork(i32 %0, i32 %1, i32 %2, i32* %3, i32** %4, i32** %5, i32** %6, i32** %7, i32** %8, i32** %9, i32** %10) {
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32*
%16 = alloca i32**
%17 = alloca i32**
%18 = alloca i32**
%19 = alloca i32**
%20 = alloca i32**
%21 = alloca i32**
%22 = alloca i32**
store i32 %0, i32* %12
store i32 %1, i32* %13
store i32 %2, i32* %14
store i32* %3, i32** %15
store i32** %4, i32*** %16
store i32** %5, i32*** %17
store i32** %6, i32*** %18
store i32** %7, i32*** %19
store i32** %8, i32*** %20
store i32** %9, i32*** %21
store i32** %10, i32*** %22
%23 = load i32*, i32** %15
%24 = load i32**, i32*** %16
store i32* %23, i32** %24
%25 = load i32*, i32** %15
%26 = load i32, i32* %12
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %25, i64 %27
%29 = load i32**, i32*** %17
store i32* %28, i32** %29
%30 = load i32**, i32*** %17
%31 = load i32*, i32** %30
%32 = load i32, i32* %12
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, i32* %31, i64 %33
%35 = load i32**, i32*** %18
store i32* %34, i32** %35
%36 = load i32**, i32*** %18
%37 = load i32*, i32** %36
%38 = load i32, i32* %12
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, i32* %37, i64 %39
%41 = load i32**, i32*** %19
store i32* %40, i32** %41
%42 = load i32**, i32*** %19
%43 = load i32*, i32** %42
%44 = load i32, i32* %14
%45 = load i32, i32* %12
%46 = mul nsw i32 %44, %45
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, i32* %43, i64 %47
%49 = load i32**, i32*** %20
store i32* %48, i32** %49
%50 = load i32**, i32*** %20
%51 = load i32*, i32** %50
%52 = load i32, i32* %14
%53 = load i32, i32* %12
%54 = mul nsw i32 %52, %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, i32* %51, i64 %55
%57 = load i32**, i32*** %21
store i32* %56, i32** %57
%58 = load i32**, i32*** %21
%59 = load i32*, i32** %58
%60 = load i32, i32* %13
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, i32* %59, i64 %61
%63 = load i32**, i32*** %22
store i32* %62, i32** %63
%64 = load i32**, i32*** %19
%65 = load i32*, i32** %64
%66 = load i32, i32* %12
%67 = load i32, i32* %14
%68 = mul nsw i32 %66, %67
%69 = call i32 @ifill(i32* %65, i32 %68, i32 -1)
%70 = load i32**, i32*** %20
%71 = load i32*, i32** %70
%72 = load i32, i32* %12
%73 = load i32, i32* %14
%74 = mul nsw i32 %72, %73
%75 = call i32 @ifill(i32* %71, i32 %74, i32 -1)
ret void
}

LLVM IR (-O2):
define void @SetIWork(i32 %0, i32 %1, i32 %2, i32* %3, i32** nocapture writeonly %4, i32** nocapture writeonly %5, i32** nocapture writeonly %6, i32** nocapture %7, i32** nocapture %8, i32** nocapture writeonly %9, i32** nocapture writeonly %10) {
store i32* %3, i32** %4
%12 = sext i32 %0 to i64
%13 = getelementptr inbounds i32, i32* %3, i64 %12
store i32* %13, i32** %5
%14 = getelementptr inbounds i32, i32* %13, i64 %12
store i32* %14, i32** %6
%15 = getelementptr inbounds i32, i32* %14, i64 %12
store i32* %15, i32** %7
%16 = mul nsw i32 %2, %0
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, i32* %15, i64 %17
store i32* %18, i32** %8
%19 = getelementptr inbounds i32, i32* %18, i64 %17
store i32* %19, i32** %9
%20 = sext i32 %1 to i64
%21 = getelementptr inbounds i32, i32* %19, i64 %20
store i32* %21, i32** %10
%22 = load i32*, i32** %7
%23 = tail call i32 @ifill(i32* %22, i32 %16, i32 -1)
%24 = load i32*, i32** %8
%25 = tail call i32 @ifill(i32* %24, i32 %16, i32 -1)
ret void
}