#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 *strdup(char *);
void init_default_ranks(char **ranks) {
  ranks[0] = strdup("A");
  ranks[1] = strdup("2");
  ranks[2] = strdup("3");
  ranks[3] = strdup("4");
  ranks[4] = strdup("5");
  ranks[5] = strdup("6");
  ranks[6] = strdup("7");
  ranks[7] = strdup("8");
  ranks[8] = strdup("9");
  ranks[9] = strdup("10");
  ranks[10] = strdup("J");
  ranks[11] = strdup("Q");
  ranks[12] = strdup("K");
}


x86 assembly (clang, -O0):
<init_default_ranks>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
lea    0xec9(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
lea    0xeb4(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x10(%rax)
lea    0xe9f(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x18(%rax)
lea    0xe8a(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x20(%rax)
lea    0xe75(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x28(%rax)
lea    0xe60(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x30(%rax)
lea    0xe4b(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x38(%rax)
lea    0xe36(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x40(%rax)
lea    0xe21(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x48(%rax)
lea    0xe0d(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x50(%rax)
lea    0xdf8(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x58(%rax)
lea    0xde3(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x60(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_default_ranks>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,(%rbx)
lea    0xed8(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x8(%rbx)
lea    0xeca(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x10(%rbx)
lea    0xebc(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x18(%rbx)
lea    0xeae(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x20(%rbx)
lea    0xea0(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x28(%rbx)
lea    0xe92(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x30(%rbx)
lea    0xe84(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x38(%rbx)
lea    0xe76(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x40(%rbx)
lea    0xe68(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x48(%rbx)
lea    0xe5b(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x50(%rbx)
lea    0xe4d(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x58(%rbx)
lea    0xe3f(%rip),%rdi
call   1030 <strdup@plt>
mov    %rax,0x60(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"A\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [2 x i8] c"3\00"
@.str.3 = [2 x i8] c"4\00"
@.str.4 = [2 x i8] c"5\00"
@.str.5 = [2 x i8] c"6\00"
@.str.6 = [2 x i8] c"7\00"
@.str.7 = [2 x i8] c"8\00"
@.str.8 = [2 x i8] c"9\00"
@.str.9 = [3 x i8] c"10\00"
@.str.10 = [2 x i8] c"J\00"
@.str.11 = [2 x i8] c"Q\00"
@.str.12 = [2 x i8] c"K\00"
define void @init_default_ranks(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = load i8**, i8*** %2
%5 = getelementptr inbounds i8*, i8** %4, i64 0
store i8* %3, i8** %5
%6 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 1
store i8* %6, i8** %8
%9 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = load i8**, i8*** %2
%11 = getelementptr inbounds i8*, i8** %10, i64 2
store i8* %9, i8** %11
%12 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = load i8**, i8*** %2
%14 = getelementptr inbounds i8*, i8** %13, i64 3
store i8* %12, i8** %14
%15 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%16 = load i8**, i8*** %2
%17 = getelementptr inbounds i8*, i8** %16, i64 4
store i8* %15, i8** %17
%18 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%19 = load i8**, i8*** %2
%20 = getelementptr inbounds i8*, i8** %19, i64 5
store i8* %18, i8** %20
%21 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%22 = load i8**, i8*** %2
%23 = getelementptr inbounds i8*, i8** %22, i64 6
store i8* %21, i8** %23
%24 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%25 = load i8**, i8*** %2
%26 = getelementptr inbounds i8*, i8** %25, i64 7
store i8* %24, i8** %26
%27 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%28 = load i8**, i8*** %2
%29 = getelementptr inbounds i8*, i8** %28, i64 8
store i8* %27, i8** %29
%30 = call i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%31 = load i8**, i8*** %2
%32 = getelementptr inbounds i8*, i8** %31, i64 9
store i8* %30, i8** %32
%33 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%34 = load i8**, i8*** %2
%35 = getelementptr inbounds i8*, i8** %34, i64 10
store i8* %33, i8** %35
%36 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%37 = load i8**, i8*** %2
%38 = getelementptr inbounds i8*, i8** %37, i64 11
store i8* %36, i8** %38
%39 = call i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%40 = load i8**, i8*** %2
%41 = getelementptr inbounds i8*, i8** %40, i64 12
store i8* %39, i8** %41
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"A\00"
@.str.1 = [2 x i8] c"2\00"
@.str.2 = [2 x i8] c"3\00"
@.str.3 = [2 x i8] c"4\00"
@.str.4 = [2 x i8] c"5\00"
@.str.5 = [2 x i8] c"6\00"
@.str.6 = [2 x i8] c"7\00"
@.str.7 = [2 x i8] c"8\00"
@.str.8 = [2 x i8] c"9\00"
@.str.9 = [3 x i8] c"10\00"
@.str.10 = [2 x i8] c"J\00"
@.str.11 = [2 x i8] c"Q\00"
@.str.12 = [2 x i8] c"K\00"
define void @init_default_ranks(i8** nocapture writeonly %0) {
%2 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %2, i8** %0
%3 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = getelementptr inbounds i8*, i8** %0, i64 1
store i8* %3, i8** %4
%5 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = getelementptr inbounds i8*, i8** %0, i64 2
store i8* %5, i8** %6
%7 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %0, i64 3
store i8* %7, i8** %8
%9 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%10 = getelementptr inbounds i8*, i8** %0, i64 4
store i8* %9, i8** %10
%11 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%12 = getelementptr inbounds i8*, i8** %0, i64 5
store i8* %11, i8** %12
%13 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%14 = getelementptr inbounds i8*, i8** %0, i64 6
store i8* %13, i8** %14
%15 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%16 = getelementptr inbounds i8*, i8** %0, i64 7
store i8* %15, i8** %16
%17 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%18 = getelementptr inbounds i8*, i8** %0, i64 8
store i8* %17, i8** %18
%19 = tail call dereferenceable_or_null(3) i8* @strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%20 = getelementptr inbounds i8*, i8** %0, i64 9
store i8* %19, i8** %20
%21 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%22 = getelementptr inbounds i8*, i8** %0, i64 10
store i8* %21, i8** %22
%23 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%24 = getelementptr inbounds i8*, i8** %0, i64 11
store i8* %23, i8** %24
%25 = tail call dereferenceable_or_null(2) i8* @strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%26 = getelementptr inbounds i8*, i8** %0, i64 12
store i8* %25, i8** %26
ret void
}