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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1810,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1010(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x800,%edx
call   1040 <memcpy@plt>
lea    -0x1810(%rbp),%rdi
lea    0x16a8(%rip),%rsi
mov    $0x800,%edx
call   1040 <memcpy@plt>
lea    -0x810(%rbp),%rsi
lea    -0x1010(%rbp),%rdx
lea    -0x1810(%rbp),%rcx
mov    $0x100,%edi
call   1030 <main1@plt>
lea    -0x810(%rbp),%rsi
lea    -0x1010(%rbp),%rdx
lea    -0x1810(%rbp),%rcx
mov    $0xfe,%edi
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x1810,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.main.b = <{ [20 x double], [236 x double] }> <{ [20 x double] [double 0.000000e+00, double 3.000000e+00, double 6.000000e+00, double 9.000000e+00, double 1.200000e+01, double 1.500000e+01, double 1.800000e+01, double 2.100000e+01, double 2.400000e+01, double 2.700000e+01, double 3.000000e+01, double 3.300000e+01, double 3.600000e+01, double 3.900000e+01, double 4.200000e+01, double 4.500000e+01, double 4.800000e+01, double 5.100000e+01, double 5.400000e+01, double 5.700000e+01], [236 x double] zeroinitializer }>
@__const.main.c = <{ [20 x double], [236 x double] }> <{ [20 x double] [double 0.000000e+00, double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 9.000000e+00, double 1.000000e+01, double 1.100000e+01, double 1.200000e+01, double 1.300000e+01, double 1.400000e+01, double 1.500000e+01, double 1.600000e+01, double 1.700000e+01, double 1.800000e+01, double 1.900000e+01], [236 x double] zeroinitializer }>
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [256 x double]
%4 = alloca [256 x double]
%5 = alloca [256 x double]
store i32 0, i32* %1
%6 = bitcast [256 x double]* %4 to i8*
%7 = bitcast [256 x double]* %5 to i8*
%8 = getelementptr inbounds [256 x double], [256 x double]* %3, i64 0, i64 0
%9 = getelementptr inbounds [256 x double], [256 x double]* %4, i64 0, i64 0
%10 = getelementptr inbounds [256 x double], [256 x double]* %5, i64 0, i64 0
%11 = call i32 @main1(i32 256, double* %8, double* %9, double* %10)
%12 = getelementptr inbounds [256 x double], [256 x double]* %3, i64 0, i64 0
%13 = getelementptr inbounds [256 x double], [256 x double]* %4, i64 0, i64 0
%14 = getelementptr inbounds [256 x double], [256 x double]* %5, i64 0, i64 0
%15 = call i32 @main1(i32 254, double* %12, double* %13, double* %14)
ret i32 0
}

LLVM IR (-O2):
@__const.main.b = <{ [20 x double], [236 x double] }> <{ [20 x double] [double 0.000000e+00, double 3.000000e+00, double 6.000000e+00, double 9.000000e+00, double 1.200000e+01, double 1.500000e+01, double 1.800000e+01, double 2.100000e+01, double 2.400000e+01, double 2.700000e+01, double 3.000000e+01, double 3.300000e+01, double 3.600000e+01, double 3.900000e+01, double 4.200000e+01, double 4.500000e+01, double 4.800000e+01, double 5.100000e+01, double 5.400000e+01, double 5.700000e+01], [236 x double] zeroinitializer }>
@__const.main.c = <{ [20 x double], [236 x double] }> <{ [20 x double] [double 0.000000e+00, double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 9.000000e+00, double 1.000000e+01, double 1.100000e+01, double 1.200000e+01, double 1.300000e+01, double 1.400000e+01, double 1.500000e+01, double 1.600000e+01, double 1.700000e+01, double 1.800000e+01, double 1.900000e+01], [236 x double] zeroinitializer }>
define i32 @main() {
%1 = alloca [256 x double]
%2 = alloca [256 x double]
%3 = alloca [256 x double]
%4 = bitcast [256 x double]* %1 to i8*
%5 = bitcast [256 x double]* %2 to i8*
%6 = bitcast [256 x double]* %3 to i8*
%7 = getelementptr inbounds [256 x double], [256 x double]* %1, i64 0, i64 0
%8 = getelementptr inbounds [256 x double], [256 x double]* %2, i64 0, i64 0
%9 = getelementptr inbounds [256 x double], [256 x double]* %3, i64 0, i64 0
%10 = call i32 @main1(i32 256, double* %7, double* %8, double* %9)
%11 = call i32 @main1(i32 254, double* %7, double* %8, double* %9)
ret i32 0
}