#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 EXIT_SUCCESS;
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ read_line(char **, size_t *);
scalar_t__ strcmp(char *, char *);
char strlen(char *);
char *strtok(char *, char *);
char strtol(char *, char **, int);
int main() {
  char *DAYS[] = {"Monday", "Tuesday",  "Wednesday", "Thursday",
                  "Friday", "Saturday", "Sunday"};
  char *input = NULL;
  size_t size = 0;
  read_line(&input, &size);
  int sum, perfectGirl = 0, dayNumber;
  while (strcmp(input, "Enough dates!")) {
    sum = 0;
    char *day = strtok(input, "\\");
    int i;
    for (i = 0; i < 7; i++) {
      if (strcmp(day, DAYS[i]) == 0) {
        break;
      }
    }
    sum += i + 1;
    char *phone = strtok(NULL, "\\");
    char *braSize = strtok(NULL, "\\");
    char *girlName = strtok(NULL, "\\");
    for (i = 0; i < strlen(phone); i++) {
      sum += phone[i] - '0';
    }
    char *remainder;
    sum += strtol(braSize, &remainder, 10) * (*remainder);
    sum -= girlName[0] * strlen(girlName);
    if (sum < 6000) {
      printf("Keep searching, %s is not for you.\n", girlName);
    } else {
      printf("%s is perfect for you.\n", girlName);
      perfectGirl++;
    }
    read_line(&input, &size);
  }
  printf("%d", perfectGirl);
  free(input);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0x2c43(%rip),%rsi
mov    $0x38,%edx
call   1080 <memcpy@plt>
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1090 <read_line@plt>
movl   $0x0,-0x58(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1391 <main+0x211>
movl   $0x0,-0x54(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xe50(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
cmpl   $0x7,-0x6c(%rbp)
jge    1245 <main+0xc5>
mov    -0x68(%rbp),%rdi
movslq -0x6c(%rbp),%rax
mov    -0x40(%rbp,%rax,8),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1232 <main+0xb2>
jmp    1245 <main+0xc5>
jmp    1237 <main+0xb7>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1207 <main+0x87>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x54(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdeb(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x78(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdd7(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x80(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xdc3(%rip),%rsi
call   10a0 <strtok@plt>
mov    %rax,-0x88(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x78(%rbp),%rdi
call   1040 <strlen@plt>
mov    %al,%cl
mov    -0x94(%rbp),%eax
movsbl %cl,%ecx
cmp    %ecx,%eax
jge    12df <main+0x15f>
mov    -0x78(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x30,%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    1297 <main+0x117>
mov    -0x80(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    $0xa,%edx
call   1070 <strtol@plt>
movsbl %al,%eax
mov    -0x90(%rbp),%rcx
movsbl (%rcx),%ecx
imul   %ecx,%eax
add    -0x54(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x88(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x98(%rbp)
mov    -0x88(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x98(%rbp),%ecx
movsbl %al,%eax
imul   %eax,%ecx
mov    -0x54(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x1770,-0x54(%rbp)
jge    1361 <main+0x1e1>
mov    -0x88(%rbp),%rsi
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    137f <main+0x1ff>
mov    -0x88(%rbp),%rsi
lea    0xcfe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1090 <read_line@plt>
jmp    11cb <main+0x4b>
mov    -0x58(%rbp),%esi
lea    0xcea(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    0x2c2e(%rip),%rax
mov    (%rax),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x18(%rsp)
lea    0x10(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1080 <read_line@plt>
mov    0x10(%rsp),%rdi
lea    0xe8e(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13cb <main+0x25b>
lea    0xe87(%rip),%rbx
movl   $0x0,0xc(%rsp)
jmp    1216 <main+0xa6>
nopw   0x0(%rax,%rax,1)
lea    0xe96(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
addl   $0x1,0xc(%rsp)
lea    0xe5a(%rip),%rbx
lea    0x10(%rsp),%rdi
lea    0x18(%rsp),%rsi
call   1080 <read_line@plt>
mov    0x10(%rsp),%rdi
lea    0xe31(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     13d3 <main+0x263>
mov    0x10(%rsp),%rdi
mov    %rbx,%rsi
call   1090 <strtok@plt>
mov    %rax,%rbp
mov    %rax,%rdi
lea    0xdd0(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0x160>
mov    %rbp,%rdi
lea    0xdbf(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12e0 <main+0x170>
mov    %rbp,%rdi
lea    0xdaf(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12e8 <main+0x178>
mov    %rbp,%rdi
lea    0xda5(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12f0 <main+0x180>
mov    %rbp,%rdi
lea    0xd9a(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12f8 <main+0x188>
mov    %rbp,%rdi
lea    0xd8d(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1300 <main+0x190>
mov    %rbp,%rdi
lea    0xd82(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x1,%rax
mov    $0x8,%r14d
sbb    $0x0,%r14d
jmp    1310 <main+0x1a0>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x1,%r14d
jmp    1310 <main+0x1a0>
nopl   0x0(%rax,%rax,1)
mov    $0x2,%r14d
jmp    1310 <main+0x1a0>
mov    $0x3,%r14d
jmp    1310 <main+0x1a0>
mov    $0x4,%r14d
jmp    1310 <main+0x1a0>
mov    $0x5,%r14d
jmp    1310 <main+0x1a0>
mov    $0x6,%r14d
cs nopw 0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %rbx,%rsi
call   1090 <strtok@plt>
mov    %rax,%r13
xor    %edi,%edi
mov    %rbx,%rsi
call   1090 <strtok@plt>
mov    %rax,%rbp
xor    %edi,%edi
mov    %rbx,%rsi
call   1090 <strtok@plt>
mov    %rax,%r15
mov    %r13,%rdi
call   1040 <strlen@plt>
test   %al,%al
jle    1372 <main+0x202>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
movsbl 0x0(%r13,%r12,1),%eax
add    %eax,%r14d
add    $0xffffffd0,%r14d
add    $0x1,%r12
mov    %r13,%rdi
call   1040 <strlen@plt>
movsbq %al,%rax
cmp    %rax,%r12
jl     1350 <main+0x1e0>
mov    %rbp,%rdi
lea    0x20(%rsp),%rsi
mov    $0xa,%edx
call   1070 <strtol@plt>
movsbl %al,%eax
mov    0x20(%rsp),%rcx
movsbl (%rcx),%ebp
imul   %eax,%ebp
add    %r14d,%ebp
movsbl (%r15),%ebx
mov    %r15,%rdi
call   1040 <strlen@plt>
movsbl %al,%eax
imul   %ebx,%eax
sub    %eax,%ebp
cmp    $0x176f,%ebp
jg     11d0 <main+0x60>
lea    0xc8d(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    11e6 <main+0x76>
movl   $0x0,0xc(%rsp)
lea    0xcab(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    0x2bea(%rip),%rax
mov    (%rax),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"Monday\00"
@.str.1 = [8 x i8] c"Tuesday\00"
@.str.2 = [10 x i8] c"Wednesday\00"
@.str.3 = [9 x i8] c"Thursday\00"
@.str.4 = [7 x i8] c"Friday\00"
@.str.5 = [9 x i8] c"Saturday\00"
@.str.6 = [7 x i8] c"Sunday\00"
@__const.main.DAYS = [7 x i8*] [i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0)]
@.str.7 = [14 x i8] c"Enough dates!\00"
@.str.8 = [2 x i8] c"\\\00"
@.str.9 = [36 x i8] c"Keep searching, %s is not for you.\0A\00"
@.str.10 = [24 x i8] c"%s is perfect for you.\0A\00"
@.str.11 = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i8*]
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store i32 0, i32* %1
%14 = bitcast [7 x i8*]* %2 to i8*
store i8* null, i8** %3
store i64 0, i64* %4
%15 = call i32 @read_line(i8** %3, i64* %4)
store i32 0, i32* %6
br label %16
16: ; preds = %96, %0
%17 = load i8*, i8** %3
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %98
20: ; preds = %16
store i32 0, i32* %5
%21 = load i8*, i8** %3
%22 = call i8* @strtok(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %22, i8** %8
store i32 0, i32* %9
br label %23
23: ; preds = %36, %20
%24 = load i32, i32* %9
%25 = icmp slt i32 %24, 7
br i1 %25, label %26, label %39
26: ; preds = %23
%27 = load i8*, i8** %8
%28 = load i32, i32* %9
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [7 x i8*], [7 x i8*]* %2, i64 0, i64 %29
%31 = load i8*, i8** %30
%32 = call i64 @strcmp(i8* %27, i8* %31)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %26
br label %39
35: ; preds = %26
br label %36
36: ; preds = %35
%37 = load i32, i32* %9
%38 = add nsw i32 %37, 1
store i32 %38, i32* %9
br label %23
39: ; preds = %34, %23
%40 = load i32, i32* %9
%41 = add nsw i32 %40, 1
%42 = load i32, i32* %5
%43 = add nsw i32 %42, %41
store i32 %43, i32* %5
%44 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %44, i8** %10
%45 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %45, i8** %11
%46 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i8* %46, i8** %12
store i32 0, i32* %9
br label %47
47: ; preds = %63, %39
%48 = load i32, i32* %9
%49 = load i8*, i8** %10
%50 = call signext i8 @strlen(i8* %49)
%51 = sext i8 %50 to i32
%52 = icmp slt i32 %48, %51
br i1 %52, label %53, label %66
53: ; preds = %47
%54 = load i8*, i8** %10
%55 = load i32, i32* %9
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, i8* %54, i64 %56
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = sub nsw i32 %59, 48
%61 = load i32, i32* %5
%62 = add nsw i32 %61, %60
store i32 %62, i32* %5
br label %63
63: ; preds = %53
%64 = load i32, i32* %9
%65 = add nsw i32 %64, 1
store i32 %65, i32* %9
br label %47
66: ; preds = %47
%67 = load i8*, i8** %11
%68 = call signext i8 @strtol(i8* %67, i8** %13, i32 10)
%69 = sext i8 %68 to i32
%70 = load i8*, i8** %13
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = mul nsw i32 %69, %72
%74 = load i32, i32* %5
%75 = add nsw i32 %74, %73
store i32 %75, i32* %5
%76 = load i8*, i8** %12
%77 = getelementptr inbounds i8, i8* %76, i64 0
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = load i8*, i8** %12
%81 = call signext i8 @strlen(i8* %80)
%82 = sext i8 %81 to i32
%83 = mul nsw i32 %79, %82
%84 = load i32, i32* %5
%85 = sub nsw i32 %84, %83
store i32 %85, i32* %5
%86 = load i32, i32* %5
%87 = icmp slt i32 %86, 6000
br i1 %87, label %88, label %91
88: ; preds = %66
%89 = load i8*, i8** %12
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i8* %89)
br label %96
91: ; preds = %66
%92 = load i8*, i8** %12
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* %92)
%94 = load i32, i32* %6
%95 = add nsw i32 %94, 1
store i32 %95, i32* %6
br label %96
96: ; preds = %91, %88
%97 = call i32 @read_line(i8** %3, i64* %4)
br label %16
98: ; preds = %16
%99 = load i32, i32* %6
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %99)
%101 = load i8*, i8** %3
%102 = call i32 @free(i8* %101)
%103 = load i32, i32* @EXIT_SUCCESS
ret i32 %103
}

LLVM IR (-O2):
@.str = [7 x i8] c"Monday\00"
@.str.1 = [8 x i8] c"Tuesday\00"
@.str.2 = [10 x i8] c"Wednesday\00"
@.str.3 = [9 x i8] c"Thursday\00"
@.str.4 = [7 x i8] c"Friday\00"
@.str.5 = [9 x i8] c"Saturday\00"
@.str.6 = [7 x i8] c"Sunday\00"
@.str.7 = [14 x i8] c"Enough dates!\00"
@.str.8 = [2 x i8] c"\\\00"
@.str.9 = [36 x i8] c"Keep searching, %s is not for you.\0A\00"
@.str.10 = [24 x i8] c"%s is perfect for you.\0A\00"
@.str.11 = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i8*
%2 = alloca i64
%3 = alloca i8*
%4 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%5 = bitcast i64* %2 to i8*
store i64 0, i64* %2
%6 = call i32 @read_line(i8** %1, i64* %2)
%7 = load i8*, i8** %1
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %83, label %10
10: ; preds = %0
%11 = bitcast i8** %3 to i8*
br label %12
12: ; preds = %10, %77
%13 = phi i32 [ 0, %10 ], [ %78, %77 ]
%14 = load i8*, i8** %1
%15 = call i8* @strtok(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %37, label %18
18: ; preds = %12
%19 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %37, label %21
21: ; preds = %18
%22 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %37, label %24
24: ; preds = %21
%25 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %37, label %27
27: ; preds = %24
%28 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %37, label %30
30: ; preds = %27
%31 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %30
%34 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
%36 = select i1 %35, i32 7, i32 8
br label %37
37: ; preds = %33, %30, %27, %24, %21, %18, %12
%38 = phi i32 [ 1, %12 ], [ 2, %18 ], [ 3, %21 ], [ 4, %24 ], [ 5, %27 ], [ 6, %30 ], [ %36, %33 ]
%39 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%40 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%41 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%42 = call signext i8 @strlen(i8* %39)
%43 = icmp sgt i8 %42, 0
br i1 %43, label %44, label %56
44: ; preds = %37, %44
%45 = phi i64 [ %52, %44 ], [ 0, %37 ]
%46 = phi i32 [ %51, %44 ], [ %38, %37 ]
%47 = getelementptr inbounds i8, i8* %39, i64 %45
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = add i32 %46, -48
%51 = add i32 %50, %49
%52 = add nuw nsw i64 %45, 1
%53 = call signext i8 @strlen(i8* %39)
%54 = sext i8 %53 to i64
%55 = icmp slt i64 %52, %54
br i1 %55, label %44, label %56
56: ; preds = %44, %37
%57 = phi i32 [ %38, %37 ], [ %51, %44 ]
%58 = call signext i8 @strtol(i8* %40, i8** %3, i32 10)
%59 = sext i8 %58 to i32
%60 = load i8*, i8** %3
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = mul nsw i32 %62, %59
%64 = add nsw i32 %63, %57
%65 = load i8, i8* %41
%66 = sext i8 %65 to i32
%67 = call signext i8 @strlen(i8* %41)
%68 = sext i8 %67 to i32
%69 = mul nsw i32 %68, %66
%70 = sub i32 %64, %69
%71 = icmp slt i32 %70, 6000
br i1 %71, label %72, label %74
72: ; preds = %56
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i8* %41)
br label %77
74: ; preds = %56
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* %41)
%76 = add nsw i32 %13, 1
br label %77
77: ; preds = %74, %72
%78 = phi i32 [ %13, %72 ], [ %76, %74 ]
%79 = call i32 @read_line(i8** %1, i64* %2)
%80 = load i8*, i8** %1
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %12
83: ; preds = %77, %0
%84 = phi i32 [ 0, %0 ], [ %78, %77 ]
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %84)
%86 = load i8*, i8** %1
%87 = call i32 @free(i8* %86)
%88 = load i32, i32* @EXIT_SUCCESS
ret i32 %88
}