#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 */
struct cymkd_parser {
  int dummy;
};

/* Variables and functions */
int consume(struct cymkd_parser *);
scalar_t__ is_bullet(int);
scalar_t__ isdigit(char);
scalar_t__ isspace(char);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
char next(struct cymkd_parser *);
int ordered_list_internal(struct cymkd_parser *, char *);
int /*<<< orphan*/ parser_emit_string(struct cymkd_parser *, char *);
int strlen(char const *);
int /*<<< orphan*/ text_and_inline(struct cymkd_parser *);
int /*<<< orphan*/ unconsume(struct cymkd_parser *);
int unordered_list_internal(struct cymkd_parser *, int, char *);
bool ordered_list_line(struct cymkd_parser *parser, const char *curr_indent) {
  char indent[1024];
  int ch;
  int i;
  size_t curr_indent_len = strlen(curr_indent);
  size_t indent_len = 0;
  memset(indent, 0, 1024);
  while (isspace(next(parser)) && indent_len < 1024 - 1) {
    ch = consume(parser);
    indent[indent_len++] = ch;
  }
  if (indent_len != curr_indent_len) {
    ch = next(parser);
    for (i = 0; i < strlen(indent); i++) {
      unconsume(parser);
    }
    if (is_bullet(ch) && indent_len > curr_indent_len) {
      return unordered_list_internal(parser, ch, indent);
    } else if (isdigit(ch) && indent_len > curr_indent_len) {
      return ordered_list_internal(parser, indent);
    } else if (indent_len < curr_indent_len) {
      return false;
    }
  }
  int number_length = 0;
  while (isdigit(next(parser))) {
    consume(parser);
    number_length++;
  }
  if (next(parser) != '.' && next(parser) != ')') {
    for (int i = 0; i < number_length; i++) {
      unconsume(parser);
    }
    return false;
  }
  consume(parser);
  parser_emit_string(parser, "<li>");
  while (next(parser) == ' ') {
    consume(parser);
  }
  if (!text_and_inline(parser)) {
    return false;
  }
  parser_emit_string(parser, "</li>");
  return true;
}


