#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*/ osc_match_single_char(char const *, char const *);
int osc_match_star_r(char const *, char const *);
int osc_match_star(const char *pattern, const char *address) {
  const char *address_start = address;
  const char *pattern_start = pattern;
  int num_stars = 0;
  if (*address == '\0') {
    return 0;
  }
  while (*address != '/' && *address != '\0') {
    address++;
  }
  while (*pattern != '/' && *pattern != '\0') {
    if (*pattern == '*') {
      num_stars++;
    }
    pattern++;
  }
  pattern--;
  address--;
  switch (num_stars) {
  case 1: {
    const char *pp = pattern, *aa = address;
    while (*pp != '*') {
      if (!(osc_match_single_char(pp, aa))) {
        return 0;
      }
      if (*pp == ']' || *pp == '}') {
        while (*pp != '[' && *pp != '{') {
          pp--;
        }
      }
      pp--;
      aa--;
    }
  } break;
  case 2: {
    const char *pp = pattern, *aa = address;
    while (*pp != '*') {
      if (!(osc_match_single_char(pp, aa))) {
        return 0;
      }
      if (*pp == ']' || *pp == '}') {
        while (*pp != '[' && *pp != '{') {
          pp--;
        }
      }
      pp--;
      aa--;
    }
    aa++;
    const char *star2 = pp;
    const char *test = aa;
    int i = 0;
    while (test > address_start) {
      pp = star2 - 1;
      aa = test - 1;
      i++;
      while (*pp != '*') {
        if (!osc_match_single_char(pp, aa)) {
          break;
        }
        if (*pp == ']' || *pp == '}') {
          while (*pp != '[' && *pp != '{') {
            pp--;
          }
        }
        pp--;
        aa--;
      }
      if (pp == pattern_start) {
        return 1;
      }
      test--;
    }
    return 0;
  } break;
  default:
    return osc_match_star_r(pattern_start, address_start);
    break;
  }
  return 1;
}


