#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 uci_identify() {
  printf("id name %s\n", "Kholin Chess Engine");
  printf("id author %s\n", "Emil F Ostensen");
  printf("\n");
  printf("option name Hash type spin default %d min %d max %d\n", 64, 1, 1000);
  printf("option name Threads type spin default %d min %d max %d\n", 1, 1, 64);
  printf("uciok\n");
}


x86 assembly (clang, -O0):
<uci_identify>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xeea(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
lea    0xef7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    $0x3e8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x1,%edx
mov    $0x40,%ecx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<uci_identify>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0xecd(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed3(%rip),%rdi
lea    0xeda(%rip),%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xed2(%rip),%rdi
mov    $0x40,%esi
mov    $0x1,%edx
mov    $0x3e8,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x40,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf05(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"id name %s\0A\00"
@.str.1 = [20 x i8] c"Kholin Chess Engine\00"
@.str.2 = [14 x i8] c"id author %s\0A\00"
@.str.3 = [16 x i8] c"Emil F Ostensen\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [53 x i8] c"option name Hash type spin default %d min %d max %d\0A\00"
@.str.6 = [56 x i8] c"option name Threads type spin default %d min %d max %d\0A\00"
@.str.7 = [7 x i8] c"uciok\0A\00"
define void @uci_identify() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 64, i32 1, i32 1000)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 1, i32 64)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"id name %s\0A\00"
@.str.1 = [20 x i8] c"Kholin Chess Engine\00"
@.str.2 = [14 x i8] c"id author %s\0A\00"
@.str.3 = [16 x i8] c"Emil F Ostensen\00"
@.str.5 = [53 x i8] c"option name Hash type spin default %d min %d max %d\0A\00"
@.str.6 = [56 x i8] c"option name Threads type spin default %d min %d max %d\0A\00"
@str = [6 x i8] c"uciok\00"
define void @uci_identify() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), i32 64, i32 1, i32 1000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 1, i32 64)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
ret void
}