#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*/ assert(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ isalnum(unsigned int);
scalar_t__ isdigit(unsigned int);
scalar_t__ isspace(unsigned int);
char *malloc(size_t);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strncpy(char *, char *, size_t);
void evaluate(char *line) {
  char *p = NULL;
  fprintf(stderr, "in evaluate() at %p: '%c'\n", line, *line);
  p = line;
  while (*p) {
    int n = 0;
    char *beginning_of_identifier = NULL;
    char *new_identifier = NULL;
    size_t length_of_identifier = 0;
    if (isspace((unsigned)*p)) {
      p++;
    } else if (isdigit((unsigned)*p)) {
      n = *p - '0';
      p++;
      while (*p && isdigit((unsigned)*p)) {
        n = 10 * n + *p - '0';
        p++;
      }
      fprintf(stderr, "found a number: n = %d\n", n);
    } else if (isalnum((unsigned)*p)) {
      beginning_of_identifier = p;
      while (*p && isalnum((unsigned)*p)) {
        p++;
      }
      length_of_identifier = p - beginning_of_identifier;
      assert(new_identifier = malloc(length_of_identifier + 1));
      strncpy(new_identifier, beginning_of_identifier, length_of_identifier);
      new_identifier[length_of_identifier] = '\0';
      fprintf(stderr, "found an identifier: \"%s\"\n", new_identifier);
    } else if ('(' == *p) {
      fprintf(stderr, "found the beginning of an s-expression at %p\n", p);
      p++;
      fprintf(stderr, "calling evaluate() at %p\n", p);
      evaluate(p);
    } else if (')' == *p) {
      fprintf(stderr, "found the end of an s-expression\n");
      p++;
    } else {
      fprintf(stderr, "skipping...\n");
      p++;
    }
  }
}