x86 assembly (clang, -O0):
<osc_match_star>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1163 <osc_match_star+0x43>
movl   $0x0,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
jmp    1168 <osc_match_star+0x48>
mov    -0x18(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2f,%ecx
mov    %al,-0x65(%rbp)
je     118d <osc_match_star+0x6d>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x65(%rbp)
mov    -0x65(%rbp),%al
test   $0x1,%al
jne    119d <osc_match_star+0x7d>
jmp    11ae <osc_match_star+0x8e>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1168 <osc_match_star+0x48>
jmp    11b3 <osc_match_star+0x93>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2f,%ecx
mov    %al,-0x66(%rbp)
je     11d8 <osc_match_star+0xb8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x66(%rbp)
mov    -0x66(%rbp),%al
test   $0x1,%al
jne    11e8 <osc_match_star+0xc8>
jmp    1212 <osc_match_star+0xf2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    1201 <osc_match_star+0xe1>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11b3 <osc_match_star+0x93>
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x6c(%rbp)
sub    $0x1,%eax
je     124f <osc_match_star+0x12f>
jmp    123e <osc_match_star+0x11e>
mov    -0x6c(%rbp),%eax
sub    $0x2,%eax
je     1323 <osc_match_star+0x203>
jmp    1533 <osc_match_star+0x413>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
je     131e <osc_match_star+0x1fe>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <osc_match_single_char@plt>
cmp    $0x0,%eax
jne    1291 <osc_match_star+0x171>
movl   $0x0,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
je     12b1 <osc_match_star+0x191>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7d,%eax
jne    1301 <osc_match_star+0x1e1>
jmp    12b6 <osc_match_star+0x196>
mov    -0x38(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x6d(%rbp)
je     12db <osc_match_star+0x1bb>
mov    -0x38(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7b,%eax
setne  %al
mov    %al,-0x6d(%rbp)
mov    -0x6d(%rbp),%al
test   $0x1,%al
jne    12eb <osc_match_star+0x1cb>
jmp    12fc <osc_match_star+0x1dc>
mov    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x38(%rbp)
jmp    12b6 <osc_match_star+0x196>
jmp    1301 <osc_match_star+0x1e1>
mov    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x40(%rbp)
jmp    125f <osc_match_star+0x13f>
jmp    1548 <osc_match_star+0x428>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
je     13f2 <osc_match_star+0x2d2>
mov    -0x48(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1030 <osc_match_single_char@plt>
cmp    $0x0,%eax
jne    1365 <osc_match_star+0x245>
movl   $0x0,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
je     1385 <osc_match_star+0x265>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7d,%eax
jne    13d5 <osc_match_star+0x2b5>
jmp    138a <osc_match_star+0x26a>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x6e(%rbp)
je     13af <osc_match_star+0x28f>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7b,%eax
setne  %al
mov    %al,-0x6e(%rbp)
mov    -0x6e(%rbp),%al
test   $0x1,%al
jne    13bf <osc_match_star+0x29f>
jmp    13d0 <osc_match_star+0x2b0>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
jmp    138a <osc_match_star+0x26a>
jmp    13d5 <osc_match_star+0x2b5>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
jmp    1333 <osc_match_star+0x213>
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0x20(%rbp),%rax
jbe    1527 <osc_match_star+0x407>
mov    -0x58(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x60(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
je     14fc <osc_match_star+0x3dc>
mov    -0x48(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1030 <osc_match_single_char@plt>
cmp    $0x0,%eax
jne    146f <osc_match_star+0x34f>
jmp    14fc <osc_match_star+0x3dc>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
je     148f <osc_match_star+0x36f>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7d,%eax
jne    14df <osc_match_star+0x3bf>
jmp    1494 <osc_match_star+0x374>
mov    -0x48(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x6f(%rbp)
je     14b9 <osc_match_star+0x399>
mov    -0x48(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7b,%eax
setne  %al
mov    %al,-0x6f(%rbp)
mov    -0x6f(%rbp),%al
test   $0x1,%al
jne    14c9 <osc_match_star+0x3a9>
jmp    14da <osc_match_star+0x3ba>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
jmp    1494 <osc_match_star+0x374>
jmp    14df <osc_match_star+0x3bf>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x50(%rbp)
jmp    1444 <osc_match_star+0x324>
mov    -0x48(%rbp),%rax
cmp    -0x28(%rbp),%rax
jne    1516 <osc_match_star+0x3f6>
movl   $0x1,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
mov    -0x60(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x60(%rbp)
jmp    1415 <osc_match_star+0x2f5>
movl   $0x0,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1040 <osc_match_star_r@plt>
mov    %eax,-0x4(%rbp)
jmp    154f <osc_match_star+0x42f>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<osc_match_star>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    (%rsi),%al
test   %al,%al
je     12a0 <osc_match_star+0x180>
mov    %rsi,%r15
mov    %rdi,%r13
mov    %rsi,%r12
cmp    $0x2f,%al
je     1162 <osc_match_star+0x42>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
test   %al,%al
je     1162 <osc_match_star+0x42>
movzbl 0x1(%r12),%eax
add    $0x1,%r12
cmp    $0x2f,%al
jne    1150 <osc_match_star+0x30>
xor    %eax,%eax
mov    %r13,%r14
jmp    1177 <osc_match_star+0x57>
nopl   0x0(%rax)
add    $0x1,%eax
add    $0x1,%r14
movzbl (%r14),%ecx
cmp    $0x2a,%cl
je     1170 <osc_match_star+0x50>
test   %cl,%cl
je     1189 <osc_match_star+0x69>
cmp    $0x2f,%cl
jne    1173 <osc_match_star+0x53>
lea    -0x1(%r14),%rbx
lea    -0x1(%r12),%rbp
cmp    $0x1,%eax
je     12b5 <osc_match_star+0x195>
cmp    $0x2,%eax
jne    1312 <osc_match_star+0x1f2>
cmpb   $0x2a,(%rbx)
jne    1267 <osc_match_star+0x147>
mov    %r13,(%rsp)
xor    %r13d,%r13d
cmp    %r15,%r12
jbe    12a3 <osc_match_star+0x183>
add    $0xfffffffffffffffe,%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmpb   $0x2a,(%r14)
mov    %r14,%rax
je     1233 <osc_match_star+0x113>
mov    %r14,%rbx
mov    %r12,%rbp
jmp    11fd <osc_match_star+0xdd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    -0x1(%rbx),%rax
cmpb   $0x2a,-0x1(%rbx)
mov    %rax,%rbx
je     1233 <osc_match_star+0x113>
add    $0xffffffffffffffff,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <osc_match_single_char@plt>
test   %eax,%eax
je     1230 <osc_match_star+0x110>
mov    (%rbx),%al
mov    %eax,%ecx
or     $0x20,%cl
cmp    $0x7d,%cl
jne    11f0 <osc_match_star+0xd0>
nopl   0x0(%rax)
or     $0x20,%al
cmp    $0x7b,%al
je     11f0 <osc_match_star+0xd0>
movzbl -0x1(%rbx),%eax
add    $0xffffffffffffffff,%rbx
jmp    1220 <osc_match_star+0x100>
mov    %rbx,%rax
cmp    (%rsp),%rax
je     1339 <osc_match_star+0x219>
add    $0xffffffffffffffff,%r12
cmp    %r15,%r12
ja     11d0 <osc_match_star+0xb0>
jmp    12a3 <osc_match_star+0x183>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%r14
add    $0xffffffffffffffff,%rbx
lea    -0x1(%r12),%rbp
cmpb   $0x2a,-0x1(%r14)
je     11ad <osc_match_star+0x8d>
mov    %rbp,%r12
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <osc_match_single_char@plt>
test   %eax,%eax
je     12a0 <osc_match_star+0x180>
mov    (%rbx),%al
mov    %eax,%ecx
or     $0x20,%cl
cmp    $0x7d,%cl
jne    1250 <osc_match_star+0x130>
cs nopw 0x0(%rax,%rax,1)
nop
or     $0x20,%al
cmp    $0x7b,%al
je     1250 <osc_match_star+0x130>
movzbl -0x1(%rbx),%eax
add    $0xffffffffffffffff,%rbx
jmp    1290 <osc_match_star+0x170>
xor    %r13d,%r13d
mov    %r13d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r13d
cmpb   $0x2a,(%rbx)
jne    12de <osc_match_star+0x1be>
jmp    12a3 <osc_match_star+0x183>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0xffffffffffffffff,%rbp
cmpb   $0x2a,-0x1(%rbx)
lea    -0x1(%rbx),%rbx
je     132b <osc_match_star+0x20b>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <osc_match_single_char@plt>
test   %eax,%eax
je     132b <osc_match_star+0x20b>
mov    (%rbx),%cl
mov    %ecx,%edx
or     $0x20,%dl
cmp    $0x7d,%dl
jne    12d0 <osc_match_star+0x1b0>
nopl   0x0(%rax)
or     $0x20,%cl
cmp    $0x7b,%cl
je     12d0 <osc_match_star+0x1b0>
movzbl -0x1(%rbx),%ecx
add    $0xffffffffffffffff,%rbx
jmp    1300 <osc_match_star+0x1e0>
mov    %r13,%rdi
mov    %r15,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <osc_match_star_r@plt>
xor    %r13d,%r13d
test   %eax,%eax
setne  %r13b
jmp    12a3 <osc_match_star+0x183>
mov    $0x1,%r13d
jmp    12a3 <osc_match_star+0x183>

LLVM IR (-O0):
define i32 @osc_match_star(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
%16 = load i8*, i8** %5
store i8* %16, i8** %6
%17 = load i8*, i8** %4
store i8* %17, i8** %7
store i32 0, i32* %8
%18 = load i8*, i8** %5
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %2
store i32 0, i32* %3
br label %235
23: ; preds = %2
br label %24
24: ; preds = %36, %23
%25 = load i8*, i8** %5
%26 = load i8, i8* %25
%27 = sext i8 %26 to i32
%28 = icmp ne i32 %27, 47
br i1 %28, label %29, label %34
29: ; preds = %24
%30 = load i8*, i8** %5
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br label %34
34: ; preds = %29, %24
%35 = phi i1 [ false, %24 ], [ %33, %29 ]
br i1 %35, label %36, label %39
36: ; preds = %34
%37 = load i8*, i8** %5
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %5
br label %24
39: ; preds = %34
br label %40
40: ; preds = %60, %39
%41 = load i8*, i8** %4
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp ne i32 %43, 47
br i1 %44, label %45, label %50
45: ; preds = %40
%46 = load i8*, i8** %4
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br label %50
50: ; preds = %45, %40
%51 = phi i1 [ false, %40 ], [ %49, %45 ]
br i1 %51, label %52, label %63
52: ; preds = %50
%53 = load i8*, i8** %4
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 42
br i1 %56, label %57, label %60
57: ; preds = %52
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
br label %60
60: ; preds = %57, %52
%61 = load i8*, i8** %4
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %4
br label %40
63: ; preds = %50
%64 = load i8*, i8** %4
%65 = getelementptr inbounds i8, i8* %64, i32 -1
store i8* %65, i8** %4
%66 = load i8*, i8** %5
%67 = getelementptr inbounds i8, i8* %66, i32 -1
store i8* %67, i8** %5
%68 = load i32, i32* %8
switch i32 %68, label %230 [
i32 1, label %69
i32 2, label %116
]
69: ; preds = %63
%70 = load i8*, i8** %4
store i8* %70, i8** %9
%71 = load i8*, i8** %5
store i8* %71, i8** %10
br label %72
72: ; preds = %110, %69
%73 = load i8*, i8** %9
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = icmp ne i32 %75, 42
br i1 %76, label %77, label %115
77: ; preds = %72
%78 = load i8*, i8** %9
%79 = load i8*, i8** %10
%80 = call i32 @osc_match_single_char(i8* %78, i8* %79)
%81 = icmp ne i32 %80, 0
br i1 %81, label %83, label %82
82: ; preds = %77
store i32 0, i32* %3
br label %235
83: ; preds = %77
%84 = load i8*, i8** %9
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %86, 93
br i1 %87, label %93, label %88
88: ; preds = %83
%89 = load i8*, i8** %9
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 125
br i1 %92, label %93, label %110
93: ; preds = %88, %83
br label %94
94: ; preds = %106, %93
%95 = load i8*, i8** %9
%96 = load i8, i8* %95
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 91
br i1 %98, label %99, label %104
99: ; preds = %94
%100 = load i8*, i8** %9
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 123
br label %104
104: ; preds = %99, %94
%105 = phi i1 [ false, %94 ], [ %103, %99 ]
br i1 %105, label %106, label %109
106: ; preds = %104
%107 = load i8*, i8** %9
%108 = getelementptr inbounds i8, i8* %107, i32 -1
store i8* %108, i8** %9
br label %94
109: ; preds = %104
br label %110
110: ; preds = %109, %88
%111 = load i8*, i8** %9
%112 = getelementptr inbounds i8, i8* %111, i32 -1
store i8* %112, i8** %9
%113 = load i8*, i8** %10
%114 = getelementptr inbounds i8, i8* %113, i32 -1
store i8* %114, i8** %10
br label %72
115: ; preds = %72
br label %234
116: ; preds = %63
%117 = load i8*, i8** %4
store i8* %117, i8** %11
%118 = load i8*, i8** %5
store i8* %118, i8** %12
br label %119
119: ; preds = %157, %116
%120 = load i8*, i8** %11
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = icmp ne i32 %122, 42
br i1 %123, label %124, label %162
124: ; preds = %119
%125 = load i8*, i8** %11
%126 = load i8*, i8** %12
%127 = call i32 @osc_match_single_char(i8* %125, i8* %126)
%128 = icmp ne i32 %127, 0
br i1 %128, label %130, label %129
129: ; preds = %124
store i32 0, i32* %3
br label %235
130: ; preds = %124
%131 = load i8*, i8** %11
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 93
br i1 %134, label %140, label %135
135: ; preds = %130
%136 = load i8*, i8** %11
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = icmp eq i32 %138, 125
br i1 %139, label %140, label %157
140: ; preds = %135, %130
br label %141
141: ; preds = %153, %140
%142 = load i8*, i8** %11
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = icmp ne i32 %144, 91
br i1 %145, label %146, label %151
146: ; preds = %141
%147 = load i8*, i8** %11
%148 = load i8, i8* %147
%149 = sext i8 %148 to i32
%150 = icmp ne i32 %149, 123
br label %151
151: ; preds = %146, %141
%152 = phi i1 [ false, %141 ], [ %150, %146 ]
br i1 %152, label %153, label %156
153: ; preds = %151
%154 = load i8*, i8** %11
%155 = getelementptr inbounds i8, i8* %154, i32 -1
store i8* %155, i8** %11
br label %141
156: ; preds = %151
br label %157
157: ; preds = %156, %135
%158 = load i8*, i8** %11
%159 = getelementptr inbounds i8, i8* %158, i32 -1
store i8* %159, i8** %11
%160 = load i8*, i8** %12
%161 = getelementptr inbounds i8, i8* %160, i32 -1
store i8* %161, i8** %12
br label %119
162: ; preds = %119
%163 = load i8*, i8** %12
%164 = getelementptr inbounds i8, i8* %163, i32 1
store i8* %164, i8** %12
%165 = load i8*, i8** %11
store i8* %165, i8** %13
%166 = load i8*, i8** %12
store i8* %166, i8** %14
store i32 0, i32* %15
br label %167
167: ; preds = %226, %162
%168 = load i8*, i8** %14
%169 = load i8*, i8** %6
%170 = icmp ugt i8* %168, %169
br i1 %170, label %171, label %229
171: ; preds = %167
%172 = load i8*, i8** %13
%173 = getelementptr inbounds i8, i8* %172, i64 -1
store i8* %173, i8** %11
%174 = load i8*, i8** %14
%175 = getelementptr inbounds i8, i8* %174, i64 -1
store i8* %175, i8** %12
%176 = load i32, i32* %15
%177 = add nsw i32 %176, 1
store i32 %177, i32* %15
br label %178
178: ; preds = %216, %171
%179 = load i8*, i8** %11
%180 = load i8, i8* %179
%181 = sext i8 %180 to i32
%182 = icmp ne i32 %181, 42
br i1 %182, label %183, label %221
183: ; preds = %178
%184 = load i8*, i8** %11
%185 = load i8*, i8** %12
%186 = call i32 @osc_match_single_char(i8* %184, i8* %185)
%187 = icmp ne i32 %186, 0
br i1 %187, label %189, label %188
188: ; preds = %183
br label %221
189: ; preds = %183
%190 = load i8*, i8** %11
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = icmp eq i32 %192, 93
br i1 %193, label %199, label %194
194: ; preds = %189
%195 = load i8*, i8** %11
%196 = load i8, i8* %195
%197 = sext i8 %196 to i32
%198 = icmp eq i32 %197, 125
br i1 %198, label %199, label %216
199: ; preds = %194, %189
br label %200
200: ; preds = %212, %199
%201 = load i8*, i8** %11
%202 = load i8, i8* %201
%203 = sext i8 %202 to i32
%204 = icmp ne i32 %203, 91
br i1 %204, label %205, label %210
205: ; preds = %200
%206 = load i8*, i8** %11
%207 = load i8, i8* %206
%208 = sext i8 %207 to i32
%209 = icmp ne i32 %208, 123
br label %210
210: ; preds = %205, %200
%211 = phi i1 [ false, %200 ], [ %209, %205 ]
br i1 %211, label %212, label %215
212: ; preds = %210
%213 = load i8*, i8** %11
%214 = getelementptr inbounds i8, i8* %213, i32 -1
store i8* %214, i8** %11
br label %200
215: ; preds = %210
br label %216
216: ; preds = %215, %194
%217 = load i8*, i8** %11
%218 = getelementptr inbounds i8, i8* %217, i32 -1
store i8* %218, i8** %11
%219 = load i8*, i8** %12
%220 = getelementptr inbounds i8, i8* %219, i32 -1
store i8* %220, i8** %12
br label %178
221: ; preds = %188, %178
%222 = load i8*, i8** %11
%223 = load i8*, i8** %7
%224 = icmp eq i8* %222, %223
br i1 %224, label %225, label %226
225: ; preds = %221
store i32 1, i32* %3
br label %235
226: ; preds = %221
%227 = load i8*, i8** %14
%228 = getelementptr inbounds i8, i8* %227, i32 -1
store i8* %228, i8** %14
br label %167
229: ; preds = %167
store i32 0, i32* %3
br label %235
230: ; preds = %63
%231 = load i8*, i8** %7
%232 = load i8*, i8** %6
%233 = call i32 @osc_match_star_r(i8* %231, i8* %232)
store i32 %233, i32* %3
br label %235
234: ; preds = %115
store i32 1, i32* %3
br label %235
235: ; preds = %234, %230, %229, %225, %129, %82, %22
%236 = load i32, i32* %3
ret i32 %236
}

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