#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*/ printf(char *, ...);
void print_params(unsigned seed) {
  printf("|SEED:%u|STATES:%u|WIDTH:%u|HEIGHT:%u", seed, 5, 14, 7);
  printf("|CYCLES:%u", 16);
  printf("|GEN:%u", 2000000);
  printf("|HOOD:VON_NEUMANN");
  printf("|FITNESS:PATTERN_FITNESS");
  printf("\n");
}


x86 assembly (clang, -O0):
<print_params>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xedb(%rip),%rdi
mov    $0x5,%edx
mov    $0xe,%ecx
mov    $0x7,%r8d
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x10,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x1e8480,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_params>:
push   %rax
mov    %edi,%esi
lea    0xed6(%rip),%rdi
mov    $0x5,%edx
mov    $0xe,%ecx
mov    $0x7,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x1e8480,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"|SEED:%u|STATES:%u|WIDTH:%u|HEIGHT:%u\00"
@.str.1 = [11 x i8] c"|CYCLES:%u\00"
@.str.2 = [8 x i8] c"|GEN:%u\00"
@.str.3 = [18 x i8] c"|HOOD:VON_NEUMANN\00"
@.str.4 = [25 x i8] c"|FITNESS:PATTERN_FITNESS\00"
@.str.5 = [2 x i8] c"\0A\00"
define void @print_params(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %3, i32 5, i32 14, i32 7)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 16)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 2000000)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [38 x i8] c"|SEED:%u|STATES:%u|WIDTH:%u|HEIGHT:%u\00"
@.str.1 = [11 x i8] c"|CYCLES:%u\00"
@.str.2 = [8 x i8] c"|GEN:%u\00"
@.str.3 = [18 x i8] c"|HOOD:VON_NEUMANN\00"
@.str.4 = [25 x i8] c"|FITNESS:PATTERN_FITNESS\00"
define void @print_params(i32 %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %0, i32 5, i32 14, i32 7)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 16)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 2000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
ret void
}