#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 WEXITSTATUS(int);
scalar_t__ WIFEXITED(int);
int /*<<< orphan*/ exit(int);
scalar_t__ fork();
int /*<<< orphan*/ matches_one_of_these_characters(char, int, char, char);
scalar_t__ matches_this_character(char, float);
int /*<<< orphan*/ printf(char *, ...);
char safely_get_character(char const *, int, int, int);
scalar_t__ split(int, int /*<<< orphan*/);
scalar_t__ wait(int *);
int regex_search_at_offset(const char *str, int str_len, int offset) {
  int status = 0;
  if (fork() > 0) {
    while (wait(&status) > 0)
      ;
    if (WIFEXITED(status)) {
      return WEXITSTATUS(status);
    } else {
      printf("Unexpected Error Case.\n");
      exit(1);
    }
  } else {
    int pos = 0;
    char current_character;
    current_character = safely_get_character(str, offset, pos, str_len);
    if (matches_this_character(current_character, 'a')) {
      pos++;
    } else {
      exit(1);
    }
    current_character = safely_get_character(str, offset, pos, str_len);
    if (matches_this_character(current_character, 'b')) {
      pos++;
    } else {
      exit(1);
    }
  node_8:
    if (split(1, 0) > 0) {
      current_character = safely_get_character(str, offset, pos, str_len);
      if (!matches_one_of_these_characters(current_character, 2, '\n', '\r')) {
        pos++;
      } else {
        exit(1);
      }
      goto node_8;
    } else {
      current_character = safely_get_character(str, offset, pos, str_len);
      if (matches_this_character(current_character, 'd')) {
        pos++;
      } else {
        exit(1);
      }
    node_5:
      if (split(1, 0) > 0) {
        current_character = safely_get_character(str, offset, pos, str_len);
        if (!matches_one_of_these_characters(current_character, 2, '\n',
                                             '\r')) {
          pos++;
        } else {
          exit(1);
        }
        goto node_5;
      } else {
        current_character = safely_get_character(str, offset, pos, str_len);
        if (matches_this_character(current_character, 'f')) {
          pos++;
        } else {
          exit(1);
        }
        printf("Found this match of length %d starting at offset %d:\n", pos,
               offset);
        for (int i = 0; i < pos; i++) {
          printf("%c", str[offset + i]);
        }
        printf("\n");
        exit(0);
      }
    }
  }
}


