#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 */
char *SlurpDollarEquation();
int /*<<< orphan*/ diagnostics(int, char *);
char *getTexUntil(char *, int /*<<< orphan*/);
char *my_strdup(char *);
void SlurpEquation(int code, char **pre, char **eq, char **post) {
  int true_code = code & ~0x4000;
  switch (true_code) {
  case 12:
    diagnostics(4, "SlurpEquation() --- \\begin{math}");
    *pre = my_strdup("\\begin{math}");
    *post = my_strdup("\\end{math}");
    *eq = getTexUntil(*post, 0);
    break;
  case 2:
    diagnostics(4, "SlurpEquation() --- $");
    *pre = my_strdup("$");
    *post = my_strdup("$");
    *eq = SlurpDollarEquation();
    break;
  case 3:
    diagnostics(4, "SlurpEquation() --- \\(");
    *pre = my_strdup("\\(");
    *post = my_strdup("\\)");
    *eq = getTexUntil(*post, 0);
    break;
  case 13:
    diagnostics(4, "SlurpEquation --- displaymath");
    *pre = my_strdup("\\begin{displaymath}");
    *post = my_strdup("\\end{displaymath}");
    *eq = getTexUntil(*post, 0);
    break;
  case 11:
    diagnostics(4, "SlurpEquation() --- equation*");
    *pre = my_strdup("\\begin{equation*}");
    *post = my_strdup("\\end{equation*}");
    *eq = getTexUntil(*post, 0);
    break;
  case 14:
    diagnostics(4, "SlurpEquation() --- $$");
    *pre = my_strdup("$$");
    *post = my_strdup("$$");
    *eq = getTexUntil(*post, 0);
    break;
  case 4:
    diagnostics(4, "SlurpEquation() --- \\[");
    *pre = my_strdup("\\[");
    *post = my_strdup("\\]");
    *eq = getTexUntil(*post, 0);
    break;
  case 10:
    diagnostics(4, "SlurpEquation() --- equation");
    *pre = my_strdup("\\begin{equation}");
    *post = my_strdup("\\end{equation}");
    *eq = getTexUntil(*post, 0);
    break;
  case 9:
    diagnostics(4, "SlurpEquation() --- eqnarray* ");
    *pre = my_strdup("\\begin{eqnarray*}");
    *post = my_strdup("\\end{eqnarray*}");
    *eq = getTexUntil(*post, 0);
    break;
  case 8:
    diagnostics(4, "SlurpEquation() --- eqnarray");
    *pre = my_strdup("\\begin{eqnarray}");
    *post = my_strdup("\\end{eqnarray}");
    *eq = getTexUntil(*post, 0);
    break;
  case 18:
    diagnostics(4, "SlurpEquation() --- align* ");
    *pre = my_strdup("\\begin{align*}");
    *post = my_strdup("\\end{align*}");
    *eq = getTexUntil(*post, 0);
    break;
  case 17:
    diagnostics(4, "SlurpEquation() --- align");
    *pre = my_strdup("\\begin{align}");
    *post = my_strdup("\\end{align}");
    *eq = getTexUntil(*post, 0);
    break;
  }
}


