#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, char *, char *, char *);
int main(void) {
  int i;
  char a[256] __attribute__((__aligned__(16)));
  char b[256] = {0,  3,  6,  9,  12, 15, 18, 21, 24, 27,
                 30, 33, 36, 39, 42, 45, 48, 51, 54, 57};
  char 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    $0x310,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x210(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x100,%edx
call   1040 <memcpy@plt>
lea    -0x310(%rbp),%rdi
lea    0xfa8(%rip),%rsi
mov    $0x100,%edx
call   1040 <memcpy@plt>
lea    -0x110(%rbp),%rsi
lea    -0x210(%rbp),%rdx
lea    -0x310(%rbp),%rcx
mov    $0x100,%edi
call   1030 <main1@plt>
lea    -0x110(%rbp),%rsi
lea    -0x210(%rbp),%rdx
lea    -0x310(%rbp),%rcx
mov    $0xfe,%edi
call   1030 <main1@plt>
xor    %eax,%eax
add    $0x310,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x300,%rsp
lea    0xecd(%rip),%rsi
lea    0x100(%rsp),%r14
mov    $0x100,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
lea    0xfb1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x100,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
lea    0x200(%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    $0x300,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.b = <{ [20 x i8], [236 x i8] }> <{ [20 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-0369", [236 x i8] zeroinitializer }>
@__const.main.c = <{ [20 x i8], [236 x i8] }> <{ [20 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13", [236 x i8] zeroinitializer }>
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
store i32 0, i32* %1
%6 = bitcast [256 x i8]* %4 to i8*
%7 = bitcast [256 x i8]* %5 to i8*
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%11 = call i32 @main1(i32 256, i8* %8, i8* %9, i8* %10)
%12 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%15 = call i32 @main1(i32 254, i8* %12, i8* %13, i8* %14)
ret i32 0
}

LLVM IR (-O2):
@__const.main.b = <{ [20 x i8], [236 x i8] }> <{ [20 x i8] c"\00\03\06\09\0C\0F\12\15\18\1B\1E!$'*-0369", [236 x i8] zeroinitializer }>
@__const.main.c = <{ [20 x i8], [236 x i8] }> <{ [20 x i8] c"\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13", [236 x i8] zeroinitializer }>
define i32 @main() {
%1 = alloca [256 x i8]
%2 = alloca [256 x i8]
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [256 x i8], [256 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = call i32 @main1(i32 256, i8* %4, i8* %5, i8* %6)
%8 = call i32 @main1(i32 254, i8* %4, i8* %5, i8* %6)
ret i32 0
}