x86 assembly (clang, -O0):
<ordered_list_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <strlen@plt>
cltq
mov    %rax,-0x430(%rbp)
movq   $0x0,-0x438(%rbp)
lea    -0x420(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1080 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x441(%rbp)
je     123d <ordered_list_line+0x7d>
cmpq   $0x3ff,-0x438(%rbp)
setb   %al
mov    %al,-0x441(%rbp)
mov    -0x441(%rbp),%al
test   $0x1,%al
jne    1250 <ordered_list_line+0x90>
jmp    1288 <ordered_list_line+0xc8>
mov    -0x10(%rbp),%rdi
call   10b0 <consume@plt>
mov    %eax,-0x424(%rbp)
mov    -0x424(%rbp),%eax
mov    %al,%cl
mov    -0x438(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x438(%rbp)
mov    %cl,-0x420(%rbp,%rax,1)
jmp    1203 <ordered_list_line+0x43>
mov    -0x438(%rbp),%rax
cmp    -0x430(%rbp),%rax
je     13b7 <ordered_list_line+0x1f7>
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%eax
mov    %eax,-0x424(%rbp)
movl   $0x0,-0x428(%rbp)
mov    -0x428(%rbp),%eax
mov    %eax,-0x448(%rbp)
lea    -0x420(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0x448(%rbp),%eax
cmp    %ecx,%eax
jge    12fd <ordered_list_line+0x13d>
mov    -0x10(%rbp),%rdi
call   1060 <unconsume@plt>
mov    -0x428(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x428(%rbp)
jmp    12b8 <ordered_list_line+0xf8>
mov    -0x424(%rbp),%edi
call   1040 <is_bullet@plt>
cmp    $0x0,%rax
je     1344 <ordered_list_line+0x184>
mov    -0x438(%rbp),%rax
cmp    -0x430(%rbp),%rax
jbe    1344 <ordered_list_line+0x184>
mov    -0x10(%rbp),%rdi
mov    -0x424(%rbp),%esi
lea    -0x420(%rbp),%rdx
call   10e0 <unordered_list_internal@plt>
mov    %eax,-0x4(%rbp)
jmp    14d9 <ordered_list_line+0x319>
mov    -0x424(%rbp),%eax
movsbl %al,%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1388 <ordered_list_line+0x1c8>
mov    -0x438(%rbp),%rax
cmp    -0x430(%rbp),%rax
jbe    1388 <ordered_list_line+0x1c8>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rsi
call   10a0 <ordered_list_internal@plt>
mov    %eax,-0x4(%rbp)
jmp    14d9 <ordered_list_line+0x319>
mov    -0x438(%rbp),%rax
cmp    -0x430(%rbp),%rax
jae    13a8 <ordered_list_line+0x1e8>
movl   $0x0,-0x4(%rbp)
jmp    14d9 <ordered_list_line+0x319>
jmp    13ad <ordered_list_line+0x1ed>
jmp    13b2 <ordered_list_line+0x1f2>
jmp    13b7 <ordered_list_line+0x1f7>
movl   $0x0,-0x43c(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     13f9 <ordered_list_line+0x239>
mov    -0x10(%rbp),%rdi
call   10b0 <consume@plt>
mov    -0x43c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x43c(%rbp)
jmp    13c1 <ordered_list_line+0x201>
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%eax
cmp    $0x2e,%eax
je     1468 <ordered_list_line+0x2a8>
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%eax
cmp    $0x29,%eax
je     1468 <ordered_list_line+0x2a8>
movl   $0x0,-0x440(%rbp)
mov    -0x440(%rbp),%eax
cmp    -0x43c(%rbp),%eax
jge    145c <ordered_list_line+0x29c>
mov    -0x10(%rbp),%rdi
call   1060 <unconsume@plt>
mov    -0x440(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x440(%rbp)
jmp    142d <ordered_list_line+0x26d>
movl   $0x0,-0x4(%rbp)
jmp    14d9 <ordered_list_line+0x319>
mov    -0x10(%rbp),%rdi
call   10b0 <consume@plt>
mov    -0x10(%rbp),%rdi
lea    0xb84(%rip),%rsi
call   10d0 <parser_emit_string@plt>
mov    -0x10(%rbp),%rdi
call   1090 <next@plt>
movsbl %al,%eax
cmp    $0x20,%eax
jne    14a4 <ordered_list_line+0x2e4>
mov    -0x10(%rbp),%rdi
call   10b0 <consume@plt>
jmp    1481 <ordered_list_line+0x2c1>
mov    -0x10(%rbp),%rdi
call   10c0 <text_and_inline@plt>
cmp    $0x0,%eax
jne    14c2 <ordered_list_line+0x302>
movl   $0x0,-0x4(%rbp)
jmp    14d9 <ordered_list_line+0x319>
mov    -0x10(%rbp),%rdi
lea    0xb38(%rip),%rsi
call   10d0 <parser_emit_string@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ordered_list_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    %rdi,%r13
mov    %rsi,%rdi
call   1050 <strlen@plt>
movslq %eax,%r15
mov    %rsp,%rdi
xor    %ebx,%ebx
xor    %esi,%esi
mov    $0x400,%edx
call   1070 <memset@plt>
mov    %r13,%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1080 <isspace@plt>
test   %rax,%rax
je     1240 <ordered_list_line+0x80>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   10b0 <consume@plt>
lea    0x1(%rbp),%rbx
mov    %al,(%rsp,%rbp,1)
mov    %r13,%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1080 <isspace@plt>
test   %rax,%rax
je     1240 <ordered_list_line+0x80>
cmp    $0x3fe,%rbp
mov    %rbx,%rbp
jb     1210 <ordered_list_line+0x50>
cmp    %r15,%rbx
jne    12d6 <ordered_list_line+0x116>
mov    %r13,%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1030 <isdigit@plt>
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
test   %rax,%rax
je     1282 <ordered_list_line+0xc2>
call   10b0 <consume@plt>
add    $0x1,%ebp
mov    %r13,%rdi
call   1090 <next@plt>
movsbl %al,%edi
call   1030 <isdigit@plt>
jmp    1260 <ordered_list_line+0xa0>
call   1090 <next@plt>
cmp    $0x2e,%al
je     129b <ordered_list_line+0xdb>
mov    %r13,%rdi
call   1090 <next@plt>
cmp    $0x29,%al
jne    1383 <ordered_list_line+0x1c3>
mov    %r13,%rdi
call   10b0 <consume@plt>
lea    0xd56(%rip),%rsi
mov    %r13,%rdi
call   10d0 <parser_emit_string@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r13,%rdi
call   1090 <next@plt>
mov    %r13,%rdi
cmp    $0x20,%al
jne    133c <ordered_list_line+0x17c>
call   10b0 <consume@plt>
jmp    12c0 <ordered_list_line+0x100>
mov    %r13,%rdi
call   1090 <next@plt>
movsbl %al,%r14d
mov    %rsp,%rdi
call   1050 <strlen@plt>
test   %eax,%eax
jle    1317 <ordered_list_line+0x157>
xor    %ebp,%ebp
mov    %rsp,%r12
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r13,%rdi
call   1060 <unconsume@plt>
add    $0x1,%ebp
mov    %r12,%rdi
call   1050 <strlen@plt>
cmp    %eax,%ebp
jl     1300 <ordered_list_line+0x140>
mov    %r14d,%edi
call   1040 <is_bullet@plt>
test   %rax,%rax
je     135c <ordered_list_line+0x19c>
cmp    %r15,%rbx
jbe    135c <ordered_list_line+0x19c>
mov    %rsp,%rdx
mov    %r13,%rdi
mov    %r14d,%esi
call   10e0 <unordered_list_internal@plt>
mov    %eax,%r14d
jmp    13ab <ordered_list_line+0x1eb>
call   10c0 <text_and_inline@plt>
test   %eax,%eax
je     137e <ordered_list_line+0x1be>
lea    0xcb9(%rip),%rsi
mov    %r13,%rdi
call   10d0 <parser_emit_string@plt>
mov    $0x1,%r14d
jmp    13ab <ordered_list_line+0x1eb>
mov    %r14d,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     139f <ordered_list_line+0x1df>
cmp    %r15,%rbx
jbe    139f <ordered_list_line+0x1df>
mov    %rsp,%rsi
mov    %r13,%rdi
call   10a0 <ordered_list_internal@plt>
mov    %eax,%r14d
jmp    13ab <ordered_list_line+0x1eb>
xor    %r14d,%r14d
jmp    13ab <ordered_list_line+0x1eb>
xor    %r14d,%r14d
test   %ebp,%ebp
je     13ab <ordered_list_line+0x1eb>
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1060 <unconsume@plt>
add    $0xffffffff,%ebp
jne    1390 <ordered_list_line+0x1d0>
jmp    13ab <ordered_list_line+0x1eb>
xor    %r14d,%r14d
cmp    %r15,%rbx
jae    1249 <ordered_list_line+0x89>
mov    %r14d,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.cymkd_parser = type { i32 }
@.str = [5 x i8] c"<li>\00"
@.str.1 = [6 x i8] c"</li>\00"
define i32 @ordered_list_line(%struct.cymkd_parser* %0, i8* %1) {
%3 = alloca i32
%4 = alloca %struct.cymkd_parser*
%5 = alloca i8*
%6 = alloca [1024 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
store %struct.cymkd_parser* %0, %struct.cymkd_parser** %4
store i8* %1, i8** %5
%13 = load i8*, i8** %5
%14 = call i32 @strlen(i8* %13)
%15 = sext i32 %14 to i64
store i64 %15, i64* %9
store i64 0, i64* %10
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%17 = call i32 @memset(i8* %16, i32 0, i32 1024)
br label %18
18: ; preds = %28, %2
%19 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%20 = call signext i8 @next(%struct.cymkd_parser* %19)
%21 = call i64 @isspace(i8 signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i64, i64* %10
%25 = icmp ult i64 %24, 1023
br label %26
26: ; preds = %23, %18
%27 = phi i1 [ false, %18 ], [ %25, %23 ]
br i1 %27, label %28, label %36
28: ; preds = %26
%29 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%30 = call i32 @consume(%struct.cymkd_parser* %29)
store i32 %30, i32* %7
%31 = load i32, i32* %7
%32 = trunc i32 %31 to i8
%33 = load i64, i64* %10
%34 = add i64 %33, 1
store i64 %34, i64* %10
%35 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 %33
store i8 %32, i8* %35
br label %18
36: ; preds = %26
%37 = load i64, i64* %10
%38 = load i64, i64* %9
%39 = icmp ne i64 %37, %38
br i1 %39, label %40, label %89
40: ; preds = %36
%41 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%42 = call signext i8 @next(%struct.cymkd_parser* %41)
%43 = sext i8 %42 to i32
store i32 %43, i32* %7
store i32 0, i32* %8
br label %44
44: ; preds = %52, %40
%45 = load i32, i32* %8
%46 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%47 = call i32 @strlen(i8* %46)
%48 = icmp slt i32 %45, %47
br i1 %48, label %49, label %55
49: ; preds = %44
%50 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%51 = call i32 @unconsume(%struct.cymkd_parser* %50)
br label %52
52: ; preds = %49
%53 = load i32, i32* %8
%54 = add nsw i32 %53, 1
store i32 %54, i32* %8
br label %44
55: ; preds = %44
%56 = load i32, i32* %7
%57 = call i64 @is_bullet(i32 %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %68
59: ; preds = %55
%60 = load i64, i64* %10
%61 = load i64, i64* %9
%62 = icmp ugt i64 %60, %61
br i1 %62, label %63, label %68
63: ; preds = %59
%64 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%65 = load i32, i32* %7
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%67 = call i32 @unordered_list_internal(%struct.cymkd_parser* %64, i32 %65, i8* %66)
store i32 %67, i32* %3
br label %143
68: ; preds = %59, %55
%69 = load i32, i32* %7
%70 = trunc i32 %69 to i8
%71 = call i64 @isdigit(i8 signext %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %81
73: ; preds = %68
%74 = load i64, i64* %10
%75 = load i64, i64* %9
%76 = icmp ugt i64 %74, %75
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%79 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%80 = call i32 @ordered_list_internal(%struct.cymkd_parser* %78, i8* %79)
store i32 %80, i32* %3
br label %143
81: ; preds = %73, %68
%82 = load i64, i64* %10
%83 = load i64, i64* %9
%84 = icmp ult i64 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %81
store i32 0, i32* %3
br label %143
86: ; preds = %81
br label %87
87: ; preds = %86
br label %88
88: ; preds = %87
br label %89
89: ; preds = %88, %36
store i32 0, i32* %11
br label %90
90: ; preds = %95, %89
%91 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%92 = call signext i8 @next(%struct.cymkd_parser* %91)
%93 = call i64 @isdigit(i8 signext %92)
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %90
%96 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%97 = call i32 @consume(%struct.cymkd_parser* %96)
%98 = load i32, i32* %11
%99 = add nsw i32 %98, 1
store i32 %99, i32* %11
br label %90
100: ; preds = %90
%101 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%102 = call signext i8 @next(%struct.cymkd_parser* %101)
%103 = sext i8 %102 to i32
%104 = icmp ne i32 %103, 46
br i1 %104, label %105, label %122
105: ; preds = %100
%106 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%107 = call signext i8 @next(%struct.cymkd_parser* %106)
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %108, 41
br i1 %109, label %110, label %122
110: ; preds = %105
store i32 0, i32* %12
br label %111
111: ; preds = %118, %110
%112 = load i32, i32* %12
%113 = load i32, i32* %11
%114 = icmp slt i32 %112, %113
br i1 %114, label %115, label %121
115: ; preds = %111
%116 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%117 = call i32 @unconsume(%struct.cymkd_parser* %116)
br label %118
118: ; preds = %115
%119 = load i32, i32* %12
%120 = add nsw i32 %119, 1
store i32 %120, i32* %12
br label %111
121: ; preds = %111
store i32 0, i32* %3
br label %143
122: ; preds = %105, %100
%123 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%124 = call i32 @consume(%struct.cymkd_parser* %123)
%125 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%126 = call i32 @parser_emit_string(%struct.cymkd_parser* %125, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %127
127: ; preds = %132, %122
%128 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%129 = call signext i8 @next(%struct.cymkd_parser* %128)
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 32
br i1 %131, label %132, label %135
132: ; preds = %127
%133 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%134 = call i32 @consume(%struct.cymkd_parser* %133)
br label %127
135: ; preds = %127
%136 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%137 = call i32 @text_and_inline(%struct.cymkd_parser* %136)
%138 = icmp ne i32 %137, 0
br i1 %138, label %140, label %139
139: ; preds = %135
store i32 0, i32* %3
br label %143
140: ; preds = %135
%141 = load %struct.cymkd_parser*, %struct.cymkd_parser** %4
%142 = call i32 @parser_emit_string(%struct.cymkd_parser* %141, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %143
143: ; preds = %140, %139, %121, %85, %77, %63
%144 = load i32, i32* %3
ret i32 %144
}

LLVM IR (-O2):
%struct.cymkd_parser = type { i32 }
@.str = [5 x i8] c"<li>\00"
@.str.1 = [6 x i8] c"</li>\00"
define i32 @ordered_list_line(%struct.cymkd_parser* %0, i8* %1) {
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%5 = tail call i32 @strlen(i8* %1)
%6 = sext i32 %5 to i64
%7 = call i32 @memset(i8* %4, i32 0, i32 1024)
%8 = call signext i8 @next(%struct.cymkd_parser* %0)
%9 = call i64 @isspace(i8 signext %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %22, label %11
11: ; preds = %2, %11
%12 = phi i64 [ %15, %11 ], [ 0, %2 ]
%13 = call i32 @consume(%struct.cymkd_parser* %0)
%14 = trunc i32 %13 to i8
%15 = add nuw nsw i64 %12, 1
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 %12
store i8 %14, i8* %16
%17 = call signext i8 @next(%struct.cymkd_parser* %0)
%18 = call i64 @isspace(i8 signext %17)
%19 = icmp ne i64 %18, 0
%20 = icmp ult i64 %12, 1022
%21 = select i1 %19, i1 %20, i1 false
br i1 %21, label %11, label %22
22: ; preds = %11, %2
%23 = phi i64 [ 0, %2 ], [ %15, %11 ]
%24 = icmp eq i64 %23, %6
br i1 %24, label %51, label %25
25: ; preds = %22
%26 = call signext i8 @next(%struct.cymkd_parser* %0)
%27 = sext i8 %26 to i32
%28 = call i32 @strlen(i8* %4)
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %25, %30
%31 = phi i32 [ %33, %30 ], [ 0, %25 ]
%32 = call i32 @unconsume(%struct.cymkd_parser* %0)
%33 = add nuw nsw i32 %31, 1
%34 = call i32 @strlen(i8* %4)
%35 = icmp slt i32 %33, %34
br i1 %35, label %30, label %36
36: ; preds = %30, %25
%37 = call i64 @is_bullet(i32 %27)
%38 = icmp ne i64 %37, 0
%39 = icmp ugt i64 %23, %6
%40 = select i1 %38, i1 %39, i1 false
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = call i32 @unordered_list_internal(%struct.cymkd_parser* %0, i32 %27, i8* %4)
br label %90
43: ; preds = %36
%44 = call i64 @isdigit(i8 signext %26)
%45 = icmp ne i64 %44, 0
%46 = select i1 %45, i1 %39, i1 false
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 @ordered_list_internal(%struct.cymkd_parser* %0, i8* %4)
br label %90
49: ; preds = %43
%50 = icmp ult i64 %23, %6
br i1 %50, label %90, label %51
51: ; preds = %49, %22
%52 = call signext i8 @next(%struct.cymkd_parser* %0)
%53 = call i64 @isdigit(i8 signext %52)
%54 = icmp eq i64 %53, 0
br i1 %54, label %62, label %55
55: ; preds = %51, %55
%56 = phi i32 [ %58, %55 ], [ 0, %51 ]
%57 = call i32 @consume(%struct.cymkd_parser* %0)
%58 = add nuw nsw i32 %56, 1
%59 = call signext i8 @next(%struct.cymkd_parser* %0)
%60 = call i64 @isdigit(i8 signext %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %55
62: ; preds = %55, %51
%63 = phi i32 [ 0, %51 ], [ %58, %55 ]
%64 = call signext i8 @next(%struct.cymkd_parser* %0)
%65 = icmp eq i8 %64, 46
br i1 %65, label %76, label %66
66: ; preds = %62
%67 = call signext i8 @next(%struct.cymkd_parser* %0)
%68 = icmp eq i8 %67, 41
br i1 %68, label %76, label %69
69: ; preds = %66
%70 = icmp eq i32 %63, 0
br i1 %70, label %90, label %71
71: ; preds = %69, %71
%72 = phi i32 [ %74, %71 ], [ 0, %69 ]
%73 = call i32 @unconsume(%struct.cymkd_parser* %0)
%74 = add nuw i32 %72, 1
%75 = icmp eq i32 %74, %63
br i1 %75, label %90, label %71
76: ; preds = %66, %62
%77 = call i32 @consume(%struct.cymkd_parser* %0)
%78 = call i32 @parser_emit_string(%struct.cymkd_parser* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%79 = call signext i8 @next(%struct.cymkd_parser* %0)
%80 = icmp eq i8 %79, 32
br i1 %80, label %81, label %85
81: ; preds = %76, %81
%82 = call i32 @consume(%struct.cymkd_parser* %0)
%83 = call signext i8 @next(%struct.cymkd_parser* %0)
%84 = icmp eq i8 %83, 32
br i1 %84, label %81, label %85
85: ; preds = %81, %76
%86 = call i32 @text_and_inline(%struct.cymkd_parser* %0)
%87 = icmp eq i32 %86, 0
br i1 %87, label %90, label %88
88: ; preds = %85
%89 = call i32 @parser_emit_string(%struct.cymkd_parser* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %90
90: ; preds = %71, %69, %88, %85, %49, %47, %41
%91 = phi i32 [ %42, %41 ], [ %48, %47 ], [ 0, %49 ], [ 1, %88 ], [ 0, %85 ], [ 0, %69 ], [ 0, %71 ]
ret i32 %91
}