#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*/ exit(int);
int /*<<< orphan*/ lt_match(char **, char **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sb_match(char **, char **);
int strlen(char *);
char *line_match(char *buf, char **tmpSpeech) {
  if (*buf != ' ') {
    printf("Incorrect syntax in line_match!\n");
    exit(1);
  }
  while (*buf == ' ') {
    ++buf;
  }
  if (*buf == ')' || *buf == '\n' || *buf == '\r' || *buf == '\0') {
    printf("Incorrect syntax in line_match!\n");
    exit(1);
  }
  while (*buf != ' ' && *buf != '\n' && *buf != '\r' && *buf != '\0' &&
         *buf != ')') {
    ++buf;
  }
  if (*buf == ')') {
    *tmpSpeech = *tmpSpeech + strlen(*tmpSpeech);
    return *tmpSpeech;
  }
  if (*buf != ' ') {
    printf("Incorrect syntax in line_match!\n");
    exit(1);
  }
  while (*buf == ' ') {
    ++buf;
  }
  if (*buf == '\n' || *buf == '\0' || *buf == '\r') {
    printf("Incorrect syntax in line_match!\n");
    exit(1);
  }
  if (*buf == ')') {
    *tmpSpeech = *tmpSpeech + strlen(*tmpSpeech);
    return *tmpSpeech;
  }
  char *matchExpression;
  matchExpression = buf;
  while (*buf != ')' && *buf != '\0') {
    if (*buf == '(') {
      printf("Not allowed, no variables in an end-expression!\n");
      exit(1);
    }
    ++buf;
  }
  if (*buf != ')') {
    printf("Incorrect syntax in line_match!\n");
    exit(1);
  }
  buf = matchExpression;
  char *speechChecker = *tmpSpeech;
  char *speechWalker = *tmpSpeech;
  int only_sb = 1;
  while (*speechWalker != '\0' && *speechWalker != '\n' &&
         *speechWalker != '\r') {
    while (*buf != ')') {
      if (*buf == '<') {
        only_sb = 0;
        if (!lt_match(&buf, &speechChecker)) {
          buf = matchExpression;
          speechChecker = speechWalker;
          break;
        }
        continue;
      } else if (*buf == '[') {
        sb_match(&buf, &speechChecker);
        continue;
      }
      if (*buf != *speechChecker) {
        only_sb = 0;
        break;
      }
      ++buf;
      ++speechChecker;
    }
    if (*buf != ')') {
      buf = matchExpression;
      speechChecker = speechWalker;
    } else {
      if (speechChecker > speechWalker) {
        *tmpSpeech = speechWalker;
        return speechChecker;
      } else {
        buf = matchExpression;
        speechChecker = speechWalker;
      }
    }
    ++speechWalker;
    ++speechChecker;
  }
  if (only_sb) {
    *tmpSpeech = *tmpSpeech + strlen(*tmpSpeech);
    return *tmpSpeech;
  }
  return NULL;
}


x86 assembly (clang, -O0):
<line_match>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1186 <line_match+0x36>
lea    0xe89(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
jmp    118b <line_match+0x3b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    11ac <line_match+0x5c>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    118b <line_match+0x3b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
je     11ec <line_match+0x9c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     11ec <line_match+0x9c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
je     11ec <line_match+0x9c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1202 <line_match+0xb2>
lea    0xe0d(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
jmp    1207 <line_match+0xb7>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x35(%rbp)
je     126b <line_match+0x11b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x35(%rbp)
je     126b <line_match+0x11b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xd,%ecx
mov    %al,-0x35(%rbp)
je     126b <line_match+0x11b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x35(%rbp)
je     126b <line_match+0x11b>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
setne  %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
test   $0x1,%al
jne    127b <line_match+0x12b>
jmp    128c <line_match+0x13c>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1207 <line_match+0xb7>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
jne    12d3 <line_match+0x183>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rcx
cltq
add    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    163d <line_match+0x4ed>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     12f9 <line_match+0x1a9>
lea    0xd16(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
jmp    12fe <line_match+0x1ae>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    131f <line_match+0x1cf>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12fe <line_match+0x1ae>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
je     134f <line_match+0x1ff>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     134f <line_match+0x1ff>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
jne    1365 <line_match+0x215>
lea    0xcaa(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
jne    13ac <line_match+0x25c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rcx
cltq
add    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    163d <line_match+0x4ed>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x29,%ecx
mov    %al,-0x49(%rbp)
je     13d9 <line_match+0x289>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    13e9 <line_match+0x299>
jmp    1420 <line_match+0x2d0>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
jne    140f <line_match+0x2bf>
lea    0xc21(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    13b4 <line_match+0x264>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
je     1446 <line_match+0x2f6>
lea    0xbc9(%rip),%rdi
call   1050 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
movl   $0x1,-0x34(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x4a(%rbp)
je     14a5 <line_match+0x355>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x4a(%rbp)
je     14a5 <line_match+0x355>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xd,%eax
setne  %al
mov    %al,-0x4a(%rbp)
mov    -0x4a(%rbp),%al
test   $0x1,%al
jne    14b5 <line_match+0x365>
jmp    15f4 <line_match+0x4a4>
jmp    14ba <line_match+0x36a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
je     1577 <line_match+0x427>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3c,%eax
jne    1511 <line_match+0x3c1>
movl   $0x0,-0x34(%rbp)
lea    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <lt_match@plt>
cmp    $0x0,%eax
jne    150c <line_match+0x3bc>
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    1577 <line_match+0x427>
jmp    14ba <line_match+0x36a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    1533 <line_match+0x3e3>
lea    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1030 <sb_match@plt>
jmp    14ba <line_match+0x36a>
jmp    1538 <line_match+0x3e8>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
mov    -0x28(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     155a <line_match+0x40a>
movl   $0x0,-0x34(%rbp)
jmp    1577 <line_match+0x427>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    14ba <line_match+0x36a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
je     159c <line_match+0x44c>
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    15d7 <line_match+0x487>
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jbe    15c2 <line_match+0x472>
mov    -0x30(%rbp),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    163d <line_match+0x4ed>
mov    -0x20(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
jmp    15d7 <line_match+0x487>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    146b <line_match+0x31b>
cmpl   $0x0,-0x34(%rbp)
je     1635 <line_match+0x4e5>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1040 <strlen@plt>
mov    -0x58(%rbp),%rcx
cltq
add    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x8(%rbp)
jmp    163d <line_match+0x4ed>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<line_match>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
cmpb   $0x20,(%rdi)
jne    13a2 <line_match+0x252>
mov    %rsi,%r14
mov    0x8(%rsp),%rcx
lea    0x1(%rdi),%rax
mov    $0x20,%dl
cmp    $0x20,%dl
jne    1193 <line_match+0x43>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rdi
movzbl (%rax),%edx
add    $0x1,%rax
mov    %rdi,%rcx
cmp    $0x20,%dl
je     1180 <line_match+0x30>
cmp    $0x29,%dl
ja     11af <line_match+0x5f>
movzbl %dl,%esi
movabs $0x20000002401,%rdi
bt     %rsi,%rdi
jb     139d <line_match+0x24d>
mov    %rcx,0x8(%rsp)
lea    -0x1(%rax),%rsi
lea    0xe41(%rip),%rdi
jmp    11de <line_match+0x8e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rsi
movzbl (%rax),%edx
add    $0x1,%rax
mov    %rsi,%rcx
cmp    $0x29,%dl
ja     11d0 <line_match+0x80>
movzbl %dl,%edx
movslq (%rdi,%rdx,4),%rdx
add    %rdi,%rdx
jmp    *%rdx
mov    %rcx,0x8(%rsp)
lea    -0x1(%rax),%rsi
mov    $0x20,%dl
cmp    $0x20,%dl
jne    1213 <line_match+0xc3>
nop
add    $0x1,%rsi
movzbl (%rax),%edx
add    $0x1,%rax
mov    %rsi,%rcx
cmp    $0x20,%dl
je     1200 <line_match+0xb0>
cmp    $0x28,%dl
jle    1244 <line_match+0xf4>
cmp    $0x29,%dl
jne    125e <line_match+0x10e>
mov    %rcx,0x8(%rsp)
mov    (%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
cltq
add    %rbx,%rax
mov    %rax,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
test   %dl,%dl
je     139d <line_match+0x24d>
cmp    $0xa,%dl
je     139d <line_match+0x24d>
cmp    $0xd,%dl
je     139d <line_match+0x24d>
mov    %rcx,0x8(%rsp)
lea    -0x1(%rax),%r12
mov    %r12,%rsi
cmp    $0x29,%dl
je     1294 <line_match+0x144>
nop
test   %dl,%dl
je     139d <line_match+0x24d>
cmp    $0x28,%dl
je     13b8 <line_match+0x268>
add    $0x1,%rsi
movzbl (%rax),%edx
add    $0x1,%rax
mov    %rsi,%rcx
cmp    $0x29,%dl
jne    1270 <line_match+0x120>
mov    %r12,0x8(%rsp)
mov    (%r14),%r13
mov    $0x1,%ebp
lea    0x8(%rsp),%r15
lea    0x10(%rsp),%rbx
jmp    12be <line_match+0x16e>
nopl   (%rax)
mov    %r12,0x8(%rsp)
mov    %r13,0x10(%rsp)
add    $0x1,%r13
mov    %r13,0x10(%rsp)
movzbl 0x0(%r13),%eax
cmp    $0xd,%rax
ja     12eb <line_match+0x19b>
mov    $0x2401,%ecx
bt     %rax,%rcx
jae    12eb <line_match+0x19b>
jmp    1376 <line_match+0x226>
xchg   %ax,%ax
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <sb_match@plt>
mov    0x8(%rsp),%rdx
movzbl (%rdx),%ecx
cmp    $0x5b,%cl
je     12e0 <line_match+0x190>
cmp    $0x3c,%cl
je     131f <line_match+0x1cf>
cmp    $0x29,%cl
je     1340 <line_match+0x1f0>
mov    0x10(%rsp),%rax
cmp    (%rax),%cl
jne    1360 <line_match+0x210>
add    $0x1,%rdx
mov    %rdx,0x8(%rsp)
add    $0x1,%rax
mov    %rax,0x10(%rsp)
jmp    12eb <line_match+0x19b>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <lt_match@plt>
xor    %ebp,%ebp
test   %eax,%eax
jne    12eb <line_match+0x19b>
jmp    12b0 <line_match+0x160>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x29,%cl
mov    0x10(%rsp),%rax
cmp    $0x29,%cl
je     136b <line_match+0x21b>
jmp    12b0 <line_match+0x160>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %ebp,%ebp
cmp    $0x29,%cl
jne    12b0 <line_match+0x160>
cmp    %r13,%rax
jbe    12b0 <line_match+0x160>
jmp    138e <line_match+0x23e>
test   %ebp,%ebp
je     1396 <line_match+0x246>
mov    (%r14),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
movslq %eax,%r13
add    %rbx,%r13
mov    %r13,%rax
mov    %r13,(%r14)
jmp    1235 <line_match+0xe5>
xor    %eax,%eax
jmp    1235 <line_match+0xe5>
mov    %rcx,0x8(%rsp)
lea    0xd2f(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    %rcx,0x8(%rsp)
lea    0xce4(%rip),%rdi
jmp    13a9 <line_match+0x259>

LLVM IR (-O0):
@.str = [33 x i8] c"Incorrect syntax in line_match!\0A\00"
@.str.1 = [49 x i8] c"Not allowed, no variables in an end-expression!\0A\00"
define i8* @line_match(i8* %0, i8** %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
store i8* %0, i8** %4
store i8** %1, i8*** %5
%10 = load i8*, i8** %4
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp ne i32 %12, 32
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
br label %18
18: ; preds = %23, %17
%19 = load i8*, i8** %4
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 32
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i8*, i8** %4
%25 = getelementptr inbounds i8, i8* %24, i32 1
store i8* %25, i8** %4
br label %18
26: ; preds = %18
%27 = load i8*, i8** %4
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 41
br i1 %30, label %46, label %31
31: ; preds = %26
%32 = load i8*, i8** %4
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 10
br i1 %35, label %46, label %36
36: ; preds = %31
%37 = load i8*, i8** %4
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 13
br i1 %40, label %46, label %41
41: ; preds = %36
%42 = load i8*, i8** %4
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %41, %36, %31, %26
%47 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %41
br label %50
50: ; preds = %77, %49
%51 = load i8*, i8** %4
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 32
br i1 %54, label %55, label %75
55: ; preds = %50
%56 = load i8*, i8** %4
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 10
br i1 %59, label %60, label %75
60: ; preds = %55
%61 = load i8*, i8** %4
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 13
br i1 %64, label %65, label %75
65: ; preds = %60
%66 = load i8*, i8** %4
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %65
%71 = load i8*, i8** %4
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp ne i32 %73, 41
br label %75
75: ; preds = %70, %65, %60, %55, %50
%76 = phi i1 [ false, %65 ], [ false, %60 ], [ false, %55 ], [ false, %50 ], [ %74, %70 ]
br i1 %76, label %77, label %80
77: ; preds = %75
%78 = load i8*, i8** %4
%79 = getelementptr inbounds i8, i8* %78, i32 1
store i8* %79, i8** %4
br label %50
80: ; preds = %75
%81 = load i8*, i8** %4
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 41
br i1 %84, label %85, label %96
85: ; preds = %80
%86 = load i8**, i8*** %5
%87 = load i8*, i8** %86
%88 = load i8**, i8*** %5
%89 = load i8*, i8** %88
%90 = call i32 @strlen(i8* %89)
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, i8* %87, i64 %91
%93 = load i8**, i8*** %5
store i8* %92, i8** %93
%94 = load i8**, i8*** %5
%95 = load i8*, i8** %94
store i8* %95, i8** %3
br label %283
96: ; preds = %80
%97 = load i8*, i8** %4
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp ne i32 %99, 32
br i1 %100, label %101, label %104
101: ; preds = %96
%102 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%103 = call i32 @exit(i32 1)
unreachable
104: ; preds = %96
br label %105
105: ; preds = %110, %104
%106 = load i8*, i8** %4
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 32
br i1 %109, label %110, label %113
110: ; preds = %105
%111 = load i8*, i8** %4
%112 = getelementptr inbounds i8, i8* %111, i32 1
store i8* %112, i8** %4
br label %105
113: ; preds = %105
%114 = load i8*, i8** %4
%115 = load i8, i8* %114
%116 = sext i8 %115 to i32
%117 = icmp eq i32 %116, 10
br i1 %117, label %128, label %118
118: ; preds = %113
%119 = load i8*, i8** %4
%120 = load i8, i8* %119
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 0
br i1 %122, label %128, label %123
123: ; preds = %118
%124 = load i8*, i8** %4
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = icmp eq i32 %126, 13
br i1 %127, label %128, label %131
128: ; preds = %123, %118, %113
%129 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%130 = call i32 @exit(i32 1)
unreachable
131: ; preds = %123
%132 = load i8*, i8** %4
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 41
br i1 %135, label %136, label %147
136: ; preds = %131
%137 = load i8**, i8*** %5
%138 = load i8*, i8** %137
%139 = load i8**, i8*** %5
%140 = load i8*, i8** %139
%141 = call i32 @strlen(i8* %140)
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8, i8* %138, i64 %142
%144 = load i8**, i8*** %5
store i8* %143, i8** %144
%145 = load i8**, i8*** %5
%146 = load i8*, i8** %145
store i8* %146, i8** %3
br label %283
147: ; preds = %131
%148 = load i8*, i8** %4
store i8* %148, i8** %6
br label %149
149: ; preds = %169, %147
%150 = load i8*, i8** %4
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = icmp ne i32 %152, 41
br i1 %153, label %154, label %159
154: ; preds = %149
%155 = load i8*, i8** %4
%156 = load i8, i8* %155
%157 = sext i8 %156 to i32
%158 = icmp ne i32 %157, 0
br label %159
159: ; preds = %154, %149
%160 = phi i1 [ false, %149 ], [ %158, %154 ]
br i1 %160, label %161, label %172
161: ; preds = %159
%162 = load i8*, i8** %4
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 40
br i1 %165, label %166, label %169
166: ; preds = %161
%167 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%168 = call i32 @exit(i32 1)
unreachable
169: ; preds = %161
%170 = load i8*, i8** %4
%171 = getelementptr inbounds i8, i8* %170, i32 1
store i8* %171, i8** %4
br label %149
172: ; preds = %159
%173 = load i8*, i8** %4
%174 = load i8, i8* %173
%175 = sext i8 %174 to i32
%176 = icmp ne i32 %175, 41
br i1 %176, label %177, label %180
177: ; preds = %172
%178 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%179 = call i32 @exit(i32 1)
unreachable
180: ; preds = %172
%181 = load i8*, i8** %6
store i8* %181, i8** %4
%182 = load i8**, i8*** %5
%183 = load i8*, i8** %182
store i8* %183, i8** %7
%184 = load i8**, i8*** %5
%185 = load i8*, i8** %184
store i8* %185, i8** %8
store i32 1, i32* %9
br label %186
186: ; preds = %263, %180
%187 = load i8*, i8** %8
%188 = load i8, i8* %187
%189 = sext i8 %188 to i32
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %201
191: ; preds = %186
%192 = load i8*, i8** %8
%193 = load i8, i8* %192
%194 = sext i8 %193 to i32
%195 = icmp ne i32 %194, 10
br i1 %195, label %196, label %201
196: ; preds = %191
%197 = load i8*, i8** %8
%198 = load i8, i8* %197
%199 = sext i8 %198 to i32
%200 = icmp ne i32 %199, 13
br label %201
201: ; preds = %196, %191, %186
%202 = phi i1 [ false, %191 ], [ false, %186 ], [ %200, %196 ]
br i1 %202, label %203, label %268
203: ; preds = %201
br label %204
204: ; preds = %238, %226, %220, %203
%205 = load i8*, i8** %4
%206 = load i8, i8* %205
%207 = sext i8 %206 to i32
%208 = icmp ne i32 %207, 41
br i1 %208, label %209, label %243
209: ; preds = %204
%210 = load i8*, i8** %4
%211 = load i8, i8* %210
%212 = sext i8 %211 to i32
%213 = icmp eq i32 %212, 60
br i1 %213, label %214, label %221
214: ; preds = %209
store i32 0, i32* %9
%215 = call i32 @lt_match(i8** %4, i8** %7)
%216 = icmp ne i32 %215, 0
br i1 %216, label %220, label %217
217: ; preds = %214
%218 = load i8*, i8** %6
store i8* %218, i8** %4
%219 = load i8*, i8** %8
store i8* %219, i8** %7
br label %243
220: ; preds = %214
br label %204
221: ; preds = %209
%222 = load i8*, i8** %4
%223 = load i8, i8* %222
%224 = sext i8 %223 to i32
%225 = icmp eq i32 %224, 91
br i1 %225, label %226, label %228
226: ; preds = %221
%227 = call i32 @sb_match(i8** %4, i8** %7)
br label %204
228: ; preds = %221
br label %229
229: ; preds = %228
%230 = load i8*, i8** %4
%231 = load i8, i8* %230
%232 = sext i8 %231 to i32
%233 = load i8*, i8** %7
%234 = load i8, i8* %233
%235 = sext i8 %234 to i32
%236 = icmp ne i32 %232, %235
br i1 %236, label %237, label %238
237: ; preds = %229
store i32 0, i32* %9
br label %243
238: ; preds = %229
%239 = load i8*, i8** %4
%240 = getelementptr inbounds i8, i8* %239, i32 1
store i8* %240, i8** %4
%241 = load i8*, i8** %7
%242 = getelementptr inbounds i8, i8* %241, i32 1
store i8* %242, i8** %7
br label %204
243: ; preds = %237, %217, %204
%244 = load i8*, i8** %4
%245 = load i8, i8* %244
%246 = sext i8 %245 to i32
%247 = icmp ne i32 %246, 41
br i1 %247, label %248, label %251
248: ; preds = %243
%249 = load i8*, i8** %6
store i8* %249, i8** %4
%250 = load i8*, i8** %8
store i8* %250, i8** %7
br label %263
251: ; preds = %243
%252 = load i8*, i8** %7
%253 = load i8*, i8** %8
%254 = icmp ugt i8* %252, %253
br i1 %254, label %255, label %259
255: ; preds = %251
%256 = load i8*, i8** %8
%257 = load i8**, i8*** %5
store i8* %256, i8** %257
%258 = load i8*, i8** %7
store i8* %258, i8** %3
br label %283
259: ; preds = %251
%260 = load i8*, i8** %6
store i8* %260, i8** %4
%261 = load i8*, i8** %8
store i8* %261, i8** %7
br label %262
262: ; preds = %259
br label %263
263: ; preds = %262, %248
%264 = load i8*, i8** %8
%265 = getelementptr inbounds i8, i8* %264, i32 1
store i8* %265, i8** %8
%266 = load i8*, i8** %7
%267 = getelementptr inbounds i8, i8* %266, i32 1
store i8* %267, i8** %7
br label %186
268: ; preds = %201
%269 = load i32, i32* %9
%270 = icmp ne i32 %269, 0
br i1 %270, label %271, label %282
271: ; preds = %268
%272 = load i8**, i8*** %5
%273 = load i8*, i8** %272
%274 = load i8**, i8*** %5
%275 = load i8*, i8** %274
%276 = call i32 @strlen(i8* %275)
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds i8, i8* %273, i64 %277
%279 = load i8**, i8*** %5
store i8* %278, i8** %279
%280 = load i8**, i8*** %5
%281 = load i8*, i8** %280
store i8* %281, i8** %3
br label %283
282: ; preds = %268
store i8* null, i8** %3
br label %283
283: ; preds = %282, %271, %255, %136, %85
%284 = load i8*, i8** %3
ret i8* %284
}

LLVM IR (-O2):
@str.2 = [48 x i8] c"Not allowed, no variables in an end-expression!\00"
@str.6 = [32 x i8] c"Incorrect syntax in line_match!\00"
define i8* @line_match(i8* %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = load i8, i8* %0
%6 = icmp eq i8 %5, 32
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = load i8*, i8** %3
br label %12
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %7, %17
%13 = phi i8* [ %8, %7 ], [ %18, %17 ]
%14 = phi i8 [ 32, %7 ], [ %19, %17 ]
%15 = phi i8* [ %0, %7 ], [ %18, %17 ]
switch i8 %14, label %16 [
i8 32, label %17
i8 41, label %20
i8 10, label %20
i8 13, label %20
i8 0, label %20
]
16: ; preds = %12
store i8* %13, i8** %3
br label %23
17: ; preds = %12
%18 = getelementptr inbounds i8, i8* %15, i64 1
%19 = load i8, i8* %18
br label %12
20: ; preds = %12, %12, %12, %12
store i8* %13, i8** %3
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %16, %28
%24 = phi i8* [ %13, %16 ], [ %29, %28 ]
%25 = phi i8 [ %14, %16 ], [ %30, %28 ]
%26 = phi i8* [ %15, %16 ], [ %29, %28 ]
switch i8 %25, label %28 [
i8 41, label %31
i8 32, label %27
i8 0, label %36
i8 10, label %36
i8 13, label %36
]
27: ; preds = %23
store i8* %24, i8** %3
br label %39
28: ; preds = %23
%29 = getelementptr inbounds i8, i8* %26, i64 1
%30 = load i8, i8* %29
br label %23
31: ; preds = %23
store i8* %24, i8** %3
%32 = load i8*, i8** %1
%33 = tail call i32 @strlen(i8* %32)
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %32, i64 %34
store i8* %35, i8** %1
br label %117
36: ; preds = %23, %23, %23
store i8* %24, i8** %3
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%38 = tail call i32 @exit(i32 1)
unreachable
39: ; preds = %27, %44
%40 = phi i8* [ %24, %27 ], [ %45, %44 ]
%41 = phi i8 [ 32, %27 ], [ %46, %44 ]
%42 = phi i8* [ %26, %27 ], [ %45, %44 ]
switch i8 %41, label %43 [
i8 32, label %44
i8 10, label %47
i8 0, label %47
i8 13, label %47
i8 41, label %50
]
43: ; preds = %39
store i8* %40, i8** %3
br label %55
44: ; preds = %39
%45 = getelementptr inbounds i8, i8* %42, i64 1
%46 = load i8, i8* %45
br label %39
47: ; preds = %39, %39, %39
store i8* %40, i8** %3
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%49 = tail call i32 @exit(i32 1)
unreachable
50: ; preds = %39
store i8* %40, i8** %3
%51 = load i8*, i8** %1
%52 = tail call i32 @strlen(i8* %51)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %51, i64 %53
store i8* %54, i8** %1
br label %117
55: ; preds = %43, %62
%56 = phi i8* [ %40, %43 ], [ %63, %62 ]
%57 = phi i8 [ %41, %43 ], [ %64, %62 ]
%58 = phi i8* [ %42, %43 ], [ %63, %62 ]
switch i8 %57, label %62 [
i8 40, label %59
i8 41, label %68
i8 0, label %65
]
59: ; preds = %55
store i8* %56, i8** %3
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.2, i64 0, i64 0))
%61 = tail call i32 @exit(i32 1)
unreachable
62: ; preds = %55
%63 = getelementptr inbounds i8, i8* %58, i64 1
%64 = load i8, i8* %63
br label %55
65: ; preds = %55
store i8* %56, i8** %3
%66 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.6, i64 0, i64 0))
%67 = tail call i32 @exit(i32 1)
unreachable
68: ; preds = %55
store i8* %42, i8** %3
%69 = bitcast i8** %4 to i8*
%70 = load i8*, i8** %1
br label %71
71: ; preds = %102, %68
%72 = phi i8* [ %70, %68 ], [ %104, %102 ]
%73 = phi i32 [ 1, %68 ], [ %103, %102 ]
store i8* %72, i8** %4
%74 = load i8, i8* %72
switch i8 %74, label %75 [
i8 0, label %105
i8 10, label %105
i8 13, label %105
]
75: ; preds = %71, %82
%76 = phi i32 [ 0, %82 ], [ %73, %71 ]
br label %77
77: ; preds = %87, %75
%78 = load i8*, i8** %3
%79 = load i8, i8* %78
switch i8 %79, label %88 [
i8 41, label %80
i8 60, label %82
i8 91, label %85
]
80: ; preds = %77
%81 = load i8*, i8** %4
br label %95
82: ; preds = %77
%83 = call i32 @lt_match(i8** %3, i8** %4)
%84 = icmp eq i32 %83, 0
br i1 %84, label %102, label %75
85: ; preds = %77
%86 = call i32 @sb_match(i8** %3, i8** %4)
br label %87
87: ; preds = %85, %92
br label %77
88: ; preds = %77
%89 = load i8*, i8** %4
%90 = load i8, i8* %89
%91 = icmp eq i8 %79, %90
br i1 %91, label %92, label %95
92: ; preds = %88
%93 = getelementptr inbounds i8, i8* %78, i64 1
store i8* %93, i8** %3
%94 = getelementptr inbounds i8, i8* %89, i64 1
store i8* %94, i8** %4
br label %87
95: ; preds = %88, %80
%96 = phi i8* [ %81, %80 ], [ %89, %88 ]
%97 = phi i8 [ 41, %80 ], [ %79, %88 ]
%98 = phi i32 [ %76, %80 ], [ 0, %88 ]
%99 = icmp eq i8 %97, 41
%100 = icmp ugt i8* %96, %72
%101 = select i1 %99, i1 %100, i1 false
br i1 %101, label %112, label %102
102: ; preds = %82, %95
%103 = phi i32 [ %98, %95 ], [ 0, %82 ]
store i8* %42, i8** %3
store i8* %72, i8** %4
%104 = getelementptr inbounds i8, i8* %72, i64 1
br label %71
105: ; preds = %71, %71, %71
%106 = icmp eq i32 %73, 0
br i1 %106, label %115, label %107
107: ; preds = %105
%108 = load i8*, i8** %1
%109 = call i32 @strlen(i8* %108)
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, i8* %108, i64 %110
br label %112
112: ; preds = %95, %107
%113 = phi i8* [ %111, %107 ], [ %72, %95 ]
%114 = phi i8* [ %111, %107 ], [ %96, %95 ]
store i8* %113, i8** %1
br label %115
115: ; preds = %112, %105
%116 = phi i8* [ null, %105 ], [ %114, %112 ]
br label %117
117: ; preds = %115, %50, %31
%118 = phi i8* [ %35, %31 ], [ %54, %50 ], [ %116, %115 ]
ret i8* %118
}