#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ gpu_cgm(int *, int *, int *, int, int, int, int, int **);
int main() {
  uint32_t aList[5] = {3, 12, 15, 23, 53};
  uint32_t bList[4] = {11, 14, 31, 50};
  uint32_t cList[3] = {4, 28, 39};
  uint32_t *matches;
  gpu_cgm(&aList[0], &bList[0], &cList[0], 5, 4, 3, 8, &matches);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedc(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xee2(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xedf(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x3c(%rbp)
mov    0xebe(%rip),%eax
mov    %eax,-0x34(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0x30(%rbp),%rsi
lea    -0x3c(%rbp),%rdx
mov    $0x5,%ecx
mov    $0x4,%r8d
mov    $0x3,%r9d
lea    -0x48(%rbp),%rax
movl   $0x8,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <gpu_cgm@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
mov    0xef6(%rip),%eax
mov    %eax,0x20(%rsp)
movaps 0xedb(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    0xee0(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xecd(%rip),%rax
mov    %rax,(%rsp)
lea    0x40(%rsp),%rax
lea    0x10(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x5,%ecx
mov    $0x4,%r8d
mov    $0x3,%r9d
push   %rax
push   $0x8
call   1030 <gpu_cgm@plt>
add    $0x10,%rsp
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.aList = [5 x i32] [i32 3, i32 12, i32 15, i32 23, i32 53]
@__const.main.bList = [4 x i32] [i32 11, i32 14, i32 31, i32 50]
@__const.main.cList = [3 x i32] [i32 4, i32 28, i32 39]
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [4 x i32]
%3 = alloca [3 x i32]
%4 = alloca i32*
%5 = bitcast [5 x i32]* %1 to i8*
%6 = bitcast [4 x i32]* %2 to i8*
%7 = bitcast [3 x i32]* %3 to i8*
%8 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%9 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%10 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%11 = call i32 @gpu_cgm(i32* %8, i32* %9, i32* %10, i32 5, i32 4, i32 3, i32 8, i32** %4)
ret i32 0
}

LLVM IR (-O2):
@__const.main.aList = [5 x i32] [i32 3, i32 12, i32 15, i32 23, i32 53]
@__const.main.bList = [4 x i32] [i32 11, i32 14, i32 31, i32 50]
@__const.main.cList = [3 x i32] [i32 4, i32 28, i32 39]
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [4 x i32]
%3 = alloca [3 x i32]
%4 = alloca i32*
%5 = bitcast [5 x i32]* %1 to i8*
%6 = bitcast [4 x i32]* %2 to i8*
%7 = bitcast [3 x i32]* %3 to i8*
%8 = bitcast i32** %4 to i8*
%9 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%10 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%12 = call i32 @gpu_cgm(i32* %9, i32* %10, i32* %11, i32 5, i32 4, i32 3, i32 8, i32** %4)
ret i32 0
}