#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*/ UpdateLineNumber(char *);
int /*<<< orphan*/ diagnostics(int, char *, ...);
int /*<<< orphan*/ free(char *);
char *getBraceParam();
char *getBracketParam();
char *getSimpleCommand();
char getTexChar();
scalar_t__ isdigit(int);
int /*<<< orphan*/ newDefinition(char *, char *, char *, int);
int /*<<< orphan*/ renewDefinition(char *, char *, char *, int);
int /*<<< orphan*/ ungetTexChar(char);
void CmdNewDef(int code) {
  char *name = NULL, *opt_param = NULL, *def = NULL, cThis;
  char *params = NULL;
  int param = 0;
  if (code == 3) {
    name = getSimpleCommand();
    if (name == NULL) {
      diagnostics(1, "Definition does not start with '\\' skipping");
      return;
    }
    while ((cThis = getTexChar()) && cThis != '{') {
      if (isdigit((int)cThis))
        param++;
    }
    ungetTexChar('{');
    opt_param = NULL;
    def = getBraceParam();
    UpdateLineNumber(def);
    newDefinition(name + 1, opt_param, def, param);
  }
  if (code == 1 || code == 2) {
    name = getBraceParam();
    params = getBracketParam();
    opt_param = getBracketParam();
    def = getBraceParam();
    UpdateLineNumber(name);
    UpdateLineNumber(params);
    if (opt_param)
      UpdateLineNumber(opt_param);
    UpdateLineNumber(def);
    param = 0;
    if (params) {
      if ('0' <= *params && *params <= '9')
        param = *params - '0';
      else
        diagnostics(0, "non-numeric number of parameters in newcommand");
    }
    if (code == 1)
      newDefinition(name + 1, opt_param, def, param);
    else
      renewDefinition(name + 1, opt_param, def, param);
  }
  diagnostics(4, "CmdNewDef name=<%s> param=%d opt_param=<%s> def=<%s>",
              (name) ? name : "", param, (opt_param) ? opt_param : "",
              (def) ? def : "");
  free(name);
  free(def);
  if (params)
    free(params);
  if (opt_param)
    free(opt_param);
}


