#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 getCard(char);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, char *);
int main() {
  char deck[13];
  int i = 0, j = 0;
  while (i < 13) {
    scanf("%c%*c", &deck[i]);
    deck[i] = getCard(deck[i]);
    i++;
  }
  for (i = 0; i < 13; i++)
    for (j = 0; j < 13 - i - 1; j++)
      if (deck[j] > deck[j + 1]) {
        deck[j] += deck[j + 1];
        deck[j + 1] = deck[j] - deck[j + 1];
        deck[j] -= deck[j + 1];
      };
  for (i = 0; i < 13; i++)
    printf("%c ", getCard(deck[i]));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0xd,-0x18(%rbp)
jge    1194 <main+0x64>
movslq -0x18(%rbp),%rax
lea    -0x11(%rbp),%rsi
add    %rax,%rsi
lea    0xe97(%rip),%rdi
call   1050 <scanf@plt>
movslq -0x18(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%edi
call   1040 <getCard@plt>
mov    %al,%cl
movslq -0x18(%rbp),%rax
mov    %cl,-0x11(%rbp,%rax,1)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    114d <main+0x1d>
movl   $0x0,-0x18(%rbp)
cmpl   $0xd,-0x18(%rbp)
jge    1266 <main+0x136>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    $0xd,%ecx
sub    -0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1253 <main+0x123>
movslq -0x1c(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x11(%rbp,%rcx,1),%ecx
cmp    %ecx,%eax
jle    1240 <main+0x110>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
movsbl -0x11(%rbp,%rax,1),%edx
movslq -0x1c(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%ecx
add    %edx,%ecx
mov    %cl,-0x11(%rbp,%rax,1)
movslq -0x1c(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl -0x11(%rbp,%rcx,1),%ecx
sub    %ecx,%eax
mov    %al,%cl
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
mov    %cl,-0x11(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cltq
movsbl -0x11(%rbp,%rax,1),%edx
movslq -0x1c(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%ecx
sub    %edx,%ecx
mov    %cl,-0x11(%rbp,%rax,1)
jmp    1245 <main+0x115>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ac <main+0x7c>
jmp    1258 <main+0x128>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    119b <main+0x6b>
movl   $0x0,-0x18(%rbp)
cmpl   $0xd,-0x18(%rbp)
jge    12a1 <main+0x171>
movslq -0x18(%rbp),%rax
movsbl -0x11(%rbp,%rax,1),%edi
call   1040 <getCard@plt>
mov    %eax,%esi
lea    0xd78(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    126d <main+0x13d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
lea    0xec2(%rip),%rbx
lea    0xb(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <scanf@plt>
movsbl 0xb(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0xb(%rsp)
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0xc(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0xc(%rsp)
lea    0xd(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0xd(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0xd(%rsp)
lea    0xe(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0xe(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0xe(%rsp)
lea    0xf(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0xf(%rsp)
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x10(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x10(%rsp)
lea    0x11(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x11(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x11(%rsp)
lea    0x12(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x12(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x12(%rsp)
lea    0x13(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x13(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x13(%rsp)
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x14(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x14(%rsp)
lea    0x15(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x15(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x15(%rsp)
lea    0x16(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x16(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x16(%rsp)
lea    0x17(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movsbl 0x17(%rsp),%edi
call   1040 <getCard@plt>
mov    %al,0x17(%rsp)
mov    $0xc,%r9d
xor    %ecx,%ecx
jmp    12c2 <main+0x192>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rcx
add    $0xffffffffffffffff,%r9
cmp    $0xd,%rcx
je     1363 <main+0x233>
cmp    $0x2,%r9
mov    $0x1,%edi
cmovae %r9,%rdi
mov    $0xc,%esi
sub    %rcx,%rsi
cmp    $0x2,%rsi
mov    $0x1,%r8d
cmovae %rsi,%r8
cmp    $0xb,%rcx
ja     12b0 <main+0x180>
mov    0xb(%rsp),%al
cmp    $0x2,%rsi
jae    1310 <main+0x1e0>
xor    %esi,%esi
test   $0x1,%r8b
je     12b0 <main+0x180>
mov    0x1(%rsi,%r14,1),%dl
cmp    %dl,%al
jle    12b0 <main+0x180>
mov    %al,0xc(%rsp,%rsi,1)
mov    %dl,0xb(%rsp,%rsi,1)
jmp    12b0 <main+0x180>
and    $0xfffffffffffffffe,%rdi
xor    %ebx,%ebx
jmp    1330 <main+0x200>
nopl   0x0(%rax,%rax,1)
mov    %al,0xd(%rsp,%rbx,1)
mov    %dl,0xc(%rsp,%rbx,1)
mov    %rsi,%rbx
cmp    %rsi,%rdi
je     12f7 <main+0x1c7>
movzbl 0xc(%rsp,%rbx,1),%edx
cmp    %dl,%al
jle    1350 <main+0x220>
mov    %al,0xc(%rsp,%rbx,1)
mov    %dl,0xb(%rsp,%rbx,1)
jmp    1352 <main+0x222>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %edx,%eax
lea    0x2(%rbx),%rsi
movzbl 0xd(%rsp,%rbx,1),%edx
cmp    %dl,%al
jg     1320 <main+0x1f0>
mov    %edx,%eax
jmp    1328 <main+0x1f8>
movsbl 0xb(%rsp),%edi
call   1040 <getCard@plt>
lea    0xc92(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0xc(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0xd(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0xe(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0xf(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x10(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x11(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x12(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x13(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x14(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x15(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x16(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
movsbl 0x17(%rsp),%edi
call   1040 <getCard@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%c%*c\00"
@.str.1 = [4 x i8] c"%c \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [13 x i8]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %4
br label %5
5: ; preds = %8, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 13
br i1 %7, label %8, label %24
8: ; preds = %5
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %10
%12 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %11)
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %14
%16 = load i8, i8* %15
%17 = call i32 @getCard(i8 signext %16)
%18 = trunc i32 %17 to i8
%19 = load i32, i32* %3
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %20
store i8 %18, i8* %21
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 1
store i32 %23, i32* %3
br label %5
24: ; preds = %5
store i32 0, i32* %3
br label %25
25: ; preds = %97, %24
%26 = load i32, i32* %3
%27 = icmp slt i32 %26, 13
br i1 %27, label %28, label %100
28: ; preds = %25
store i32 0, i32* %4
br label %29
29: ; preds = %93, %28
%30 = load i32, i32* %4
%31 = load i32, i32* %3
%32 = sub nsw i32 13, %31
%33 = sub nsw i32 %32, 1
%34 = icmp slt i32 %30, %33
br i1 %34, label %35, label %96
35: ; preds = %29
%36 = load i32, i32* %4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = load i32, i32* %4
%42 = add nsw i32 %41, 1
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp sgt i32 %40, %46
br i1 %47, label %48, label %92
48: ; preds = %35
%49 = load i32, i32* %4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %51
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = load i32, i32* %4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %56
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = add nsw i32 %59, %54
%61 = trunc i32 %60 to i8
store i8 %61, i8* %57
%62 = load i32, i32* %4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = sub nsw i32 %66, %72
%74 = trunc i32 %73 to i8
%75 = load i32, i32* %4
%76 = add nsw i32 %75, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %77
store i8 %74, i8* %78
%79 = load i32, i32* %4
%80 = add nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %81
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = load i32, i32* %4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = sub nsw i32 %89, %84
%91 = trunc i32 %90 to i8
store i8 %91, i8* %87
br label %92
92: ; preds = %48, %35
br label %93
93: ; preds = %92
%94 = load i32, i32* %4
%95 = add nsw i32 %94, 1
store i32 %95, i32* %4
br label %29
96: ; preds = %29
br label %97
97: ; preds = %96
%98 = load i32, i32* %3
%99 = add nsw i32 %98, 1
store i32 %99, i32* %3
br label %25
100: ; preds = %25
store i32 0, i32* %3
br label %101
101: ; preds = %111, %100
%102 = load i32, i32* %3
%103 = icmp slt i32 %102, 13
br i1 %103, label %104, label %114
104: ; preds = %101
%105 = load i32, i32* %3
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [13 x i8], [13 x i8]* %2, i64 0, i64 %106
%108 = load i8, i8* %107
%109 = call i32 @getCard(i8 signext %108)
%110 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %109)
br label %111
111: ; preds = %104
%112 = load i32, i32* %3
%113 = add nsw i32 %112, 1
store i32 %113, i32* %3
br label %101
114: ; preds = %101
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%c%*c\00"
@.str.1 = [4 x i8] c"%c \00"
define i32 @main() {
%1 = alloca [13 x i8]
%2 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = load i8, i8* %2
%5 = call i32 @getCard(i8 signext %4)
%6 = trunc i32 %5 to i8
store i8 %6, i8* %2
%7 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i8, i8* %7
%10 = call i32 @getCard(i8 signext %9)
%11 = trunc i32 %10 to i8
store i8 %11, i8* %7
%12 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 2
%13 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = load i8, i8* %12
%15 = call i32 @getCard(i8 signext %14)
%16 = trunc i32 %15 to i8
store i8 %16, i8* %12
%17 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 3
%18 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %17)
%19 = load i8, i8* %17
%20 = call i32 @getCard(i8 signext %19)
%21 = trunc i32 %20 to i8
store i8 %21, i8* %17
%22 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 4
%23 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = load i8, i8* %22
%25 = call i32 @getCard(i8 signext %24)
%26 = trunc i32 %25 to i8
store i8 %26, i8* %22
%27 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 5
%28 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %27)
%29 = load i8, i8* %27
%30 = call i32 @getCard(i8 signext %29)
%31 = trunc i32 %30 to i8
store i8 %31, i8* %27
%32 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 6
%33 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %32)
%34 = load i8, i8* %32
%35 = call i32 @getCard(i8 signext %34)
%36 = trunc i32 %35 to i8
store i8 %36, i8* %32
%37 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 7
%38 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %37)
%39 = load i8, i8* %37
%40 = call i32 @getCard(i8 signext %39)
%41 = trunc i32 %40 to i8
store i8 %41, i8* %37
%42 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 8
%43 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %42)
%44 = load i8, i8* %42
%45 = call i32 @getCard(i8 signext %44)
%46 = trunc i32 %45 to i8
store i8 %46, i8* %42
%47 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 9
%48 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %47)
%49 = load i8, i8* %47
%50 = call i32 @getCard(i8 signext %49)
%51 = trunc i32 %50 to i8
store i8 %51, i8* %47
%52 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 10
%53 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %52)
%54 = load i8, i8* %52
%55 = call i32 @getCard(i8 signext %54)
%56 = trunc i32 %55 to i8
store i8 %56, i8* %52
%57 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 11
%58 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %57)
%59 = load i8, i8* %57
%60 = call i32 @getCard(i8 signext %59)
%61 = trunc i32 %60 to i8
store i8 %61, i8* %57
%62 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 12
%63 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %62)
%64 = load i8, i8* %62
%65 = call i32 @getCard(i8 signext %64)
%66 = trunc i32 %65 to i8
store i8 %66, i8* %62
br label %67
67: ; preds = %0, %111
%68 = phi i64 [ 0, %0 ], [ %112, %111 ]
%69 = sub nsw i64 12, %68
%70 = call i64 @llvm.umax.i64(i64 %69, i64 1)
%71 = icmp ult i64 %68, 12
br i1 %71, label %72, label %111
72: ; preds = %67
%73 = load i8, i8* %2
%74 = and i64 %70, 1
%75 = icmp ult i64 %69, 2
br i1 %75, label %100, label %76
76: ; preds = %72
%77 = and i64 %70, -2
br label %78
78: ; preds = %96, %76
%79 = phi i8 [ %73, %76 ], [ %97, %96 ]
%80 = phi i64 [ 0, %76 ], [ %90, %96 ]
%81 = phi i64 [ 0, %76 ], [ %98, %96 ]
%82 = or i64 %80, 1
%83 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %82
%84 = load i8, i8* %83
%85 = icmp sgt i8 %79, %84
br i1 %85, label %86, label %88
86: ; preds = %78
%87 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %80
store i8 %79, i8* %83
store i8 %84, i8* %87
br label %88
88: ; preds = %78, %86
%89 = phi i8 [ %84, %78 ], [ %79, %86 ]
%90 = add nuw nsw i64 %80, 2
%91 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %90
%92 = load i8, i8* %91
%93 = icmp sgt i8 %89, %92
br i1 %93, label %94, label %96
94: ; preds = %88
%95 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %82
store i8 %89, i8* %91
store i8 %92, i8* %95
br label %96
96: ; preds = %94, %88
%97 = phi i8 [ %92, %88 ], [ %89, %94 ]
%98 = add i64 %81, 2
%99 = icmp eq i64 %98, %77
br i1 %99, label %100, label %78
100: ; preds = %96, %72
%101 = phi i8 [ %73, %72 ], [ %97, %96 ]
%102 = phi i64 [ 0, %72 ], [ %90, %96 ]
%103 = icmp eq i64 %74, 0
br i1 %103, label %111, label %104
104: ; preds = %100
%105 = add nuw nsw i64 %102, 1
%106 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %105
%107 = load i8, i8* %106
%108 = icmp sgt i8 %101, %107
br i1 %108, label %109, label %111
109: ; preds = %104
%110 = getelementptr inbounds [13 x i8], [13 x i8]* %1, i64 0, i64 %102
store i8 %101, i8* %106
store i8 %107, i8* %110
br label %111
111: ; preds = %100, %109, %104, %67
%112 = add nuw nsw i64 %68, 1
%113 = icmp eq i64 %112, 13
br i1 %113, label %114, label %67
114: ; preds = %111
%115 = load i8, i8* %2
%116 = call i32 @getCard(i8 signext %115)
%117 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %116)
%118 = load i8, i8* %7
%119 = call i32 @getCard(i8 signext %118)
%120 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %119)
%121 = load i8, i8* %12
%122 = call i32 @getCard(i8 signext %121)
%123 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %122)
%124 = load i8, i8* %17
%125 = call i32 @getCard(i8 signext %124)
%126 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %125)
%127 = load i8, i8* %22
%128 = call i32 @getCard(i8 signext %127)
%129 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %128)
%130 = load i8, i8* %27
%131 = call i32 @getCard(i8 signext %130)
%132 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %131)
%133 = load i8, i8* %32
%134 = call i32 @getCard(i8 signext %133)
%135 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %134)
%136 = load i8, i8* %37
%137 = call i32 @getCard(i8 signext %136)
%138 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %137)
%139 = load i8, i8* %42
%140 = call i32 @getCard(i8 signext %139)
%141 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %140)
%142 = load i8, i8* %47
%143 = call i32 @getCard(i8 signext %142)
%144 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %143)
%145 = load i8, i8* %52
%146 = call i32 @getCard(i8 signext %145)
%147 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %146)
%148 = load i8, i8* %57
%149 = call i32 @getCard(i8 signext %148)
%150 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %149)
%151 = load i8, i8* %62
%152 = call i32 @getCard(i8 signext %151)
%153 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %152)
ret i32 0
}