#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 *, char *);
void moni_caption_build(char *buf, int size) {
  (void)snprintf(buf, size, "%5s%10s%10s%11s%11s%10s%10s%10s", "NODE", "RPI(K)",
                 "LPI(K)", "RMA(K)", "LMA(K)", "RMA/LMA", "CPI", "CPU%%");
}


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

x86 assembly (clang, -O2):
<moni_caption_build>:
push   %r14
push   %rbx
push   %rax
sub    $0x8,%rsp
lea    0xf2e(%rip),%rax
lea    0xf23(%rip),%r10
lea    0xf14(%rip),%r11
lea    0xf06(%rip),%rbx
lea    0xef8(%rip),%r14
lea    0xebe(%rip),%rdx
lea    0xed7(%rip),%rcx
lea    0xed5(%rip),%r8
lea    0xed5(%rip),%r9
push   %rax
push   %r10
push   %r11
push   %rbx
push   %r14
call   1030 <snprintf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [32 x i8] c"%5s%10s%10s%11s%11s%10s%10s%10s\00"
@.str.1 = [5 x i8] c"NODE\00"
@.str.2 = [7 x i8] c"RPI(K)\00"
@.str.3 = [7 x i8] c"LPI(K)\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 = [4 x i8] c"CPI\00"
@.str.8 = [6 x i8] c"CPU%%\00"
define void @moni_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 ([32 x i8], [32 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 ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [32 x i8] c"%5s%10s%10s%11s%11s%10s%10s%10s\00"
@.str.1 = [5 x i8] c"NODE\00"
@.str.2 = [7 x i8] c"RPI(K)\00"
@.str.3 = [7 x i8] c"LPI(K)\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 = [4 x i8] c"CPI\00"
@.str.8 = [6 x i8] c"CPU%%\00"
define void @moni_caption_build(i8* %0, i32 %1) {
%3 = tail call i32 @snprintf(i8* %0, i32 %1, i8* getelementptr inbounds ([32 x i8], [32 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 ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 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 ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
ret void
}