#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*/ putBoxTextPictureHead(double, double, char *, double, double,
                                         char *, char *);
int /*<<< orphan*/ putBoxTextPictureTail();
int /*<<< orphan*/ tprintf(char *, char *);
void putBoxTitlePicture(double px, double py, double sx, double sy,
                        char *title) {
  putBoxTextPictureHead(px, py, "makebox", sx, sy, "[c]", "[c]");
  tprintf("%s\n", title);
  putBoxTextPictureTail();
}


x86 assembly (clang, -O0):
<putBoxTitlePicture>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
lea    0xe95(%rip),%rdi
lea    0xe96(%rip),%rdx
mov    %rdx,%rsi
call   1050 <putBoxTextPictureHead@plt>
mov    -0x28(%rbp),%rsi
lea    0xe87(%rip),%rdi
call   1030 <tprintf@plt>
mov    $0x0,%al
call   1040 <putBoxTextPictureTail@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putBoxTitlePicture>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
lea    0xec6(%rip),%rdx
mov    %rdx,%rsi
call   1050 <putBoxTextPictureHead@plt>
lea    0xebb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <tprintf@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <putBoxTextPictureTail@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"makebox\00"
@.str.1 = [4 x i8] c"[c]\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @putBoxTitlePicture(double %0, double %1, double %2, double %3, i8* %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i8*
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store i8* %4, i8** %10
%11 = load double, double* %6
%12 = load double, double* %7
%13 = load double, double* %8
%14 = load double, double* %9
%15 = call i32 @putBoxTextPictureHead(double %11, double %12, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %13, double %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%16 = load i8*, i8** %10
%17 = call i32 @tprintf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %16)
%18 = call i32 (...) @putBoxTextPictureTail()
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"makebox\00"
@.str.1 = [4 x i8] c"[c]\00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @putBoxTitlePicture(double %0, double %1, double %2, double %3, i8* %4) {
%6 = tail call i32 @putBoxTextPictureHead(double %0, double %1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double %2, double %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @tprintf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %4)
%8 = tail call i32 (...) @putBoxTextPictureTail()
ret void
}