#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 */
char *getModeStr();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ system(char *);
void print_common_header() {
  printf("#using memory mode : %s\n", getModeStr());
  printf("#STEP_SIZE = %d\n", 16);
  printf("#LOOP_NB0 = %ld\n", 20000000UL * 16);
  printf("#buffer init with 0.0 = true\n");
  system("printf '#arch : ';uname -m");
  system("printf '#CPU : ';uname -p");
  system("printf '#OS : ';uname -s");
  system("printf '#version : ';uname -r");
}


x86 assembly (clang, -O0):
<print_common_header>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <getModeStr@plt>
mov    %rax,%rsi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x1312d000,%esi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <system@plt>
lea    0xee1(%rip),%rdi
call   1030 <system@plt>
lea    0xeef(%rip),%rdi
call   1030 <system@plt>
lea    0xefc(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_common_header>:
push   %rax
xor    %eax,%eax
call   1060 <getModeStr@plt>
lea    0xeb1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x1312d000,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0xea9(%rip),%rdi
call   1040 <system@plt>
lea    0xeb8(%rip),%rdi
call   1040 <system@plt>
lea    0xec6(%rip),%rdi
call   1040 <system@plt>
lea    0xed3(%rip),%rdi
pop    %rax
jmp    1040 <system@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"#using memory mode : %s\0A\00"
@.str.1 = [17 x i8] c"#STEP_SIZE = %d\0A\00"
@.str.2 = [17 x i8] c"#LOOP_NB0 = %ld\0A\00"
@.str.3 = [30 x i8] c"#buffer init with 0.0 = true\0A\00"
@.str.4 = [27 x i8] c"printf '#arch : ';uname -m\00"
@.str.5 = [26 x i8] c"printf '#CPU : ';uname -p\00"
@.str.6 = [25 x i8] c"printf '#OS : ';uname -s\00"
@.str.7 = [30 x i8] c"printf '#version : ';uname -r\00"
define void @print_common_header() {
%1 = call i8* (...) @getModeStr()
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 16)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i64 320000000)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @system(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"#using memory mode : %s\0A\00"
@.str.1 = [17 x i8] c"#STEP_SIZE = %d\0A\00"
@.str.2 = [17 x i8] c"#LOOP_NB0 = %ld\0A\00"
@.str.4 = [27 x i8] c"printf '#arch : ';uname -m\00"
@.str.5 = [26 x i8] c"printf '#CPU : ';uname -p\00"
@.str.6 = [25 x i8] c"printf '#OS : ';uname -s\00"
@.str.7 = [30 x i8] c"printf '#version : ';uname -r\00"
@str = [29 x i8] c"#buffer init with 0.0 = true\00"
define void @print_common_header() {
%1 = tail call i8* (...) @getModeStr()
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %1)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 16)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i64 320000000)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @system(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @system(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @system(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0))
ret void
}