x86 assembly (clang, -O0):
<regex_search_at_offset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x0,%al
call   10c0 <fork@plt>
cmp    $0x0,%rax
jle    121f <regex_search_at_offset+0x7f>
jmp    11cf <regex_search_at_offset+0x2f>
lea    -0x14(%rbp),%rdi
call   10b0 <wait@plt>
cmp    $0x0,%rax
jle    11e7 <regex_search_at_offset+0x47>
jmp    11cf <regex_search_at_offset+0x2f>
mov    -0x14(%rbp),%edi
call   1090 <WIFEXITED@plt>
cmp    $0x0,%rax
je     1207 <regex_search_at_offset+0x67>
mov    -0x14(%rbp),%edi
call   1070 <WEXITSTATUS@plt>
add    $0x20,%rsp
pop    %rbp
ret
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
movss  0xdbd(%rip),%xmm0
movsbl -0x19(%rbp),%edi
call   1060 <matches_this_character@plt>
cmp    $0x0,%rax
je     1264 <regex_search_at_offset+0xc4>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    126e <regex_search_at_offset+0xce>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
movss  0xd79(%rip),%xmm0
movsbl -0x19(%rbp),%edi
call   1060 <matches_this_character@plt>
cmp    $0x0,%rax
je     12ac <regex_search_at_offset+0x10c>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12b6 <regex_search_at_offset+0x116>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    12bb <regex_search_at_offset+0x11b>
mov    $0x1,%edi
xor    %esi,%esi
call   1050 <split@plt>
cmp    $0x0,%rax
jle    1324 <regex_search_at_offset+0x184>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
mov    $0x2,%esi
mov    $0xa,%edx
mov    $0xd,%ecx
movsbl -0x19(%rbp),%edi
call   1040 <matches_one_of_these_characters@plt>
cmp    $0x0,%eax
jne    1315 <regex_search_at_offset+0x175>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    131f <regex_search_at_offset+0x17f>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    12bb <regex_search_at_offset+0x11b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
movss  0xcc7(%rip),%xmm0
movsbl -0x19(%rbp),%edi
call   1060 <matches_this_character@plt>
cmp    $0x0,%rax
je     1362 <regex_search_at_offset+0x1c2>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    136c <regex_search_at_offset+0x1cc>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    1371 <regex_search_at_offset+0x1d1>
mov    $0x1,%edi
xor    %esi,%esi
call   1050 <split@plt>
cmp    $0x0,%rax
jle    13da <regex_search_at_offset+0x23a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
mov    $0x2,%esi
mov    $0xa,%edx
mov    $0xd,%ecx
movsbl -0x19(%rbp),%edi
call   1040 <matches_one_of_these_characters@plt>
cmp    $0x0,%eax
jne    13cb <regex_search_at_offset+0x22b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13d5 <regex_search_at_offset+0x235>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    1371 <regex_search_at_offset+0x1d1>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0xc(%rbp),%ecx
call   1080 <safely_get_character@plt>
mov    %al,-0x19(%rbp)
movss  0xc15(%rip),%xmm0
movsbl -0x19(%rbp),%edi
call   1060 <matches_this_character@plt>
cmp    $0x0,%rax
je     1418 <regex_search_at_offset+0x278>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1422 <regex_search_at_offset+0x282>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x18(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xbf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1476 <regex_search_at_offset+0x2d6>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xbfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    143d <regex_search_at_offset+0x29d>
lea    0xba9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<regex_search_at_offset>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r14
movl   $0x0,0x4(%rsp)
xor    %eax,%eax
call   10e0 <fork@plt>
test   %rax,%rax
jle    1227 <regex_search_at_offset+0x67>
lea    0x4(%rsp),%rbx
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   10d0 <wait@plt>
test   %rax,%rax
jg     11f0 <regex_search_at_offset+0x30>
mov    0x4(%rsp),%edi
call   10b0 <WIFEXITED@plt>
test   %rax,%rax
je     1348 <regex_search_at_offset+0x188>
mov    0x4(%rsp),%edi
call   1090 <WEXITSTATUS@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14,%rdi
mov    %ebp,%esi
xor    %edx,%edx
mov    %ebx,%ecx
call   10a0 <safely_get_character@plt>
movsbl %al,%edi
movss  0xdc0(%rip),%xmm0
call   1080 <matches_this_character@plt>
test   %rax,%rax
je     1370 <regex_search_at_offset+0x1b0>
mov    %r14,%rdi
mov    %ebp,%esi
mov    $0x1,%edx
mov    %ebx,%ecx
call   10a0 <safely_get_character@plt>
movsbl %al,%edi
movss  0xd9a(%rip),%xmm0
call   1080 <matches_this_character@plt>
test   %rax,%rax
je     1370 <regex_search_at_offset+0x1b0>
mov    $0x1,%edi
xor    %esi,%esi
call   1070 <split@plt>
mov    $0x2,%r15d
test   %rax,%rax
jle    12d8 <regex_search_at_offset+0x118>
mov    $0x2,%r15d
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   10a0 <safely_get_character@plt>
movsbl %al,%edi
mov    $0x2,%esi
mov    $0xa,%edx
mov    $0xd,%ecx
call   1060 <matches_one_of_these_characters@plt>
test   %eax,%eax
jne    1370 <regex_search_at_offset+0x1b0>
add    $0x1,%r15d
mov    $0x1,%edi
xor    %esi,%esi
call   1070 <split@plt>
test   %rax,%rax
jg     1295 <regex_search_at_offset+0xd5>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
mov    %ebx,%ecx
call   10a0 <safely_get_character@plt>
movsbl %al,%edi
movss  0xd16(%rip),%xmm0
call   1080 <matches_this_character@plt>
test   %rax,%rax
je     1370 <regex_search_at_offset+0x1b0>
add    $0x2,%r15d
lea    -0x1(%r15),%r12d
mov    $0x1,%edi
xor    %esi,%esi
call   1070 <split@plt>
mov    %rax,%r13
mov    %r14,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %ebx,%ecx
call   10a0 <safely_get_character@plt>
movsbl %al,%edi
test   %r13,%r13
jle    135e <regex_search_at_offset+0x19e>
mov    $0x2,%esi
mov    $0xa,%edx
mov    $0xd,%ecx
call   1060 <matches_one_of_these_characters@plt>
add    $0x1,%r15d
test   %eax,%eax
je     1300 <regex_search_at_offset+0x140>
jmp    1370 <regex_search_at_offset+0x1b0>
lea    0xcf7(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
movss  0xca6(%rip),%xmm0
call   1080 <matches_this_character@plt>
test   %rax,%rax
jne    137a <regex_search_at_offset+0x1ba>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xc8f(%rip),%rdi
xor    %ebx,%ebx
mov    %r15d,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
movslq %ebp,%rax
add    %rax,%r14
mov    %r15d,%ebp
movsbl (%r14,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1398 <regex_search_at_offset+0x1d8>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"Unexpected Error Case.\0A\00"
@.str.1 = [54 x i8] c"Found this match of length %d starting at offset %d:\0A\00"
@.str.2 = [3 x i8] c"%c\00"
@.str.3 = [2 x i8] c"\0A\00"
define i32 @regex_search_at_offset(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8
%10 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
store i32 0, i32* %7
%11 = call i64 (...) @fork()
%12 = icmp sgt i64 %11, 0
br i1 %12, label %13, label %28
13: ; preds = %3
br label %14
14: ; preds = %17, %13
%15 = call i64 @wait(i32* %7)
%16 = icmp sgt i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %14
br label %14
18: ; preds = %14
%19 = load i32, i32* %7
%20 = call i64 @WIFEXITED(i32 %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, i32* %7
%24 = call i32 @WEXITSTATUS(i32 %23)
ret i32 %24
25: ; preds = %18
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
28: ; preds = %3
store i32 0, i32* %8
%29 = load i8*, i8** %4
%30 = load i32, i32* %6
%31 = load i32, i32* %8
%32 = load i32, i32* %5
%33 = call signext i8 @safely_get_character(i8* %29, i32 %30, i32 %31, i32 %32)
store i8 %33, i8* %9
%34 = load i8, i8* %9
%35 = call i64 @matches_this_character(i8 signext %34, float 9.700000e+01)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %28
%38 = load i32, i32* %8
%39 = add nsw i32 %38, 1
store i32 %39, i32* %8
br label %42
40: ; preds = %28
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %37
%43 = load i8*, i8** %4
%44 = load i32, i32* %6
%45 = load i32, i32* %8
%46 = load i32, i32* %5
%47 = call signext i8 @safely_get_character(i8* %43, i32 %44, i32 %45, i32 %46)
store i8 %47, i8* %9
%48 = load i8, i8* %9
%49 = call i64 @matches_this_character(i8 signext %48, float 9.800000e+01)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %42
%52 = load i32, i32* %8
%53 = add nsw i32 %52, 1
store i32 %53, i32* %8
br label %56
54: ; preds = %42
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %51
br label %57
57: ; preds = %74, %56
%58 = call i64 @split(i32 1, i32 0)
%59 = icmp sgt i64 %58, 0
br i1 %59, label %60, label %75
60: ; preds = %57
%61 = load i8*, i8** %4
%62 = load i32, i32* %6
%63 = load i32, i32* %8
%64 = load i32, i32* %5
%65 = call signext i8 @safely_get_character(i8* %61, i32 %62, i32 %63, i32 %64)
store i8 %65, i8* %9
%66 = load i8, i8* %9
%67 = call i32 @matches_one_of_these_characters(i8 signext %66, i32 2, i8 signext 10, i8 signext 13)
%68 = icmp ne i32 %67, 0
br i1 %68, label %72, label %69
69: ; preds = %60
%70 = load i32, i32* %8
%71 = add nsw i32 %70, 1
store i32 %71, i32* %8
br label %74
72: ; preds = %60
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %69
br label %57
75: ; preds = %57
%76 = load i8*, i8** %4
%77 = load i32, i32* %6
%78 = load i32, i32* %8
%79 = load i32, i32* %5
%80 = call signext i8 @safely_get_character(i8* %76, i32 %77, i32 %78, i32 %79)
store i8 %80, i8* %9
%81 = load i8, i8* %9
%82 = call i64 @matches_this_character(i8 signext %81, float 1.000000e+02)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %75
%85 = load i32, i32* %8
%86 = add nsw i32 %85, 1
store i32 %86, i32* %8
br label %89
87: ; preds = %75
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %84
br label %90
90: ; preds = %107, %89
%91 = call i64 @split(i32 1, i32 0)
%92 = icmp sgt i64 %91, 0
br i1 %92, label %93, label %108
93: ; preds = %90
%94 = load i8*, i8** %4
%95 = load i32, i32* %6
%96 = load i32, i32* %8
%97 = load i32, i32* %5
%98 = call signext i8 @safely_get_character(i8* %94, i32 %95, i32 %96, i32 %97)
store i8 %98, i8* %9
%99 = load i8, i8* %9
%100 = call i32 @matches_one_of_these_characters(i8 signext %99, i32 2, i8 signext 10, i8 signext 13)
%101 = icmp ne i32 %100, 0
br i1 %101, label %105, label %102
102: ; preds = %93
%103 = load i32, i32* %8
%104 = add nsw i32 %103, 1
store i32 %104, i32* %8
br label %107
105: ; preds = %93
%106 = call i32 @exit(i32 1)
unreachable
107: ; preds = %102
br label %90
108: ; preds = %90
%109 = load i8*, i8** %4
%110 = load i32, i32* %6
%111 = load i32, i32* %8
%112 = load i32, i32* %5
%113 = call signext i8 @safely_get_character(i8* %109, i32 %110, i32 %111, i32 %112)
store i8 %113, i8* %9
%114 = load i8, i8* %9
%115 = call i64 @matches_this_character(i8 signext %114, float 1.020000e+02)
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %120
117: ; preds = %108
%118 = load i32, i32* %8
%119 = add nsw i32 %118, 1
store i32 %119, i32* %8
br label %122
120: ; preds = %108
%121 = call i32 @exit(i32 1)
unreachable
122: ; preds = %117
%123 = load i32, i32* %8
%124 = load i32, i32* %6
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), i32 %123, i32 %124)
store i32 0, i32* %10
br label %126
126: ; preds = %140, %122
%127 = load i32, i32* %10
%128 = load i32, i32* %8
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %143
130: ; preds = %126
%131 = load i8*, i8** %4
%132 = load i32, i32* %6
%133 = load i32, i32* %10
%134 = add nsw i32 %132, %133
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, i8* %131, i64 %135
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %138)
br label %140
140: ; preds = %130
%141 = load i32, i32* %10
%142 = add nsw i32 %141, 1
store i32 %142, i32* %10
br label %126
143: ; preds = %126
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%145 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.1 = [54 x i8] c"Found this match of length %d starting at offset %d:\0A\00"
@str = [23 x i8] c"Unexpected Error Case.\00"
define i32 @regex_search_at_offset(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%6 = tail call i64 (...) @fork()
%7 = icmp sgt i64 %6, 0
br i1 %7, label %8, label %21
8: ; preds = %3, %8
%9 = call i64 @wait(i32* %4)
%10 = icmp sgt i64 %9, 0
br i1 %10, label %8, label %11
11: ; preds = %8
%12 = load i32, i32* %4
%13 = call i64 @WIFEXITED(i32 %12)
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %11
%16 = load i32, i32* %4
%17 = call i32 @WEXITSTATUS(i32 %16)
ret i32 %17
18: ; preds = %11
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %3
%22 = tail call signext i8 @safely_get_character(i8* %0, i32 %2, i32 0, i32 %1)
%23 = tail call i64 @matches_this_character(i8 signext %22, float 9.700000e+01)
%24 = icmp eq i64 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %21
%26 = tail call signext i8 @safely_get_character(i8* %0, i32 %2, i32 1, i32 %1)
%27 = tail call i64 @matches_this_character(i8 signext %26, float 9.800000e+01)
%28 = icmp eq i64 %27, 0
br i1 %28, label %34, label %29
29: ; preds = %25
%30 = tail call i64 @split(i32 1, i32 0)
%31 = icmp sgt i64 %30, 0
br i1 %31, label %36, label %47
32: ; preds = %21
%33 = tail call i32 @exit(i32 1)
unreachable
34: ; preds = %25
%35 = tail call i32 @exit(i32 1)
unreachable
36: ; preds = %29, %41
%37 = phi i32 [ %42, %41 ], [ 2, %29 ]
%38 = tail call signext i8 @safely_get_character(i8* %0, i32 %2, i32 %37, i32 %1)
%39 = tail call i32 @matches_one_of_these_characters(i8 signext %38, i32 2, i8 signext 10, i8 signext 13)
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = add nuw nsw i32 %37, 1
%43 = tail call i64 @split(i32 1, i32 0)
%44 = icmp sgt i64 %43, 0
br i1 %44, label %36, label %47
45: ; preds = %36
%46 = tail call i32 @exit(i32 1)
unreachable
47: ; preds = %41, %29
%48 = phi i32 [ 2, %29 ], [ %42, %41 ]
%49 = tail call signext i8 @safely_get_character(i8* %0, i32 %2, i32 %48, i32 %1)
%50 = tail call i64 @matches_this_character(i8 signext %49, float 1.000000e+02)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %47
%53 = tail call i32 @exit(i32 1)
unreachable
54: ; preds = %47, %60
%55 = phi i32 [ %56, %60 ], [ %48, %47 ]
%56 = add nuw nsw i32 %55, 1
%57 = tail call i64 @split(i32 1, i32 0)
%58 = icmp sgt i64 %57, 0
%59 = tail call signext i8 @safely_get_character(i8* %0, i32 %2, i32 %56, i32 %1)
br i1 %58, label %60, label %65
60: ; preds = %54
%61 = tail call i32 @matches_one_of_these_characters(i8 signext %59, i32 2, i8 signext 10, i8 signext 13)
%62 = icmp eq i32 %61, 0
br i1 %62, label %54, label %63
63: ; preds = %60
%64 = tail call i32 @exit(i32 1)
unreachable
65: ; preds = %54
%66 = tail call i64 @matches_this_character(i8 signext %59, float 1.020000e+02)
%67 = icmp eq i64 %66, 0
br i1 %67, label %73, label %68
68: ; preds = %65
%69 = add nuw nsw i32 %55, 2
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.1, i64 0, i64 0), i32 %69, i32 %2)
%71 = sext i32 %2 to i64
%72 = zext i32 %69 to i64
br label %78
73: ; preds = %65
%74 = tail call i32 @exit(i32 1)
unreachable
75: ; preds = %78
%76 = tail call i32 @putchar(i32 10)
%77 = tail call i32 @exit(i32 0)
unreachable
78: ; preds = %68, %78
%79 = phi i64 [ 0, %68 ], [ %85, %78 ]
%80 = add nsw i64 %79, %71
%81 = getelementptr inbounds i8, i8* %0, i64 %80
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = tail call i32 @putchar(i32 %83)
%85 = add nuw nsw i64 %79, 1
%86 = icmp eq i64 %85, %72
br i1 %86, label %75, label %78
}