x86 assembly (clang, -O0):
<SlurpEquation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x4(%rbp),%eax
and    $0xffffbfff,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x10,%eax
ja     15b7 <SlurpEquation+0x477>
mov    -0x30(%rbp),%rax
lea    0xe7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x4,%edi
lea    0xead(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xeb5(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xeac(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xe7f(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xe87(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xe71(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    $0x0,%al
call   1030 <SlurpDollarEquation@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xe42(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xe4a(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xe37(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xe02(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xe14(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xe12(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xdec(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xdfe(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xdfa(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xdd2(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xdda(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xdc4(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xd8f(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xd97(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xd84(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xd4f(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xd60(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xd5b(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xd32(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xd45(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xd41(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xd19(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xd2a(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xd25(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xcfc(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xd0c(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xd05(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
jmp    15b7 <SlurpEquation+0x477>
mov    $0x4,%edi
lea    0xcda(%rip),%rsi
call   1040 <diagnostics@plt>
lea    0xce8(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
lea    0xce0(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SlurpEquation>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
and    $0xffffbfff,%edi
add    $0xfffffffe,%edi
cmp    $0x10,%edi
ja     1397 <SlurpEquation+0x257>
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,%rbx
lea    0xe96(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0xef6(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xef9(%rip),%r12
mov    %r12,%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
mov    %r12,%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%r15)
xor    %eax,%eax
call   1030 <SlurpDollarEquation@plt>
jmp    1394 <SlurpEquation+0x254>
lea    0xed2(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xed5(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xec9(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xf5b(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xf5e(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xf52(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xfc7(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xfd3(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xfd5(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xf5a(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xf68(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xf6b(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xef1(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xefd(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xeff(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xe54(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xe61(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xe64(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xd88(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xd8b(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xd89(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xdb8(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xdc5(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xdca(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xe13(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xe16(%rip),%r12
mov    %r12,%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
mov    %r12,%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xf0f(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xf18(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xf17(%rip),%rdi
jmp    1382 <SlurpEquation+0x242>
lea    0xeae(%rip),%rsi
mov    $0x4,%edi
call   1040 <diagnostics@plt>
lea    0xeb9(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%rbx)
lea    0xeb9(%rip),%rdi
call   1050 <my_strdup@plt>
mov    %rax,(%r15)
mov    %rax,%rdi
xor    %esi,%esi
call   1060 <getTexUntil@plt>
mov    %rax,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [33 x i8] c"SlurpEquation() --- \\begin{math}\00"
@.str.1 = [13 x i8] c"\\begin{math}\00"
@.str.2 = [11 x i8] c"\\end{math}\00"
@.str.3 = [22 x i8] c"SlurpEquation() --- $\00"
@.str.4 = [2 x i8] c"$\00"
@.str.5 = [23 x i8] c"SlurpEquation() --- \\(\00"
@.str.6 = [3 x i8] c"\\(\00"
@.str.7 = [3 x i8] c"\\)\00"
@.str.8 = [30 x i8] c"SlurpEquation --- displaymath\00"
@.str.9 = [20 x i8] c"\\begin{displaymath}\00"
@.str.10 = [18 x i8] c"\\end{displaymath}\00"
@.str.11 = [30 x i8] c"SlurpEquation() --- equation*\00"
@.str.12 = [18 x i8] c"\\begin{equation*}\00"
@.str.13 = [16 x i8] c"\\end{equation*}\00"
@.str.14 = [23 x i8] c"SlurpEquation() --- $$\00"
@.str.15 = [3 x i8] c"$$\00"
@.str.16 = [23 x i8] c"SlurpEquation() --- \\[\00"
@.str.17 = [3 x i8] c"\\[\00"
@.str.18 = [3 x i8] c"\\]\00"
@.str.19 = [29 x i8] c"SlurpEquation() --- equation\00"
@.str.20 = [17 x i8] c"\\begin{equation}\00"
@.str.21 = [15 x i8] c"\\end{equation}\00"
@.str.22 = [31 x i8] c"SlurpEquation() --- eqnarray* \00"
@.str.23 = [18 x i8] c"\\begin{eqnarray*}\00"
@.str.24 = [16 x i8] c"\\end{eqnarray*}\00"
@.str.25 = [29 x i8] c"SlurpEquation() --- eqnarray\00"
@.str.26 = [17 x i8] c"\\begin{eqnarray}\00"
@.str.27 = [15 x i8] c"\\end{eqnarray}\00"
@.str.28 = [28 x i8] c"SlurpEquation() --- align* \00"
@.str.29 = [15 x i8] c"\\begin{align*}\00"
@.str.30 = [13 x i8] c"\\end{align*}\00"
@.str.31 = [26 x i8] c"SlurpEquation() --- align\00"
@.str.32 = [14 x i8] c"\\begin{align}\00"
@.str.33 = [12 x i8] c"\\end{align}\00"
define void @SlurpEquation(i32 %0, i8** %1, i8** %2, i8** %3) {
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8**
%9 = alloca i32
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
store i8** %3, i8*** %8
%10 = load i32, i32* %5
%11 = and i32 %10, -16385
store i32 %11, i32* %9
%12 = load i32, i32* %9
switch i32 %12, label %131 [
i32 12, label %13
i32 2, label %23
i32 3, label %31
i32 13, label %41
i32 11, label %51
i32 14, label %61
i32 4, label %71
i32 10, label %81
i32 9, label %91
i32 8, label %101
i32 18, label %111
i32 17, label %121
]
13: ; preds = %4
%14 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%15 = call i8* @my_strdup(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%16 = load i8**, i8*** %6
store i8* %15, i8** %16
%17 = call i8* @my_strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%18 = load i8**, i8*** %8
store i8* %17, i8** %18
%19 = load i8**, i8*** %8
%20 = load i8*, i8** %19
%21 = call i8* @getTexUntil(i8* %20, i32 0)
%22 = load i8**, i8*** %7
store i8* %21, i8** %22
br label %131
23: ; preds = %4
%24 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%25 = call i8* @my_strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%26 = load i8**, i8*** %6
store i8* %25, i8** %26
%27 = call i8* @my_strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%28 = load i8**, i8*** %8
store i8* %27, i8** %28
%29 = call i8* (...) @SlurpDollarEquation()
%30 = load i8**, i8*** %7
store i8* %29, i8** %30
br label %131
31: ; preds = %4
%32 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%33 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%34 = load i8**, i8*** %6
store i8* %33, i8** %34
%35 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%36 = load i8**, i8*** %8
store i8* %35, i8** %36
%37 = load i8**, i8*** %8
%38 = load i8*, i8** %37
%39 = call i8* @getTexUntil(i8* %38, i32 0)
%40 = load i8**, i8*** %7
store i8* %39, i8** %40
br label %131
41: ; preds = %4
%42 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0))
%43 = call i8* @my_strdup(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%44 = load i8**, i8*** %6
store i8* %43, i8** %44
%45 = call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
%46 = load i8**, i8*** %8
store i8* %45, i8** %46
%47 = load i8**, i8*** %8
%48 = load i8*, i8** %47
%49 = call i8* @getTexUntil(i8* %48, i32 0)
%50 = load i8**, i8*** %7
store i8* %49, i8** %50
br label %131
51: ; preds = %4
%52 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%53 = call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
%54 = load i8**, i8*** %6
store i8* %53, i8** %54
%55 = call i8* @my_strdup(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%56 = load i8**, i8*** %8
store i8* %55, i8** %56
%57 = load i8**, i8*** %8
%58 = load i8*, i8** %57
%59 = call i8* @getTexUntil(i8* %58, i32 0)
%60 = load i8**, i8*** %7
store i8* %59, i8** %60
br label %131
61: ; preds = %4
%62 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%63 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%64 = load i8**, i8*** %6
store i8* %63, i8** %64
%65 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
%66 = load i8**, i8*** %8
store i8* %65, i8** %66
%67 = load i8**, i8*** %8
%68 = load i8*, i8** %67
%69 = call i8* @getTexUntil(i8* %68, i32 0)
%70 = load i8**, i8*** %7
store i8* %69, i8** %70
br label %131
71: ; preds = %4
%72 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%73 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%74 = load i8**, i8*** %6
store i8* %73, i8** %74
%75 = call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%76 = load i8**, i8*** %8
store i8* %75, i8** %76
%77 = load i8**, i8*** %8
%78 = load i8*, i8** %77
%79 = call i8* @getTexUntil(i8* %78, i32 0)
%80 = load i8**, i8*** %7
store i8* %79, i8** %80
br label %131
81: ; preds = %4
%82 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
%83 = call i8* @my_strdup(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
%84 = load i8**, i8*** %6
store i8* %83, i8** %84
%85 = call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
%86 = load i8**, i8*** %8
store i8* %85, i8** %86
%87 = load i8**, i8*** %8
%88 = load i8*, i8** %87
%89 = call i8* @getTexUntil(i8* %88, i32 0)
%90 = load i8**, i8*** %7
store i8* %89, i8** %90
br label %131
91: ; preds = %4
%92 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0))
%93 = call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
%94 = load i8**, i8*** %6
store i8* %93, i8** %94
%95 = call i8* @my_strdup(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0))
%96 = load i8**, i8*** %8
store i8* %95, i8** %96
%97 = load i8**, i8*** %8
%98 = load i8*, i8** %97
%99 = call i8* @getTexUntil(i8* %98, i32 0)
%100 = load i8**, i8*** %7
store i8* %99, i8** %100
br label %131
101: ; preds = %4
%102 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0))
%103 = call i8* @my_strdup(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0))
%104 = load i8**, i8*** %6
store i8* %103, i8** %104
%105 = call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0))
%106 = load i8**, i8*** %8
store i8* %105, i8** %106
%107 = load i8**, i8*** %8
%108 = load i8*, i8** %107
%109 = call i8* @getTexUntil(i8* %108, i32 0)
%110 = load i8**, i8*** %7
store i8* %109, i8** %110
br label %131
111: ; preds = %4
%112 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.28, i64 0, i64 0))
%113 = call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0))
%114 = load i8**, i8*** %6
store i8* %113, i8** %114
%115 = call i8* @my_strdup(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0))
%116 = load i8**, i8*** %8
store i8* %115, i8** %116
%117 = load i8**, i8*** %8
%118 = load i8*, i8** %117
%119 = call i8* @getTexUntil(i8* %118, i32 0)
%120 = load i8**, i8*** %7
store i8* %119, i8** %120
br label %131
121: ; preds = %4
%122 = call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.31, i64 0, i64 0))
%123 = call i8* @my_strdup(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0))
%124 = load i8**, i8*** %6
store i8* %123, i8** %124
%125 = call i8* @my_strdup(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0))
%126 = load i8**, i8*** %8
store i8* %125, i8** %126
%127 = load i8**, i8*** %8
%128 = load i8*, i8** %127
%129 = call i8* @getTexUntil(i8* %128, i32 0)
%130 = load i8**, i8*** %7
store i8* %129, i8** %130
br label %131
131: ; preds = %4, %121, %111, %101, %91, %81, %71, %61, %51, %41, %31, %23, %13
ret void
}

LLVM IR (-O2):
@.str = [33 x i8] c"SlurpEquation() --- \\begin{math}\00"
@.str.1 = [13 x i8] c"\\begin{math}\00"
@.str.2 = [11 x i8] c"\\end{math}\00"
@.str.3 = [22 x i8] c"SlurpEquation() --- $\00"
@.str.4 = [2 x i8] c"$\00"
@.str.5 = [23 x i8] c"SlurpEquation() --- \\(\00"
@.str.6 = [3 x i8] c"\\(\00"
@.str.7 = [3 x i8] c"\\)\00"
@.str.8 = [30 x i8] c"SlurpEquation --- displaymath\00"
@.str.9 = [20 x i8] c"\\begin{displaymath}\00"
@.str.10 = [18 x i8] c"\\end{displaymath}\00"
@.str.11 = [30 x i8] c"SlurpEquation() --- equation*\00"
@.str.12 = [18 x i8] c"\\begin{equation*}\00"
@.str.13 = [16 x i8] c"\\end{equation*}\00"
@.str.14 = [23 x i8] c"SlurpEquation() --- $$\00"
@.str.15 = [3 x i8] c"$$\00"
@.str.16 = [23 x i8] c"SlurpEquation() --- \\[\00"
@.str.17 = [3 x i8] c"\\[\00"
@.str.18 = [3 x i8] c"\\]\00"
@.str.19 = [29 x i8] c"SlurpEquation() --- equation\00"
@.str.20 = [17 x i8] c"\\begin{equation}\00"
@.str.21 = [15 x i8] c"\\end{equation}\00"
@.str.22 = [31 x i8] c"SlurpEquation() --- eqnarray* \00"
@.str.23 = [18 x i8] c"\\begin{eqnarray*}\00"
@.str.24 = [16 x i8] c"\\end{eqnarray*}\00"
@.str.25 = [29 x i8] c"SlurpEquation() --- eqnarray\00"
@.str.26 = [17 x i8] c"\\begin{eqnarray}\00"
@.str.27 = [15 x i8] c"\\end{eqnarray}\00"
@.str.28 = [28 x i8] c"SlurpEquation() --- align* \00"
@.str.29 = [15 x i8] c"\\begin{align*}\00"
@.str.30 = [13 x i8] c"\\end{align*}\00"
@.str.31 = [26 x i8] c"SlurpEquation() --- align\00"
@.str.32 = [14 x i8] c"\\begin{align}\00"
@.str.33 = [12 x i8] c"\\end{align}\00"
define void @SlurpEquation(i32 %0, i8** nocapture writeonly %1, i8** nocapture writeonly %2, i8** nocapture writeonly %3) {
%5 = and i32 %0, -16385
switch i32 %5, label %68 [
i32 12, label %6
i32 2, label %11
i32 3, label %16
i32 13, label %21
i32 11, label %26
i32 14, label %31
i32 4, label %36
i32 10, label %41
i32 9, label %46
i32 8, label %51
i32 18, label %56
i32 17, label %61
]
6: ; preds = %4
%7 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%8 = tail call i8* @my_strdup(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store i8* %8, i8** %1
%9 = tail call i8* @my_strdup(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
store i8* %9, i8** %3
%10 = tail call i8* @getTexUntil(i8* %9, i32 0)
br label %66
11: ; preds = %4
%12 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i8* @my_strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %13, i8** %1
%14 = tail call i8* @my_strdup(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %14, i8** %3
%15 = tail call i8* (...) @SlurpDollarEquation()
br label %66
16: ; preds = %4
%17 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%18 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
store i8* %18, i8** %1
%19 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i8* %19, i8** %3
%20 = tail call i8* @getTexUntil(i8* %19, i32 0)
br label %66
21: ; preds = %4
%22 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0))
%23 = tail call i8* @my_strdup(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
store i8* %23, i8** %1
%24 = tail call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0))
store i8* %24, i8** %3
%25 = tail call i8* @getTexUntil(i8* %24, i32 0)
br label %66
26: ; preds = %4
%27 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%28 = tail call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.12, i64 0, i64 0))
store i8* %28, i8** %1
%29 = tail call i8* @my_strdup(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
store i8* %29, i8** %3
%30 = tail call i8* @getTexUntil(i8* %29, i32 0)
br label %66
31: ; preds = %4
%32 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%33 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i8* %33, i8** %1
%34 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0))
store i8* %34, i8** %3
%35 = tail call i8* @getTexUntil(i8* %34, i32 0)
br label %66
36: ; preds = %4
%37 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0))
%38 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
store i8* %38, i8** %1
%39 = tail call i8* @my_strdup(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
store i8* %39, i8** %3
%40 = tail call i8* @getTexUntil(i8* %39, i32 0)
br label %66
41: ; preds = %4
%42 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
%43 = tail call i8* @my_strdup(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.20, i64 0, i64 0))
store i8* %43, i8** %1
%44 = tail call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
store i8* %44, i8** %3
%45 = tail call i8* @getTexUntil(i8* %44, i32 0)
br label %66
46: ; preds = %4
%47 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.22, i64 0, i64 0))
%48 = tail call i8* @my_strdup(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
store i8* %48, i8** %1
%49 = tail call i8* @my_strdup(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0))
store i8* %49, i8** %3
%50 = tail call i8* @getTexUntil(i8* %49, i32 0)
br label %66
51: ; preds = %4
%52 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.25, i64 0, i64 0))
%53 = tail call i8* @my_strdup(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.26, i64 0, i64 0))
store i8* %53, i8** %1
%54 = tail call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0))
store i8* %54, i8** %3
%55 = tail call i8* @getTexUntil(i8* %54, i32 0)
br label %66
56: ; preds = %4
%57 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.28, i64 0, i64 0))
%58 = tail call i8* @my_strdup(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0))
store i8* %58, i8** %1
%59 = tail call i8* @my_strdup(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0))
store i8* %59, i8** %3
%60 = tail call i8* @getTexUntil(i8* %59, i32 0)
br label %66
61: ; preds = %4
%62 = tail call i32 @diagnostics(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.31, i64 0, i64 0))
%63 = tail call i8* @my_strdup(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.32, i64 0, i64 0))
store i8* %63, i8** %1
%64 = tail call i8* @my_strdup(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0))
store i8* %64, i8** %3
%65 = tail call i8* @getTexUntil(i8* %64, i32 0)
br label %66
66: ; preds = %6, %11, %16, %21, %26, %31, %36, %41, %46, %51, %56, %61
%67 = phi i8* [ %65, %61 ], [ %60, %56 ], [ %55, %51 ], [ %50, %46 ], [ %45, %41 ], [ %40, %36 ], [ %35, %31 ], [ %30, %26 ], [ %25, %21 ], [ %20, %16 ], [ %15, %11 ], [ %10, %6 ]
store i8* %67, i8** %2
br label %68
68: ; preds = %66, %4
ret void
}