#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*/ fprintf(int /*<<< orphan*/, char *, int const);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
void print_welcome_message(const int time, const int mem_size) {
  printf("\n\n\t-Server started!\n");
  fprintf(stdout, "\t-\t#\tTime for timer\t:%d\n", time);
  fprintf(stdout, "\t-\t#\tMemory size   \t:%d\n", mem_size);
  printf("\t + Waitng for clients.......\n");
}


x86 assembly (clang, -O0):
<print_welcome_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xec8(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xec9(%rip),%rsi
call   1040 <fprintf@plt>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_welcome_message>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %edi,%ebp
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ea4(%rip),%rbx
mov    (%rbx),%edi
lea    0xebb(%rip),%rsi
mov    %ebp,%edx
call   1040 <fprintf@plt>
mov    (%rbx),%edi
lea    0xec4(%rip),%rsi
mov    %r14d,%edx
call   1040 <fprintf@plt>
lea    0xee2(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"\0A\0A\09-Server started!\0A\00"
@stdout = global i32 0
@.str.1 = [25 x i8] c"\09-\09#\09Time for timer\09:%d\0A\00"
@.str.2 = [25 x i8] c"\09-\09#\09Memory size \09:%d\0A\00"
@.str.3 = [31 x i8] c"\09 + Waitng for clients.......\0A\00"
define void @print_welcome_message(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = load i32, i32* %3
%8 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = load i32, i32* %4
%11 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str.1 = [25 x i8] c"\09-\09#\09Time for timer\09:%d\0A\00"
@.str.2 = [25 x i8] c"\09-\09#\09Memory size \09:%d\0A\00"
@str = [20 x i8] c"\0A\0A\09-Server started!\00"
@str.4 = [30 x i8] c"\09 + Waitng for clients.......\00"
define void @print_welcome_message(i32 %0, i32 %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @stdout
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%6 = load i32, i32* @stdout
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %1)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.4, i64 0, i64 0))
ret void
}