#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*/ net(int **, int, int);
int main() {
  int andl[4][4] = {
      {1, 1, 1, 1}, {1, -1, 1, -1}, {-1, 1, 1, -1}, {-1, -1, 1, -1}};
  int orl[4][4] = {{1, 1, 1, 1}, {1, -1, 1, 1}, {-1, 1, 1, 1}, {-1, -1, 1, -1}};
  int nandl[4][4] = {
      {1, 1, 1, -1}, {1, -1, 1, 1}, {-1, 1, 1, 1}, {-1, -1, 1, 1}};
  int norl[4][4] = {
      {1, 1, 1, -1}, {1, -1, 1, -1}, {-1, 1, 1, -1}, {-1, -1, 1, 1}};
  int xorl[4][4] = {
      {1, 1, 1, -1}, {1, -1, 1, 1}, {-1, 1, 1, 1}, {-1, -1, 1, -1}};
  int i;
  net(andl, 1, 1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0x90(%rbp),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0xd0(%rbp),%rdi
lea    0xf13(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0x110(%rbp),%rdi
lea    0xf3b(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0x150(%rbp),%rdi
lea    0xf63(%rip),%rsi
mov    $0x40,%edx
call   1030 <memcpy@plt>
lea    -0x50(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <net@plt>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movaps 0xf15(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xec1(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1030 <net@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.andl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 1], [4 x i32] [i32 1, i32 -1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 -1]]
@__const.main.orl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 1], [4 x i32] [i32 1, i32 -1, i32 1, i32 1], [4 x i32] [i32 -1, i32 1, i32 1, i32 1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 -1]]
@__const.main.nandl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 -1], [4 x i32] [i32 1, i32 -1, i32 1, i32 1], [4 x i32] [i32 -1, i32 1, i32 1, i32 1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 1]]
@__const.main.norl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 -1], [4 x i32] [i32 1, i32 -1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 1]]
@__const.main.xorl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 -1], [4 x i32] [i32 1, i32 -1, i32 1, i32 1], [4 x i32] [i32 -1, i32 1, i32 1, i32 1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 -1]]
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x [4 x i32]]
%3 = alloca [4 x [4 x i32]]
%4 = alloca [4 x [4 x i32]]
%5 = alloca [4 x [4 x i32]]
%6 = alloca [4 x [4 x i32]]
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [4 x [4 x i32]]* %2 to i8*
%9 = bitcast [4 x [4 x i32]]* %3 to i8*
%10 = bitcast [4 x [4 x i32]]* %4 to i8*
%11 = bitcast [4 x [4 x i32]]* %5 to i8*
%12 = bitcast [4 x [4 x i32]]* %6 to i8*
%13 = getelementptr inbounds [4 x [4 x i32]], [4 x [4 x i32]]* %2, i64 0, i64 0
%14 = bitcast [4 x i32]* %13 to i32**
%15 = call i32 @net(i32** %14, i32 1, i32 1)
ret i32 0
}

LLVM IR (-O2):
@__const.main.andl = [4 x [4 x i32]] [[4 x i32] [i32 1, i32 1, i32 1, i32 1], [4 x i32] [i32 1, i32 -1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 1, i32 1, i32 -1], [4 x i32] [i32 -1, i32 -1, i32 1, i32 -1]]
define i32 @main() {
%1 = alloca [4 x [4 x i32]]
%2 = bitcast [4 x [4 x i32]]* %1 to i8*
%3 = bitcast [4 x [4 x i32]]* %1 to i32**
%4 = call i32 @net(i32** %3, i32 1, i32 1)
ret i32 0
}