#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*/ main1(int, int *, int *, int *, int *);
int main(void) {
  int i;
  int a[256] __attribute__((__aligned__(16)));
  int d[256 + 1] __attribute__((__aligned__(16)));
  int b[256] = {0,  3,  6,  9,  12, 15, 18, 21, 24, 27,
                30, 33, 36, 39, 42, 45, 48, 51, 54, 57};
  int c[256] = {0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
                10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
  main1(256, &d[1], a, b, c);
  main1(256 - 2, &d[1], a, b, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1020,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xc20(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x1020(%rbp),%rdi
lea    0x12a8(%rip),%rsi
mov    $0x400,%edx
call   1040 <memcpy@plt>
lea    -0x820(%rbp),%rsi
add    $0x4,%rsi
lea    -0x410(%rbp),%rdx
lea    -0xc20(%rbp),%rcx
lea    -0x1020(%rbp),%r8
mov    $0x100,%edi
call   1030 <main1@plt>
lea    -0x820(%rbp),%rsi
add    $0x4,%rsi
lea    -0x410(%rbp),%rdx
lea    -0xc20(%rbp),%rcx
lea    -0x1020(%rbp),%r8
mov    $0xfe,%edi
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x1020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x1008,%rsp
lea    0xecb(%rip),%rsi
lea    0x400(%rsp),%r14
mov    $0x400,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
lea    0x12af(%rip),%rsi
mov    %rsp,%rbx
mov    $0x400,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
lea    0xc04(%rsp),%r15
lea    0x800(%rsp),%r12
mov    $0x100,%edi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %rbx,%r8
call   1030 <main1@plt>
mov    $0xfe,%edi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    %rbx,%r8
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x1008,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.b = <{ [20 x i32], [236 x i32] }> <{ [20 x i32] [i32 0, i32 3, i32 6, i32 9, i32 12, i32 15, i32 18, i32 21, i32 24, i32 27, i32 30, i32 33, i32 36, i32 39, i32 42, i32 45, i32 48, i32 51, i32 54, i32 57], [236 x i32] zeroinitializer }>
@__const.main.c = <{ [20 x i32], [236 x i32] }> <{ [20 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19], [236 x i32] zeroinitializer }>
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [256 x i32]
%4 = alloca [257 x i32]
%5 = alloca [256 x i32]
%6 = alloca [256 x i32]
store i32 0, i32* %1
%7 = bitcast [256 x i32]* %5 to i8*
%8 = bitcast [256 x i32]* %6 to i8*
%9 = getelementptr inbounds [257 x i32], [257 x i32]* %4, i64 0, i64 1
%10 = getelementptr inbounds [256 x i32], [256 x i32]* %3, i64 0, i64 0
%11 = getelementptr inbounds [256 x i32], [256 x i32]* %5, i64 0, i64 0
%12 = getelementptr inbounds [256 x i32], [256 x i32]* %6, i64 0, i64 0
%13 = call i32 @main1(i32 256, i32* %9, i32* %10, i32* %11, i32* %12)
%14 = getelementptr inbounds [257 x i32], [257 x i32]* %4, i64 0, i64 1
%15 = getelementptr inbounds [256 x i32], [256 x i32]* %3, i64 0, i64 0
%16 = getelementptr inbounds [256 x i32], [256 x i32]* %5, i64 0, i64 0
%17 = getelementptr inbounds [256 x i32], [256 x i32]* %6, i64 0, i64 0
%18 = call i32 @main1(i32 254, i32* %14, i32* %15, i32* %16, i32* %17)
ret i32 0
}

LLVM IR (-O2):
@__const.main.b = <{ [20 x i32], [236 x i32] }> <{ [20 x i32] [i32 0, i32 3, i32 6, i32 9, i32 12, i32 15, i32 18, i32 21, i32 24, i32 27, i32 30, i32 33, i32 36, i32 39, i32 42, i32 45, i32 48, i32 51, i32 54, i32 57], [236 x i32] zeroinitializer }>
@__const.main.c = <{ [20 x i32], [236 x i32] }> <{ [20 x i32] [i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19], [236 x i32] zeroinitializer }>
define i32 @main() {
%1 = alloca [256 x i32]
%2 = alloca [257 x i32]
%3 = alloca [256 x i32]
%4 = alloca [256 x i32]
%5 = bitcast [256 x i32]* %1 to i8*
%6 = bitcast [257 x i32]* %2 to i8*
%7 = bitcast [256 x i32]* %3 to i8*
%8 = bitcast [256 x i32]* %4 to i8*
%9 = getelementptr inbounds [257 x i32], [257 x i32]* %2, i64 0, i64 1
%10 = getelementptr inbounds [256 x i32], [256 x i32]* %1, i64 0, i64 0
%11 = getelementptr inbounds [256 x i32], [256 x i32]* %3, i64 0, i64 0
%12 = getelementptr inbounds [256 x i32], [256 x i32]* %4, i64 0, i64 0
%13 = call i32 @main1(i32 256, i32* %9, i32* %10, i32* %11, i32* %12)
%14 = call i32 @main1(i32 254, i32* %9, i32* %10, i32* %11, i32* %12)
ret i32 0
}