#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*/ printLine3(char const *, char *, char const *);
int /*<<< orphan*/ sprintf(char *, char *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *);
void printLine7(const char *begin, const char *content0, const char *content1,
                const char *content2, const char *content3, const char *border,
                const char *end) {
  char buffer[56] = "";
  sprintf(buffer, "%s%s%s%s%s%s%s", content0, border, content1, border,
          content2, border, content3);
  printLine3(begin, buffer, end);
}


x86 assembly (clang, -O0):
<printLine7>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x38,%edx
call   1030 <memset@plt>
lea    -0x70(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    -0x20(%rbp),%r11
mov    -0x30(%rbp),%r10
mov    -0x28(%rbp),%rax
lea    0xe72(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1050 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    0x10(%rbp),%rdx
call   1040 <printLine3@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printLine7>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %r8,%rax
mov    %rcx,%r10
mov    %rdx,%r8
mov    %rsi,%rdx
mov    %rdi,%rbx
mov    0x60(%rsp),%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0x30(%rsp)
sub    $0x8,%rsp
lea    0xe9e(%rip),%rsi
lea    0x8(%rsp),%r15
mov    %r15,%rdi
mov    %r9,%rcx
push   %rax
push   %r9
push   %r10
call   1040 <sprintf@plt>
add    $0x20,%rsp
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <printLine3@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%s%s%s%s%s%s%s\00"
define void @printLine7(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca [56 x i8]
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
store i8* %6, i8** %14
%16 = bitcast [56 x i8]* %15 to i8*
%17 = getelementptr inbounds [56 x i8], [56 x i8]* %15, i64 0, i64 0
%18 = load i8*, i8** %9
%19 = load i8*, i8** %13
%20 = load i8*, i8** %10
%21 = load i8*, i8** %13
%22 = load i8*, i8** %11
%23 = load i8*, i8** %13
%24 = load i8*, i8** %12
%25 = call i32 @sprintf(i8* %17, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %18, i8* %19, i8* %20, i8* %21, i8* %22, i8* %23, i8* %24)
%26 = load i8*, i8** %8
%27 = getelementptr inbounds [56 x i8], [56 x i8]* %15, i64 0, i64 0
%28 = load i8*, i8** %14
%29 = call i32 @printLine3(i8* %26, i8* %27, i8* %28)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s%s%s%s%s%s%s\00"
define void @printLine7(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca [56 x i8]
%9 = getelementptr inbounds [56 x i8], [56 x i8]* %8, i64 0, i64 0
%10 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %5, i8* %2, i8* %5, i8* %3, i8* %5, i8* %4)
%11 = call i32 @printLine3(i8* %0, i8* %9, i8* %6)
ret void
}