#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*/ fill(void *, void *, int, int);
int /*<<< orphan*/ print_input(void *);
int /*<<< orphan*/ run(void *, void *, void *);
int main(void) {
  char _input[256 / 8 * 2] = {0};
  char _output[256 / 8] = {0};
  void *input = _input;
  void *output = _output;
  print_input(input);
  run(input, input + 32, output);
  fill(input, output, 0xffffffffffffffffl, 0);
  print_input(input);
  run(input, input + 32, output);
  fill(input, output, 0xf0f0f0f0f0f0f0f0l, 0);
  print_input(input);
  run(input, input + 32, output);
  fill(input, output, 0x0101010101010101l, 0x9456010101010101l);
  print_input(input);
  run(input, input + 32, output);
  fill(input, output, 0xffffffffffffffffl, -0x0101010101010101l);
  print_input(input);
  run(input, input + 32, output);
  fill(input, output, 0, 0x0101010101010101l);
  print_input(input);
  run(input, input + 32, output);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x40,%edx
call   1040 <memset@plt>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    $0xffffffff,%edx
xor    %ecx,%ecx
call   1050 <fill@plt>
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    $0xf0f0f0f0,%edx
xor    %ecx,%ecx
call   1050 <fill@plt>
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    $0x1010101,%ecx
mov    %ecx,%edx
call   1050 <fill@plt>
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    $0xffffffff,%edx
mov    $0xfefefeff,%ecx
call   1050 <fill@plt>
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
mov    -0x78(%rbp),%rdi
mov    -0x80(%rbp),%rsi
xor    %edx,%edx
mov    $0x1010101,%ecx
call   1050 <fill@plt>
mov    -0x78(%rbp),%rdi
call   1060 <print_input@plt>
mov    -0x78(%rbp),%rdi
mov    -0x78(%rbp),%rsi
add    $0x20,%rsi
mov    -0x80(%rbp),%rdx
call   1030 <run@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x60,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
lea    0x40(%rsp),%r14
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rsp,%r15
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xffffffff,%edx
xor    %ecx,%ecx
call   1040 <fill@plt>
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xf0f0f0f0,%edx
xor    %ecx,%ecx
call   1040 <fill@plt>
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1010101,%edx
mov    $0x1010101,%ecx
call   1040 <fill@plt>
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xffffffff,%edx
mov    $0xfefefeff,%ecx
call   1040 <fill@plt>
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x1010101,%ecx
call   1040 <fill@plt>
mov    %rbx,%rdi
call   1050 <print_input@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <run@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x i8]
%3 = alloca [32 x i8]
%4 = alloca i8*
%5 = alloca i8*
store i32 0, i32* %1
%6 = bitcast [64 x i8]* %2 to i8*
%7 = bitcast [32 x i8]* %3 to i8*
%8 = getelementptr inbounds [64 x i8], [64 x i8]* %2, i64 0, i64 0
store i8* %8, i8** %4
%9 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
store i8* %9, i8** %5
%10 = load i8*, i8** %4
%11 = call i32 @print_input(i8* %10)
%12 = load i8*, i8** %4
%13 = load i8*, i8** %4
%14 = getelementptr i8, i8* %13, i64 32
%15 = load i8*, i8** %5
%16 = call i32 @run(i8* %12, i8* %14, i8* %15)
%17 = load i8*, i8** %4
%18 = load i8*, i8** %5
%19 = call i32 @fill(i8* %17, i8* %18, i32 -1, i32 0)
%20 = load i8*, i8** %4
%21 = call i32 @print_input(i8* %20)
%22 = load i8*, i8** %4
%23 = load i8*, i8** %4
%24 = getelementptr i8, i8* %23, i64 32
%25 = load i8*, i8** %5
%26 = call i32 @run(i8* %22, i8* %24, i8* %25)
%27 = load i8*, i8** %4
%28 = load i8*, i8** %5
%29 = call i32 @fill(i8* %27, i8* %28, i32 -252645136, i32 0)
%30 = load i8*, i8** %4
%31 = call i32 @print_input(i8* %30)
%32 = load i8*, i8** %4
%33 = load i8*, i8** %4
%34 = getelementptr i8, i8* %33, i64 32
%35 = load i8*, i8** %5
%36 = call i32 @run(i8* %32, i8* %34, i8* %35)
%37 = load i8*, i8** %4
%38 = load i8*, i8** %5
%39 = call i32 @fill(i8* %37, i8* %38, i32 16843009, i32 16843009)
%40 = load i8*, i8** %4
%41 = call i32 @print_input(i8* %40)
%42 = load i8*, i8** %4
%43 = load i8*, i8** %4
%44 = getelementptr i8, i8* %43, i64 32
%45 = load i8*, i8** %5
%46 = call i32 @run(i8* %42, i8* %44, i8* %45)
%47 = load i8*, i8** %4
%48 = load i8*, i8** %5
%49 = call i32 @fill(i8* %47, i8* %48, i32 -1, i32 -16843009)
%50 = load i8*, i8** %4
%51 = call i32 @print_input(i8* %50)
%52 = load i8*, i8** %4
%53 = load i8*, i8** %4
%54 = getelementptr i8, i8* %53, i64 32
%55 = load i8*, i8** %5
%56 = call i32 @run(i8* %52, i8* %54, i8* %55)
%57 = load i8*, i8** %4
%58 = load i8*, i8** %5
%59 = call i32 @fill(i8* %57, i8* %58, i32 0, i32 16843009)
%60 = load i8*, i8** %4
%61 = call i32 @print_input(i8* %60)
%62 = load i8*, i8** %4
%63 = load i8*, i8** %4
%64 = getelementptr i8, i8* %63, i64 32
%65 = load i8*, i8** %5
%66 = call i32 @run(i8* %62, i8* %64, i8* %65)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [64 x i8]
%2 = alloca [32 x i8]
%3 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = call i32 @print_input(i8* %3)
%6 = getelementptr inbounds [64 x i8], [64 x i8]* %1, i64 0, i64 32
%7 = call i32 @run(i8* %3, i8* %6, i8* %4)
%8 = call i32 @fill(i8* %3, i8* %4, i32 -1, i32 0)
%9 = call i32 @print_input(i8* %3)
%10 = call i32 @run(i8* %3, i8* %6, i8* %4)
%11 = call i32 @fill(i8* %3, i8* %4, i32 -252645136, i32 0)
%12 = call i32 @print_input(i8* %3)
%13 = call i32 @run(i8* %3, i8* %6, i8* %4)
%14 = call i32 @fill(i8* %3, i8* %4, i32 16843009, i32 16843009)
%15 = call i32 @print_input(i8* %3)
%16 = call i32 @run(i8* %3, i8* %6, i8* %4)
%17 = call i32 @fill(i8* %3, i8* %4, i32 -1, i32 -16843009)
%18 = call i32 @print_input(i8* %3)
%19 = call i32 @run(i8* %3, i8* %6, i8* %4)
%20 = call i32 @fill(i8* %3, i8* %4, i32 0, i32 16843009)
%21 = call i32 @print_input(i8* %3)
%22 = call i32 @run(i8* %3, i8* %6, i8* %4)
ret i32 0
}