#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*/ memset(long *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, long, long, long, long, char const *);
void print_output(void *_output, const char *test) {
  long *output = _output;
  printf("%016lx %016lx %016lx %016lx: %s\n", output[0], output[1], output[2],
         output[3], test);
  memset(output, 0, 32);
}


x86 assembly (clang, -O0):
<print_output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rsi
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x18(%rbp),%rax
mov    0x18(%rax),%r8
mov    -0x10(%rbp),%r9
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_output>:
push   %rbx
mov    %rsi,%r9
mov    %rdi,%rbx
mov    (%rdi),%rsi
mov    0x8(%rdi),%rdx
mov    0x10(%rdi),%rcx
mov    0x18(%rdi),%r8
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x20,%edx
pop    %rbx
jmp    1040 <memset@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"%016lx %016lx %016lx %016lx: %s\0A\00"
define void @print_output(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to i64*
store i64* %7, i64** %5
%8 = load i64*, i64** %5
%9 = getelementptr inbounds i64, i64* %8, i64 0
%10 = load i64, i64* %9
%11 = load i64*, i64** %5
%12 = getelementptr inbounds i64, i64* %11, i64 1
%13 = load i64, i64* %12
%14 = load i64*, i64** %5
%15 = getelementptr inbounds i64, i64* %14, i64 2
%16 = load i64, i64* %15
%17 = load i64*, i64** %5
%18 = getelementptr inbounds i64, i64* %17, i64 3
%19 = load i64, i64* %18
%20 = load i8*, i8** %4
%21 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %10, i64 %13, i64 %16, i64 %19, i8* %20)
%22 = load i64*, i64** %5
%23 = call i32 @memset(i64* %22, i32 0, i32 32)
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"%016lx %016lx %016lx %016lx: %s\0A\00"
define void @print_output(i8* %0, i8* %1) {
%3 = bitcast i8* %0 to i64*
%4 = load i64, i64* %3
%5 = getelementptr inbounds i8, i8* %0, i64 8
%6 = bitcast i8* %5 to i64*
%7 = load i64, i64* %6
%8 = getelementptr inbounds i8, i8* %0, i64 16
%9 = bitcast i8* %8 to i64*
%10 = load i64, i64* %9
%11 = getelementptr inbounds i8, i8* %0, i64 24
%12 = bitcast i8* %11 to i64*
%13 = load i64, i64* %12
%14 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i64 %4, i64 %7, i64 %10, i64 %13, i8* %1)
%15 = tail call i32 @memset(i64* %3, i32 0, i32 32)
ret void
}