#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*/ free(char *);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
char *strtok(char *, char *);
void printCard(char *originalString, int card_type) {
  char *str = malloc(strlen(originalString) * sizeof(char));
  char *word;
  char *scheme;
  int cnt = 0, currLen, oldLen;
  scheme = (card_type == 0 ? "\033[97;40m" : "\033[30;107m");
  strcpy(str, originalString);
  printf("%s", scheme);
  for (int j = 0; j < (23); j++) {
    printf(j % 2 == 0 ? "*" : " ");
  }
  printf("%s\n", "\033[39;49m");
  word = strtok(str, " ");
  int start = 1;
  currLen = 0;
  while (cnt < 10) {
    if (start == 1) {
      printf("%s* ", scheme);
      cnt++;
    }
    if (word != NULL) {
      oldLen = currLen;
      currLen += (strlen(word) + 1);
      if (currLen <= 18) {
        printf("%s ", word);
        word = strtok(NULL, " ");
        start = -1;
      } else {
        for (int i = oldLen; i < 23 - 3; i++) {
          printf(" ");
        }
        printf("*%s\n", "\033[39;49m");
        currLen = 0;
        start = 1;
      }
    }
    if (word == NULL) {
      for (int i = currLen; i < 23 - 3; i++) {
        printf(" ");
      }
      printf("*%s\n", "\033[39;49m");
      currLen = 0;
      start = 1;
    }
  }
  printf("%s", scheme);
  for (int j = 0; j < (23); j++) {
    printf(j % 2 == 0 ? "*" : " ");
  }
  printf("%s\n", "\033[39;49m");
  free(str);
}


x86 assembly (clang, -O0):
<printCard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0xc(%rbp),%edx
lea    0xe6f(%rip),%rax
lea    0xe5f(%rip),%rcx
cmp    $0x0,%edx
cmove  %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rsi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x17,-0x38(%rbp)
jge    1211 <printCard+0xb1>
mov    -0x38(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
lea    0xe36(%rip),%rdi
lea    0xe21(%rip),%rax
cmp    $0x0,%edx
cmove  %rax,%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11d2 <printCard+0x72>
lea    0xe13(%rip),%rdi
lea    0xdf9(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
lea    0xdf3(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x20(%rbp)
movl   $0x1,-0x3c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jge    1389 <printCard+0x229>
cmpl   $0x1,-0x3c(%rbp)
jne    1277 <printCard+0x117>
mov    -0x28(%rbp),%rsi
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     132a <printCard+0x1ca>
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
add    $0x1,%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x12,-0x30(%rbp)
jg     12d6 <printCard+0x176>
mov    -0x20(%rbp),%rsi
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
mov    %eax,%edi
lea    0xd63(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0x20(%rbp)
movl   $0xffffffff,-0x3c(%rbp)
jmp    1325 <printCard+0x1c5>
mov    -0x34(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x14,-0x40(%rbp)
jge    1302 <printCard+0x1a2>
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12dc <printCard+0x17c>
lea    0xd21(%rip),%rdi
lea    0xd08(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    132a <printCard+0x1ca>
cmpq   $0x0,-0x20(%rbp)
jne    1384 <printCard+0x224>
mov    -0x30(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x14,-0x44(%rbp)
jge    1361 <printCard+0x201>
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    133b <printCard+0x1db>
lea    0xcc2(%rip),%rdi
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x30(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1248 <printCard+0xe8>
mov    -0x28(%rbp),%rsi
lea    0xc7f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x48(%rbp)
cmpl   $0x17,-0x48(%rbp)
jge    13e1 <printCard+0x281>
mov    -0x48(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
lea    0xc66(%rip),%rdi
lea    0xc51(%rip),%rax
cmp    $0x0,%edx
cmove  %rax,%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    13a2 <printCard+0x242>
lea    0xc43(%rip),%rdi
lea    0xc29(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printCard>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %esi,%ebx
mov    %rdi,%rbp
call   1070 <strlen@plt>
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
test   %ebx,%ebx
lea    0xe55(%rip),%rax
lea    0xe57(%rip),%rbx
cmove  %rax,%rbx
mov    %r14,%rdi
mov    %rbp,%rsi
call   1050 <strcpy@plt>
lea    0xe4b(%rip),%rdi
mov    %rbx,0x8(%rsp)
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
lea    0xd52(%rip),%rbx
mov    %rbx,%rdi
call   1060 <puts@plt>
lea    0xd4f(%rip),%rsi
mov    %r14,0x10(%rsp)
mov    %r14,%rdi
call   10a0 <strtok@plt>
mov    %rax,%r14
mov    $0x1,%eax
lea    0xd39(%rip),%rbp
xor    %r13d,%r13d
xor    %r12d,%r12d
jmp    1325 <printCard+0x1a5>
nopw   0x0(%rax,%rax,1)
xor    %r14d,%r14d
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%eax
xor    %r15d,%r15d
mov    %r15d,%r13d
cmp    $0xa,%r12d
jge    1404 <printCard+0x284>
cmp    $0x1,%eax
jne    1341 <printCard+0x1c1>
lea    0xcee(%rip),%rdi
mov    0x8(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
add    $0x1,%r12d
test   %r14,%r14
je     1390 <printCard+0x210>
mov    %r14,%rdi
call   1070 <strlen@plt>
lea    (%rax,%r13,1),%r15d
add    $0x1,%r15d
cmp    $0x13,%r15d
jge    13a0 <printCard+0x220>
lea    0xcc1(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %edi,%edi
lea    0xcac(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,%r14
mov    $0xffffffff,%eax
jmp    13d4 <printCard+0x254>
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x13,%r13d
jle    13e0 <printCard+0x260>
jmp    1300 <printCard+0x180>
nopl   0x0(%rax,%rax,1)
cmp    $0x13,%r13d
jg     13bf <printCard+0x23f>
add    $0xffffffec,%r13d
nopw   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1040 <putchar@plt>
inc    %r13d
jne    13b0 <printCard+0x230>
xor    %r15d,%r15d
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x1,%eax
mov    %r15d,%r13d
test   %r14,%r14
jne    1318 <printCard+0x198>
add    $0xffffffec,%r13d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0x20,%edi
call   1040 <putchar@plt>
inc    %r13d
jne    13f0 <printCard+0x270>
jmp    1300 <printCard+0x180>
lea    0xc08(%rip),%rdi
mov    0x8(%rsp),%rsi
xor    %eax,%eax
call   1080 <printf@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
mov    $0x20,%edi
call   1040 <putchar@plt>
mov    $0x2a,%edi
call   1040 <putchar@plt>
lea    0xb12(%rip),%rdi
call   1060 <puts@plt>
mov    0x10(%rsp),%rdi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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