x86 assembly (clang, -O0):
<evaluate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    0x2e45(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
lea    0xe51(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1469 <evaluate+0x2e9>
movl   $0x0,-0x14(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1060 <isspace@plt>
cmp    $0x0,%rax
je     1211 <evaluate+0x91>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1464 <evaluate+0x2e4>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     12be <evaluate+0x13e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x30,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x31(%rbp)
je     126b <evaluate+0xeb>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x31(%rbp)
mov    -0x31(%rbp),%al
test   $0x1,%al
jne    127b <evaluate+0xfb>
jmp    129f <evaluate+0x11f>
imul   $0xa,-0x14(%rbp),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
add    %ecx,%eax
sub    $0x30,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1240 <evaluate+0xc0>
mov    0x2d3a(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xd69(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    145f <evaluate+0x2df>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
cmp    $0x0,%rax
je     138d <evaluate+0x20d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x32(%rbp)
je     1307 <evaluate+0x187>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isalnum@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x32(%rbp)
mov    -0x32(%rbp),%al
test   $0x1,%al
jne    1317 <evaluate+0x197>
jmp    1328 <evaluate+0x1a8>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12dc <evaluate+0x15c>
mov    -0x10(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
add    $0x1,%rdi
call   1090 <malloc@plt>
mov    %rax,%rdi
mov    %rdi,-0x28(%rbp)
call   1070 <assert@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <strncpy@plt>
mov    -0x28(%rbp),%rax
mov    -0x30(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xcb2(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    145a <evaluate+0x2da>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x28,%eax
cmp    %ecx,%eax
jne    13f1 <evaluate+0x271>
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xc99(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    0x2c11(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xca0(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rdi
call   10a0 <evaluate@plt>
jmp    1455 <evaluate+0x2d5>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x29,%eax
cmp    %ecx,%eax
jne    142d <evaluate+0x2ad>
mov    0x2bd4(%rip),%rax
mov    (%rax),%edi
lea    0xc81(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1450 <evaluate+0x2d0>
mov    0x2bac(%rip),%rax
mov    (%rax),%edi
lea    0xc7b(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1455 <evaluate+0x2d5>
jmp    145a <evaluate+0x2da>
jmp    145f <evaluate+0x2df>
jmp    1464 <evaluate+0x2e4>
jmp    11be <evaluate+0x3e>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2e4b(%rip),%r13
mov    0x0(%r13),%edi
movsbl (%rbx),%ecx
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    (%rbx),%al
test   %al,%al
je     132d <evaluate+0x1ad>
lea    0xe5d(%rip),%r14
jmp    11ee <evaluate+0x6e>
mov    0x0(%r13),%edi
lea    0xeed(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rbx
mov    (%rbx),%al
test   %al,%al
je     132d <evaluate+0x1ad>
movsbl %al,%edi
call   1060 <isspace@plt>
test   %rax,%rax
jne    11e0 <evaluate+0x60>
movsbl (%rbx),%edi
call   1040 <isdigit@plt>
movsbl (%rbx),%r15d
test   %rax,%rax
je     1253 <evaluate+0xd3>
add    $0xffffffd0,%r15d
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1240 <evaluate+0xc0>
movsbl %al,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     1240 <evaluate+0xc0>
lea    (%r15,%r15,4),%eax
movsbl (%rbx),%ecx
lea    (%rcx,%rax,2),%r15d
add    $0xffffffd0,%r15d
jmp    1210 <evaluate+0x90>
nopw   0x0(%rax,%rax,1)
mov    0x0(%r13),%edi
mov    %r14,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    11e4 <evaluate+0x64>
mov    %r15d,%edi
call   1050 <isalnum@plt>
mov    (%rbx),%cl
test   %rax,%rax
je     12d4 <evaluate+0x154>
mov    %rbx,%rbp
test   %cl,%cl
je     1289 <evaluate+0x109>
mov    %rbx,%rbp
nopl   0x0(%rax)
movsbl %cl,%edi
call   1050 <isalnum@plt>
test   %rax,%rax
je     1289 <evaluate+0x109>
movzbl 0x1(%rbp),%ecx
add    $0x1,%rbp
test   %cl,%cl
jne    1270 <evaluate+0xf0>
mov    %rbp,%r12
sub    %rbx,%r12
lea    0x1(%r12),%rdi
call   1090 <malloc@plt>
mov    %rax,%r15
mov    %rax,%rdi
call   1070 <assert@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
call   1030 <strncpy@plt>
movb   $0x0,(%r15,%r12,1)
mov    0x0(%r13),%edi
lea    0xd71(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbp,%rbx
jmp    11e4 <evaluate+0x64>
cmp    $0x29,%cl
je     131d <evaluate+0x19d>
cmp    $0x28,%cl
jne    11c0 <evaluate+0x40>
mov    0x0(%r13),%edi
lea    0xd61(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%rbx
mov    0x0(%r13),%edi
lea    0xd76(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
call   10a0 <evaluate@plt>
jmp    11e4 <evaluate+0x64>
mov    0x0(%r13),%edi
lea    0xd6e(%rip),%rsi
jmp    11cb <evaluate+0x4b>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [27 x i8] c"in evaluate() at %p: '%c'\0A\00"
@.str.1 = [24 x i8] c"found a number: n = %d\0A\00"
@.str.2 = [27 x i8] c"found an identifier: \22%s\22\0A\00"
@.str.3 = [46 x i8] c"found the beginning of an s-expression at %p\0A\00"
@.str.4 = [26 x i8] c"calling evaluate() at %p\0A\00"
@.str.5 = [34 x i8] c"found the end of an s-expression\0A\00"
@.str.6 = [13 x i8] c"skipping...\0A\00"
define void @evaluate(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
store i8* %0, i8** %2
store i8* null, i8** %3
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %2
%10 = load i8*, i8** %2
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %9, i32 %12)
%14 = load i8*, i8** %2
store i8* %14, i8** %3
br label %15
15: ; preds = %146, %1
%16 = load i8*, i8** %3
%17 = load i8, i8* %16
%18 = icmp ne i8 %17, 0
br i1 %18, label %19, label %147
19: ; preds = %15
store i32 0, i32* %4
store i8* null, i8** %5
store i8* null, i8** %6
store i64 0, i64* %7
%20 = load i8*, i8** %3
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = call i64 @isspace(i32 %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %19
%26 = load i8*, i8** %3
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %3
br label %146
28: ; preds = %19
%29 = load i8*, i8** %3
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = call i64 @isdigit(i32 %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %68
34: ; preds = %28
%35 = load i8*, i8** %3
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = sub nsw i32 %37, 48
store i32 %38, i32* %4
%39 = load i8*, i8** %3
%40 = getelementptr inbounds i8, i8* %39, i32 1
store i8* %40, i8** %3
br label %41
41: ; preds = %54, %34
%42 = load i8*, i8** %3
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %52
46: ; preds = %41
%47 = load i8*, i8** %3
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = call i64 @isdigit(i32 %49)
%51 = icmp ne i64 %50, 0
br label %52
52: ; preds = %46, %41
%53 = phi i1 [ false, %41 ], [ %51, %46 ]
br i1 %53, label %54, label %64
54: ; preds = %52
%55 = load i32, i32* %4
%56 = mul nsw i32 10, %55
%57 = load i8*, i8** %3
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = add nsw i32 %56, %59
%61 = sub nsw i32 %60, 48
store i32 %61, i32* %4
%62 = load i8*, i8** %3
%63 = getelementptr inbounds i8, i8* %62, i32 1
store i8* %63, i8** %3
br label %41
64: ; preds = %52
%65 = load i32, i32* @stderr
%66 = load i32, i32* %4
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %66)
br label %145
68: ; preds = %28
%69 = load i8*, i8** %3
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = call i64 @isalnum(i32 %71)
%73 = icmp ne i64 %72, 0
br i1 %73, label %74, label %112
74: ; preds = %68
%75 = load i8*, i8** %3
store i8* %75, i8** %5
br label %76
76: ; preds = %89, %74
%77 = load i8*, i8** %3
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %87
81: ; preds = %76
%82 = load i8*, i8** %3
%83 = load i8, i8* %82
%84 = sext i8 %83 to i32
%85 = call i64 @isalnum(i32 %84)
%86 = icmp ne i64 %85, 0
br label %87
87: ; preds = %81, %76
%88 = phi i1 [ false, %76 ], [ %86, %81 ]
br i1 %88, label %89, label %92
89: ; preds = %87
%90 = load i8*, i8** %3
%91 = getelementptr inbounds i8, i8* %90, i32 1
store i8* %91, i8** %3
br label %76
92: ; preds = %87
%93 = load i8*, i8** %3
%94 = load i8*, i8** %5
%95 = ptrtoint i8* %93 to i64
%96 = ptrtoint i8* %94 to i64
%97 = sub i64 %95, %96
store i64 %97, i64* %7
%98 = load i64, i64* %7
%99 = add i64 %98, 1
%100 = call i8* @malloc(i64 %99)
store i8* %100, i8** %6
%101 = call i32 @assert(i8* %100)
%102 = load i8*, i8** %6
%103 = load i8*, i8** %5
%104 = load i64, i64* %7
%105 = call i32 @strncpy(i8* %102, i8* %103, i64 %104)
%106 = load i8*, i8** %6
%107 = load i64, i64* %7
%108 = getelementptr inbounds i8, i8* %106, i64 %107
store i8 0, i8* %108
%109 = load i32, i32* @stderr
%110 = load i8*, i8** %6
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %109, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %110)
br label %144
112: ; preds = %68
%113 = load i8*, i8** %3
%114 = load i8, i8* %113
%115 = sext i8 %114 to i32
%116 = icmp eq i32 40, %115
br i1 %116, label %117, label %127
117: ; preds = %112
%118 = load i32, i32* @stderr
%119 = load i8*, i8** %3
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %119)
%121 = load i8*, i8** %3
%122 = getelementptr inbounds i8, i8* %121, i32 1
store i8* %122, i8** %3
%123 = load i32, i32* @stderr
%124 = load i8*, i8** %3
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %124)
%126 = load i8*, i8** %3
br label %143
127: ; preds = %112
%128 = load i8*, i8** %3
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = icmp eq i32 41, %130
br i1 %131, label %132, label %137
132: ; preds = %127
%133 = load i32, i32* @stderr
%134 = call i32 (i32, i8*, ...) @fprintf(i32 %133, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%135 = load i8*, i8** %3
%136 = getelementptr inbounds i8, i8* %135, i32 1
store i8* %136, i8** %3
br label %142
137: ; preds = %127
%138 = load i32, i32* @stderr
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%140 = load i8*, i8** %3
%141 = getelementptr inbounds i8, i8* %140, i32 1
store i8* %141, i8** %3
br label %142
142: ; preds = %137, %132
br label %143
143: ; preds = %142, %117
br label %144
144: ; preds = %143, %92
br label %145
145: ; preds = %144, %64
br label %146
146: ; preds = %145, %25
br label %15
147: ; preds = %15
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [27 x i8] c"in evaluate() at %p: '%c'\0A\00"
@.str.1 = [24 x i8] c"found a number: n = %d\0A\00"
@.str.2 = [27 x i8] c"found an identifier: \22%s\22\0A\00"
@.str.3 = [46 x i8] c"found the beginning of an s-expression at %p\0A\00"
@.str.4 = [26 x i8] c"calling evaluate() at %p\0A\00"
@.str.5 = [34 x i8] c"found the end of an s-expression\0A\00"
@.str.6 = [13 x i8] c"skipping...\0A\00"
define void @evaluate(i8* %0) {
%2 = load i32, i32* @stderr
%3 = load i8, i8* %0
%4 = sext i8 %3 to i32
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %4)
%6 = load i8, i8* %0
%7 = icmp eq i8 %6, 0
br i1 %7, label %96, label %8
8: ; preds = %1, %92
%9 = phi i8 [ %94, %92 ], [ %6, %1 ]
%10 = phi i8* [ %93, %92 ], [ %0, %1 ]
%11 = sext i8 %9 to i32
%12 = tail call i64 @isspace(i32 %11)
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %8
%15 = getelementptr inbounds i8, i8* %10, i64 1
br label %92
16: ; preds = %8
%17 = load i8, i8* %10
%18 = sext i8 %17 to i32
%19 = tail call i64 @isdigit(i32 %18)
%20 = icmp eq i64 %19, 0
%21 = load i8, i8* %10
%22 = sext i8 %21 to i32
br i1 %20, label %49, label %23
23: ; preds = %16
%24 = getelementptr inbounds i8, i8* %10, i64 1
%25 = add nsw i32 %22, -48
%26 = load i8, i8* %24
%27 = icmp eq i8 %26, 0
br i1 %27, label %44, label %28
28: ; preds = %23, %35
%29 = phi i8 [ %42, %35 ], [ %26, %23 ]
%30 = phi i32 [ %41, %35 ], [ %25, %23 ]
%31 = phi i8* [ %40, %35 ], [ %24, %23 ]
%32 = sext i8 %29 to i32
%33 = tail call i64 @isdigit(i32 %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %44, label %35
35: ; preds = %28
%36 = mul nsw i32 %30, 10
%37 = load i8, i8* %31
%38 = sext i8 %37 to i32
%39 = add nsw i32 %36, %38
%40 = getelementptr inbounds i8, i8* %31, i64 1
%41 = add nsw i32 %39, -48
%42 = load i8, i8* %40
%43 = icmp eq i8 %42, 0
br i1 %43, label %44, label %28
44: ; preds = %28, %35, %23
%45 = phi i8* [ %24, %23 ], [ %40, %35 ], [ %31, %28 ]
%46 = phi i32 [ %25, %23 ], [ %41, %35 ], [ %30, %28 ]
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %46)
br label %92
49: ; preds = %16
%50 = tail call i64 @isalnum(i32 %22)
%51 = icmp eq i64 %50, 0
%52 = load i8, i8* %10
br i1 %51, label %77, label %53
53: ; preds = %49
%54 = icmp eq i8 %52, 0
br i1 %54, label %65, label %55
55: ; preds = %53, %61
%56 = phi i8 [ %63, %61 ], [ %52, %53 ]
%57 = phi i8* [ %62, %61 ], [ %10, %53 ]
%58 = sext i8 %56 to i32
%59 = tail call i64 @isalnum(i32 %58)
%60 = icmp eq i64 %59, 0
br i1 %60, label %65, label %61
61: ; preds = %55
%62 = getelementptr inbounds i8, i8* %57, i64 1
%63 = load i8, i8* %62
%64 = icmp eq i8 %63, 0
br i1 %64, label %65, label %55
65: ; preds = %55, %61, %53
%66 = phi i8* [ %10, %53 ], [ %62, %61 ], [ %57, %55 ]
%67 = ptrtoint i8* %66 to i64
%68 = ptrtoint i8* %10 to i64
%69 = sub i64 %67, %68
%70 = add i64 %69, 1
%71 = tail call i8* @malloc(i64 %70)
%72 = tail call i32 @assert(i8* %71)
%73 = tail call i32 @strncpy(i8* %71, i8* %10, i64 %69)
%74 = getelementptr inbounds i8, i8* %71, i64 %69
store i8 0, i8* %74
%75 = load i32, i32* @stderr
%76 = tail call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %71)
br label %92
77: ; preds = %49
switch i8 %52, label %88 [
i8 40, label %78
i8 41, label %84
]
78: ; preds = %77
%79 = load i32, i32* @stderr
%80 = tail call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%81 = getelementptr inbounds i8, i8* %10, i64 1
%82 = load i32, i32* @stderr
%83 = tail call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %81)
tail call void @evaluate(i8* %81)
br label %92
84: ; preds = %77
%85 = load i32, i32* @stderr
%86 = tail call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%87 = getelementptr inbounds i8, i8* %10, i64 1
br label %92
88: ; preds = %77
%89 = load i32, i32* @stderr
%90 = tail call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%91 = getelementptr inbounds i8, i8* %10, i64 1
br label %92
92: ; preds = %44, %78, %88, %84, %65, %14
%93 = phi i8* [ %15, %14 ], [ %45, %44 ], [ %66, %65 ], [ %81, %78 ], [ %87, %84 ], [ %91, %88 ]
%94 = load i8, i8* %93
%95 = icmp eq i8 %94, 0
br i1 %95, label %96, label %8
96: ; preds = %92, %1
ret void
}