#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*/ snprintf(char *, int, char *, char *, char *, char *, char *,
                            char *, char *, char *);
void nodeoverview_caption_build(char *buf, int size) {
  (void)snprintf(buf, size, "%5s%12s%12s%11s%11s%11s%12s", "NODE", "MEM.ALL",
                 "MEM.FREE", "RMA(K)", "LMA(K)", "RMA/LMA", "CPU%%");
}


x86 assembly (clang, -O0):
<nodeoverview_caption_build>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x38,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    0xed2(%rip),%rdx
lea    0xee7(%rip),%rcx
lea    0xee5(%rip),%r8
lea    0xee6(%rip),%r9
lea    0xee8(%rip),%rbx
lea    0xee8(%rip),%r11
lea    0xee8(%rip),%r10
lea    0xee9(%rip),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <snprintf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<nodeoverview_caption_build>:
push   %rbx
lea    0xf30(%rip),%rax
lea    0xf21(%rip),%r10
lea    0xf13(%rip),%r11
lea    0xf05(%rip),%rbx
lea    0xecc(%rip),%rdx
lea    0xee1(%rip),%rcx
lea    0xedf(%rip),%r8
lea    0xee0(%rip),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
call   1030 <snprintf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"%5s%12s%12s%11s%11s%11s%12s\00"
@.str.1 = [5 x i8] c"NODE\00"
@.str.2 = [8 x i8] c"MEM.ALL\00"
@.str.3 = [9 x i8] c"MEM.FREE\00"
@.str.4 = [7 x i8] c"RMA(K)\00"
@.str.5 = [7 x i8] c"LMA(K)\00"
@.str.6 = [8 x i8] c"RMA/LMA\00"
@.str.7 = [6 x i8] c"CPU%%\00"
define void @nodeoverview_caption_build(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = load i32, i32* %4
%7 = call i32 @snprintf(i8* %5, i32 %6, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"%5s%12s%12s%11s%11s%11s%12s\00"
@.str.1 = [5 x i8] c"NODE\00"
@.str.2 = [8 x i8] c"MEM.ALL\00"
@.str.3 = [9 x i8] c"MEM.FREE\00"
@.str.4 = [7 x i8] c"RMA(K)\00"
@.str.5 = [7 x i8] c"LMA(K)\00"
@.str.6 = [8 x i8] c"RMA/LMA\00"
@.str.7 = [6 x i8] c"CPU%%\00"
define void @nodeoverview_caption_build(i8* %0, i32 %1) {
%3 = tail call i32 @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
ret void
}