x86 assembly (clang, -O0):
<CmdNewDef>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x3,-0x4(%rbp)
jne    12b6 <CmdNewDef+0x106>
mov    $0x0,%al
call   10b0 <getSimpleCommand@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    121a <CmdNewDef+0x6a>
mov    $0x1,%edi
lea    0xdf2(%rip),%rsi
mov    $0x0,%al
call   1080 <diagnostics@plt>
jmp    14b0 <CmdNewDef+0x300>
jmp    121f <CmdNewDef+0x6f>
mov    $0x0,%al
call   1060 <getTexChar@plt>
mov    %al,-0x21(%rbp)
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x35(%rbp)
je     1247 <CmdNewDef+0x97>
movsbl -0x21(%rbp),%eax
cmp    $0x7b,%eax
setne  %al
mov    %al,-0x35(%rbp)
mov    -0x35(%rbp),%al
test   $0x1,%al
jne    1257 <CmdNewDef+0xa7>
jmp    1278 <CmdNewDef+0xc8>
movsbl -0x21(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     1273 <CmdNewDef+0xc3>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    121f <CmdNewDef+0x6f>
mov    $0x7b,%edi
call   1050 <ungetTexChar@plt>
movq   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1070 <getBraceParam@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   10c0 <UpdateLineNumber@plt>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   10d0 <newDefinition@plt>
cmpl   $0x1,-0x4(%rbp)
je     12ca <CmdNewDef+0x11a>
cmpl   $0x2,-0x4(%rbp)
jne    13c6 <CmdNewDef+0x216>
mov    $0x0,%al
call   1070 <getBraceParam@plt>
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   10a0 <getBracketParam@plt>
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   10a0 <getBracketParam@plt>
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1070 <getBraceParam@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   10c0 <UpdateLineNumber@plt>
mov    -0x30(%rbp),%rdi
call   10c0 <UpdateLineNumber@plt>
cmpq   $0x0,-0x18(%rbp)
je     131c <CmdNewDef+0x16c>
mov    -0x18(%rbp),%rdi
call   10c0 <UpdateLineNumber@plt>
mov    -0x20(%rbp),%rdi
call   10c0 <UpdateLineNumber@plt>
movl   $0x0,-0x34(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1382 <CmdNewDef+0x1d2>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x30,%eax
cmp    %ecx,%eax
jg     136d <CmdNewDef+0x1bd>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
jg     136d <CmdNewDef+0x1bd>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
mov    %eax,-0x34(%rbp)
jmp    137d <CmdNewDef+0x1cd>
xor    %edi,%edi
lea    0xcb6(%rip),%rsi
mov    $0x0,%al
call   1080 <diagnostics@plt>
jmp    1382 <CmdNewDef+0x1d2>
cmpl   $0x1,-0x4(%rbp)
jne    13a9 <CmdNewDef+0x1f9>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   10d0 <newDefinition@plt>
jmp    13c1 <CmdNewDef+0x211>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x34(%rbp),%ecx
call   1090 <renewDefinition@plt>
jmp    13c6 <CmdNewDef+0x216>
cmpq   $0x0,-0x10(%rbp)
je     13de <CmdNewDef+0x22e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
jmp    13ee <CmdNewDef+0x23e>
lea    0xcaa(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    13ee <CmdNewDef+0x23e>
mov    -0x40(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x44(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1414 <CmdNewDef+0x264>
mov    -0x18(%rbp),%rax
mov    %rax,-0x58(%rbp)
jmp    1424 <CmdNewDef+0x274>
lea    0xc74(%rip),%rax
mov    %rax,-0x58(%rbp)
jmp    1424 <CmdNewDef+0x274>
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1444 <CmdNewDef+0x294>
mov    -0x20(%rbp),%rax
mov    %rax,-0x68(%rbp)
jmp    1454 <CmdNewDef+0x2a4>
lea    0xc44(%rip),%rax
mov    %rax,-0x68(%rbp)
jmp    1454 <CmdNewDef+0x2a4>
mov    -0x60(%rbp),%r8
mov    -0x44(%rbp),%ecx
mov    -0x50(%rbp),%rdx
mov    -0x68(%rbp),%r9
mov    $0x4,%edi
lea    0xbec(%rip),%rsi
mov    $0x0,%al
call   1080 <diagnostics@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
je     149c <CmdNewDef+0x2ec>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x18(%rbp)
je     14b0 <CmdNewDef+0x300>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdNewDef>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%r15d
cmp    $0x3,%edi
jne    1200 <CmdNewDef+0x50>
xor    %eax,%eax
call   10b0 <getSimpleCommand@plt>
test   %rax,%rax
je     12ad <CmdNewDef+0xfd>
mov    %rax,%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <getTexChar@plt>
test   %al,%al
je     120a <CmdNewDef+0x5a>
cmp    $0x7b,%al
je     120a <CmdNewDef+0x5a>
movsbl %al,%edi
call   1040 <isdigit@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebx
jmp    11e0 <CmdNewDef+0x30>
xor    %r12d,%r12d
xor    %r14d,%r14d
xor    %ebx,%ebx
jmp    1239 <CmdNewDef+0x89>
mov    $0x7b,%edi
call   1050 <ungetTexChar@plt>
xor    %eax,%eax
call   1070 <getBraceParam@plt>
mov    %rax,%r12
mov    %rax,%rdi
call   10c0 <UpdateLineNumber@plt>
mov    %r14,%rdi
add    $0x1,%rdi
xor    %esi,%esi
mov    %r12,%rdx
mov    %ebx,%ecx
call   10d0 <newDefinition@plt>
lea    -0x1(%r15),%eax
cmp    $0x1,%eax
ja     12a6 <CmdNewDef+0xf6>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <getBraceParam@plt>
mov    %rax,%r14
xor    %eax,%eax
call   10a0 <getBracketParam@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   10a0 <getBracketParam@plt>
mov    %rax,%r13
xor    %eax,%eax
call   1070 <getBraceParam@plt>
mov    %rax,%r12
mov    %r14,%rdi
call   10c0 <UpdateLineNumber@plt>
mov    %rbp,%rdi
call   10c0 <UpdateLineNumber@plt>
test   %r13,%r13
je     1289 <CmdNewDef+0xd9>
mov    %r13,%rdi
call   10c0 <UpdateLineNumber@plt>
mov    %r12,%rdi
call   10c0 <UpdateLineNumber@plt>
test   %rbp,%rbp
je     12e0 <CmdNewDef+0x130>
movzbl 0x0(%rbp),%ebx
lea    -0x30(%rbx),%eax
cmp    $0x9,%al
ja     12ce <CmdNewDef+0x11e>
add    $0xffffffd0,%ebx
jmp    12e0 <CmdNewDef+0x130>
xor    %r13d,%r13d
xor    %ebp,%ebp
jmp    1301 <CmdNewDef+0x151>
lea    0xd4c(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <diagnostics@plt>
lea    0xd57(%rip),%rsi
xor    %ebx,%ebx
xor    %edi,%edi
xor    %eax,%eax
call   1080 <diagnostics@plt>
mov    %r14,%rdi
add    $0x1,%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %ebx,%ecx
cmp    $0x1,%r15d
jne    12fc <CmdNewDef+0x14c>
call   10d0 <newDefinition@plt>
jmp    1301 <CmdNewDef+0x151>
call   1090 <renewDefinition@plt>
test   %r14,%r14
lea    0xd84(%rip),%r9
mov    %r14,%rdx
cmove  %r9,%rdx
test   %r13,%r13
mov    %r13,%r8
cmove  %r9,%r8
test   %r12,%r12
cmovne %r12,%r9
lea    0xd31(%rip),%rsi
mov    $0x4,%edi
mov    %ebx,%ecx
xor    %eax,%eax
call   1080 <diagnostics@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
test   %rbp,%rbp
je     1355 <CmdNewDef+0x1a5>
mov    %rbp,%rdi
call   1030 <free@plt>
test   %r13,%r13
je     1370 <CmdNewDef+0x1c0>
mov    %r13,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"Definition does not start with '\\' skipping\00"
@.str.1 = [47 x i8] c"non-numeric number of parameters in newcommand\00"
@.str.2 = [53 x i8] c"CmdNewDef name=<%s> param=%d opt_param=<%s> def=<%s>\00"
@.str.3 = [1 x i8] zeroinitializer
define void @CmdNewDef(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8
%7 = alloca i8*
%8 = alloca i32
store i32 %0, i32* %2
store i8* null, i8** %3
store i8* null, i8** %4
store i8* null, i8** %5
store i8* null, i8** %7
store i32 0, i32* %8
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 3
br i1 %10, label %11, label %48
11: ; preds = %1
%12 = call i8* (...) @getSimpleCommand()
store i8* %12, i8** %3
%13 = load i8*, i8** %3
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %11
%16 = call i32 (i32, i8*, ...) @diagnostics(i32 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %148
17: ; preds = %11
br label %18
18: ; preds = %36, %17
%19 = call signext i8 (...) @getTexChar()
store i8 %19, i8* %6
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i8, i8* %6
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 123
br label %26
26: ; preds = %22, %18
%27 = phi i1 [ false, %18 ], [ %25, %22 ]
br i1 %27, label %28, label %37
28: ; preds = %26
%29 = load i8, i8* %6
%30 = sext i8 %29 to i32
%31 = call i64 @isdigit(i32 %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = load i32, i32* %8
%35 = add nsw i32 %34, 1
store i32 %35, i32* %8
br label %36
36: ; preds = %33, %28
br label %18
37: ; preds = %26
%38 = call i32 @ungetTexChar(i8 signext 123)
store i8* null, i8** %4
%39 = call i8* (...) @getBraceParam()
store i8* %39, i8** %5
%40 = load i8*, i8** %5
%41 = call i32 @UpdateLineNumber(i8* %40)
%42 = load i8*, i8** %3
%43 = getelementptr inbounds i8, i8* %42, i64 1
%44 = load i8*, i8** %4
%45 = load i8*, i8** %5
%46 = load i32, i32* %8
%47 = call i32 @newDefinition(i8* %43, i8* %44, i8* %45, i32 %46)
br label %48
48: ; preds = %37, %1
%49 = load i32, i32* %2
%50 = icmp eq i32 %49, 1
br i1 %50, label %54, label %51
51: ; preds = %48
%52 = load i32, i32* %2
%53 = icmp eq i32 %52, 2
br i1 %53, label %54, label %109
54: ; preds = %51, %48
%55 = call i8* (...) @getBraceParam()
store i8* %55, i8** %3
%56 = call i8* (...) @getBracketParam()
store i8* %56, i8** %7
%57 = call i8* (...) @getBracketParam()
store i8* %57, i8** %4
%58 = call i8* (...) @getBraceParam()
store i8* %58, i8** %5
%59 = load i8*, i8** %3
%60 = call i32 @UpdateLineNumber(i8* %59)
%61 = load i8*, i8** %7
%62 = call i32 @UpdateLineNumber(i8* %61)
%63 = load i8*, i8** %4
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %68
65: ; preds = %54
%66 = load i8*, i8** %4
%67 = call i32 @UpdateLineNumber(i8* %66)
br label %68
68: ; preds = %65, %54
%69 = load i8*, i8** %5
%70 = call i32 @UpdateLineNumber(i8* %69)
store i32 0, i32* %8
%71 = load i8*, i8** %7
%72 = icmp ne i8* %71, null
br i1 %72, label %73, label %91
73: ; preds = %68
%74 = load i8*, i8** %7
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp sle i32 48, %76
br i1 %77, label %78, label %88
78: ; preds = %73
%79 = load i8*, i8** %7
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp sle i32 %81, 57
br i1 %82, label %83, label %88
83: ; preds = %78
%84 = load i8*, i8** %7
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = sub nsw i32 %86, 48
store i32 %87, i32* %8
br label %90
88: ; preds = %78, %73
%89 = call i32 (i32, i8*, ...) @diagnostics(i32 0, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
br label %90
90: ; preds = %88, %83
br label %91
91: ; preds = %90, %68
%92 = load i32, i32* %2
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %101
94: ; preds = %91
%95 = load i8*, i8** %3
%96 = getelementptr inbounds i8, i8* %95, i64 1
%97 = load i8*, i8** %4
%98 = load i8*, i8** %5
%99 = load i32, i32* %8
%100 = call i32 @newDefinition(i8* %96, i8* %97, i8* %98, i32 %99)
br label %108
101: ; preds = %91
%102 = load i8*, i8** %3
%103 = getelementptr inbounds i8, i8* %102, i64 1
%104 = load i8*, i8** %4
%105 = load i8*, i8** %5
%106 = load i32, i32* %8
%107 = call i32 @renewDefinition(i8* %103, i8* %104, i8* %105, i32 %106)
br label %108
108: ; preds = %101, %94
br label %109
109: ; preds = %108, %51
%110 = load i8*, i8** %3
%111 = icmp ne i8* %110, null
br i1 %111, label %112, label %114
112: ; preds = %109
%113 = load i8*, i8** %3
br label %115
114: ; preds = %109
br label %115
115: ; preds = %114, %112
%116 = phi i8* [ %113, %112 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), %114 ]
%117 = load i32, i32* %8
%118 = load i8*, i8** %4
%119 = icmp ne i8* %118, null
br i1 %119, label %120, label %122
120: ; preds = %115
%121 = load i8*, i8** %4
br label %123
122: ; preds = %115
br label %123
123: ; preds = %122, %120
%124 = phi i8* [ %121, %120 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), %122 ]
%125 = load i8*, i8** %5
%126 = icmp ne i8* %125, null
br i1 %126, label %127, label %129
127: ; preds = %123
%128 = load i8*, i8** %5
br label %130
129: ; preds = %123
br label %130
130: ; preds = %129, %127
%131 = phi i8* [ %128, %127 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), %129 ]
%132 = call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %116, i32 %117, i8* %124, i8* %131)
%133 = load i8*, i8** %3
%134 = call i32 @free(i8* %133)
%135 = load i8*, i8** %5
%136 = call i32 @free(i8* %135)
%137 = load i8*, i8** %7
%138 = icmp ne i8* %137, null
br i1 %138, label %139, label %142
139: ; preds = %130
%140 = load i8*, i8** %7
%141 = call i32 @free(i8* %140)
br label %142
142: ; preds = %139, %130
%143 = load i8*, i8** %4
%144 = icmp ne i8* %143, null
br i1 %144, label %145, label %148
145: ; preds = %142
%146 = load i8*, i8** %4
%147 = call i32 @free(i8* %146)
br label %148
148: ; preds = %15, %145, %142
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"Definition does not start with '\\' skipping\00"
@.str.1 = [47 x i8] c"non-numeric number of parameters in newcommand\00"
@.str.2 = [53 x i8] c"CmdNewDef name=<%s> param=%d opt_param=<%s> def=<%s>\00"
@.str.3 = [1 x i8] zeroinitializer
define void @CmdNewDef(i32 %0) {
%2 = icmp eq i32 %0, 3
br i1 %2, label %3, label %23
3: ; preds = %1
%4 = tail call i8* (...) @getSimpleCommand()
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 (i32, i8*, ...) @diagnostics(i32 1, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
br label %80
8: ; preds = %3, %11
%9 = phi i32 [ %16, %11 ], [ 0, %3 ]
%10 = tail call signext i8 (...) @getTexChar()
switch i8 %10, label %11 [
i8 123, label %17
i8 0, label %17
]
11: ; preds = %8
%12 = sext i8 %10 to i32
%13 = tail call i64 @isdigit(i32 %12)
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i32
%16 = add nuw nsw i32 %9, %15
br label %8
17: ; preds = %8, %8
%18 = tail call i32 @ungetTexChar(i8 signext 123)
%19 = tail call i8* (...) @getBraceParam()
%20 = tail call i32 @UpdateLineNumber(i8* %19)
%21 = getelementptr inbounds i8, i8* %4, i64 1
%22 = tail call i32 @newDefinition(i8* %21, i8* null, i8* %19, i32 %9)
br label %23
23: ; preds = %17, %1
%24 = phi i8* [ %19, %17 ], [ null, %1 ]
%25 = phi i8* [ %4, %17 ], [ null, %1 ]
%26 = phi i32 [ %9, %17 ], [ 0, %1 ]
%27 = icmp eq i32 %0, 1
%28 = add i32 %0, -1
%29 = icmp ult i32 %28, 2
br i1 %29, label %30, label %59
30: ; preds = %23
%31 = tail call i8* (...) @getBraceParam()
%32 = tail call i8* (...) @getBracketParam()
%33 = tail call i8* (...) @getBracketParam()
%34 = tail call i8* (...) @getBraceParam()
%35 = tail call i32 @UpdateLineNumber(i8* %31)
%36 = tail call i32 @UpdateLineNumber(i8* %32)
%37 = icmp eq i8* %33, null
br i1 %37, label %40, label %38
38: ; preds = %30
%39 = tail call i32 @UpdateLineNumber(i8* %33)
br label %40
40: ; preds = %38, %30
%41 = tail call i32 @UpdateLineNumber(i8* %34)
%42 = icmp eq i8* %32, null
br i1 %42, label %52, label %43
43: ; preds = %40
%44 = load i8, i8* %32
%45 = add i8 %44, -48
%46 = icmp ult i8 %45, 10
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = zext i8 %44 to i32
%49 = add nsw i32 %48, -48
br label %52
50: ; preds = %43
%51 = tail call i32 (i32, i8*, ...) @diagnostics(i32 0, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
br label %52
52: ; preds = %47, %50, %40
%53 = phi i32 [ %49, %47 ], [ 0, %50 ], [ 0, %40 ]
%54 = getelementptr inbounds i8, i8* %31, i64 1
br i1 %27, label %55, label %57
55: ; preds = %52
%56 = tail call i32 @newDefinition(i8* %54, i8* %33, i8* %34, i32 %53)
br label %59
57: ; preds = %52
%58 = tail call i32 @renewDefinition(i8* %54, i8* %33, i8* %34, i32 %53)
br label %59
59: ; preds = %55, %57, %23
%60 = phi i8* [ %33, %55 ], [ %33, %57 ], [ null, %23 ]
%61 = phi i8* [ %34, %55 ], [ %34, %57 ], [ %24, %23 ]
%62 = phi i8* [ %31, %55 ], [ %31, %57 ], [ %25, %23 ]
%63 = phi i8* [ %32, %55 ], [ %32, %57 ], [ null, %23 ]
%64 = phi i32 [ %53, %55 ], [ %53, %57 ], [ %26, %23 ]
%65 = icmp eq i8* %62, null
%66 = select i1 %65, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* %62
%67 = icmp eq i8* %60, null
%68 = select i1 %67, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* %60
%69 = icmp eq i8* %61, null
%70 = select i1 %69, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* %61
%71 = tail call i32 (i32, i8*, ...) @diagnostics(i32 4, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i8* %66, i32 %64, i8* %68, i8* %70)
%72 = tail call i32 @free(i8* %62)
%73 = tail call i32 @free(i8* %61)
%74 = icmp eq i8* %63, null
br i1 %74, label %77, label %75
75: ; preds = %59
%76 = tail call i32 @free(i8* %63)
br label %77
77: ; preds = %75, %59
br i1 %67, label %80, label %78
78: ; preds = %77
%79 = tail call i32 @free(i8* %60)
br label %80
80: ; preds = %77, %78, %6
ret void
}