#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 */
struct cras_expr_expression {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ add_sub_expression(struct cras_expr_expression *,
                                      struct cras_expr_expression *);
int /*<<< orphan*/ cras_expr_expression_free(struct cras_expr_expression *);
scalar_t__ is_identifier_char(char const);
scalar_t__ isdigit(char const);
scalar_t__ isspace(char const);
struct cras_expr_expression *new_boolean_literal(int);
struct cras_expr_expression *new_compound_expression();
struct cras_expr_expression *new_integer_literal(int /*<<< orphan*/);
struct cras_expr_expression *new_string_literal(char const *, char const *);
struct cras_expr_expression *new_variable(char const *, char const *);
char *strchr(char const *, char);
int /*<<< orphan*/ strtol(char const *, char **, int);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, ...);
struct cras_expr_expression *parse_one_expr(const char **str) {
  while (isspace(**str))
    (*str)++;
  if (**str == '\0')
    return NULL;
  if (**str == '#') {
    (*str)++;
    char c = **str;
    if (c == 't' || c == 'f') {
      (*str)++;
      return new_boolean_literal(c == 't');
    } else {
      syslog(LOG_ERR, "unexpected char after #: '%c'", c);
    }
    return NULL;
  }
  if (isdigit(**str) || (**str == '-' && isdigit((*str)[1])))
    return new_integer_literal(strtol(*str, (char **)str, 10));
  if (**str == '"') {
    const char *begin = *str + 1;
    const char *end = strchr(begin, '"');
    if (end == NULL) {
      syslog(LOG_ERR, "no matching \"");
      end = begin;
      *str = begin;
    } else {
      *str = end + 1;
    }
    return new_string_literal(begin, end);
  }
  if (**str == '(') {
    (*str)++;
    struct cras_expr_expression *expr = new_compound_expression();
    while (1) {
      struct cras_expr_expression *next = parse_one_expr(str);
      if (next == NULL)
        break;
      add_sub_expression(expr, next);
    }
    if (**str != ')') {
      syslog(LOG_ERR, "no matching ): found '%c'", **str);
      cras_expr_expression_free(expr);
      return NULL;
    } else {
      (*str)++;
    }
    return expr;
  }
  if (is_identifier_char(**str)) {
    const char *begin = *str;
    while (is_identifier_char(**str))
      (*str)++;
    return new_variable(begin, *str);
  }
  return NULL;
}


x86 assembly (clang, -O0):
<parse_one_expr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1080 <isspace@plt>
cmp    $0x0,%rax
je     1218 <parse_one_expr+0x38>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    11ec <parse_one_expr+0xc>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1238 <parse_one_expr+0x58>
movq   $0x0,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x23,%eax
jne    12d2 <parse_one_expr+0xf2>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x74,%eax
je     127f <parse_one_expr+0x9f>
movsbl -0x11(%rbp),%eax
cmp    $0x66,%eax
jne    12aa <parse_one_expr+0xca>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
movsbl -0x11(%rbp),%eax
cmp    $0x74,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1100 <new_boolean_literal@plt>
mov    %rax,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    0x2d27(%rip),%rax
mov    (%rax),%edi
movsbl -0x11(%rbp),%edx
lea    0xd42(%rip),%rsi
mov    $0x0,%al
call   10c0 <syslog@plt>
movq   $0x0,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
jne    1318 <parse_one_expr+0x138>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    133d <parse_one_expr+0x15d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl 0x1(%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     133d <parse_one_expr+0x15d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rsi
mov    $0xa,%edx
call   10a0 <strtol@plt>
mov    %eax,%edi
call   1070 <new_integer_literal@plt>
mov    %rax,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x22,%eax
jne    13d0 <parse_one_expr+0x1f0>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x22,%esi
call   1050 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    13ab <parse_one_expr+0x1cb>
mov    0x2c55(%rip),%rax
mov    (%rax),%edi
lea    0xc92(%rip),%rsi
mov    $0x0,%al
call   10c0 <syslog@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
jmp    13ba <parse_one_expr+0x1da>
mov    -0x28(%rbp),%rcx
add    $0x1,%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1060 <new_string_literal@plt>
mov    %rax,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x28,%eax
jne    1490 <parse_one_expr+0x2b0>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    $0x0,%al
call   10f0 <new_compound_expression@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
call   1090 <parse_one_expr@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1419 <parse_one_expr+0x239>
jmp    142b <parse_one_expr+0x24b>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   10e0 <add_sub_expression@plt>
jmp    13fc <parse_one_expr+0x21c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x29,%eax
je     1475 <parse_one_expr+0x295>
mov    0x2b93(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edx
lea    0xbd4(%rip),%rsi
mov    $0x0,%al
call   10c0 <syslog@plt>
mov    -0x30(%rbp),%rdi
call   10b0 <cras_expr_expression_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1040 <is_identifier_char@plt>
cmp    $0x0,%rax
je     14f9 <parse_one_expr+0x319>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1040 <is_identifier_char@plt>
cmp    $0x0,%rax
je     14e0 <parse_one_expr+0x300>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x1,%rcx
mov    %rcx,(%rax)
jmp    14b4 <parse_one_expr+0x2d4>
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
call   10d0 <new_variable@plt>
mov    %rax,-0x8(%rbp)
jmp    1501 <parse_one_expr+0x321>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_one_expr>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    (%rdi),%rax
movsbl (%rax),%edi
nopl   (%rax)
call   1080 <isspace@plt>
test   %rax,%rax
je     120a <parse_one_expr+0x2a>
mov    (%rbx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rbx)
movsbl 0x1(%rax),%edi
jmp    11f0 <parse_one_expr+0x10>
mov    (%rbx),%rax
mov    (%rax),%cl
test   %cl,%cl
je     134a <parse_one_expr+0x16a>
cmp    $0x23,%cl
jne    1251 <parse_one_expr+0x71>
lea    0x1(%rax),%rcx
mov    %rcx,(%rbx)
movsbl 0x1(%rax),%edx
cmp    $0x74,%edx
je     1235 <parse_one_expr+0x55>
cmp    $0x66,%dl
jne    12c9 <parse_one_expr+0xe9>
xor    %edi,%edi
cmp    $0x74,%dl
sete   %dil
add    $0x2,%rax
mov    %rax,(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1100 <new_boolean_literal@plt>
movsbl %cl,%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     127c <parse_one_expr+0x9c>
mov    (%rbx),%rdi
mov    %rbx,%rsi
mov    $0xa,%edx
call   10a0 <strtol@plt>
mov    %eax,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <new_integer_literal@plt>
mov    (%rbx),%r14
mov    (%r14),%al
cmp    $0x2d,%al
jne    129b <parse_one_expr+0xbb>
movsbl 0x1(%r14),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
jne    125e <parse_one_expr+0x7e>
mov    (%rbx),%r14
mov    (%r14),%al
cmp    $0x28,%al
je     12e5 <parse_one_expr+0x105>
cmp    $0x22,%al
jne    131a <parse_one_expr+0x13a>
add    $0x1,%r14
mov    %r14,%rdi
mov    $0x22,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     13a2 <parse_one_expr+0x1c2>
mov    %rax,%rcx
add    $0x1,%rcx
jmp    13bf <parse_one_expr+0x1df>
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
lea    0xd27(%rip),%rsi
xor    %r14d,%r14d
xor    %eax,%eax
call   10c0 <syslog@plt>
jmp    134d <parse_one_expr+0x16d>
add    $0x1,%r14
mov    %r14,(%rbx)
xor    %eax,%eax
call   10f0 <new_compound_expression@plt>
mov    %rax,%r14
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1090 <parse_one_expr@plt>
test   %rax,%rax
je     1358 <parse_one_expr+0x178>
mov    %r14,%rdi
mov    %rax,%rsi
call   10e0 <add_sub_expression@plt>
jmp    1300 <parse_one_expr+0x120>
movsbl %al,%edi
call   1040 <is_identifier_char@plt>
test   %rax,%rax
je     134a <parse_one_expr+0x16a>
mov    (%rbx),%r14
movsbl (%r14),%edi
xchg   %ax,%ax
call   1040 <is_identifier_char@plt>
test   %rax,%rax
je     136c <parse_one_expr+0x18c>
mov    (%rbx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rbx)
movsbl 0x1(%rax),%edi
jmp    1330 <parse_one_expr+0x150>
xor    %r14d,%r14d
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    (%rbx),%rax
movsbl (%rax),%edx
cmp    $0x29,%edx
jne    137e <parse_one_expr+0x19e>
add    $0x1,%rax
mov    %rax,(%rbx)
jmp    134d <parse_one_expr+0x16d>
mov    (%rbx),%rsi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    10d0 <new_variable@plt>
mov    0x2c53(%rip),%rax
mov    (%rax),%edi
lea    0xc9e(%rip),%rsi
xor    %eax,%eax
call   10c0 <syslog@plt>
mov    %r14,%rdi
call   10b0 <cras_expr_expression_free@plt>
xor    %r14d,%r14d
jmp    134d <parse_one_expr+0x16d>
mov    0x2c2f(%rip),%rax
mov    (%rax),%edi
lea    0xc6c(%rip),%rsi
xor    %eax,%eax
call   10c0 <syslog@plt>
mov    %r14,%rcx
mov    %r14,%rax
mov    %rcx,(%rbx)
mov    %r14,%rdi
mov    %rax,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <new_string_literal@plt>

LLVM IR (-O0):
%struct.cras_expr_expression = type { i32 }
@LOG_ERR = global i32 0
@.str = [30 x i8] c"unexpected char after #: '%c'\00"
@.str.1 = [14 x i8] c"no matching \22\00"
@.str.2 = [26 x i8] c"no matching ): found '%c'\00"
define %struct.cras_expr_expression* @parse_one_expr(i8** %0) {
%2 = alloca %struct.cras_expr_expression*
%3 = alloca i8**
%4 = alloca i8
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca %struct.cras_expr_expression*
%8 = alloca %struct.cras_expr_expression*
%9 = alloca i8*
store i8** %0, i8*** %3
br label %10
10: ; preds = %16, %1
%11 = load i8**, i8*** %3
%12 = load i8*, i8** %11
%13 = load i8, i8* %12
%14 = call i64 @isspace(i8 signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %10
%17 = load i8**, i8*** %3
%18 = load i8*, i8** %17
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %17
br label %10
20: ; preds = %10
%21 = load i8**, i8*** %3
%22 = load i8*, i8** %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %20
store %struct.cras_expr_expression* null, %struct.cras_expr_expression** %2
br label %182
27: ; preds = %20
%28 = load i8**, i8*** %3
%29 = load i8*, i8** %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 35
br i1 %32, label %33, label %62
33: ; preds = %27
%34 = load i8**, i8*** %3
%35 = load i8*, i8** %34
%36 = getelementptr inbounds i8, i8* %35, i32 1
store i8* %36, i8** %34
%37 = load i8**, i8*** %3
%38 = load i8*, i8** %37
%39 = load i8, i8* %38
store i8 %39, i8* %4
%40 = load i8, i8* %4
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 116
br i1 %42, label %47, label %43
43: ; preds = %33
%44 = load i8, i8* %4
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 102
br i1 %46, label %47, label %56
47: ; preds = %43, %33
%48 = load i8**, i8*** %3
%49 = load i8*, i8** %48
%50 = getelementptr inbounds i8, i8* %49, i32 1
store i8* %50, i8** %48
%51 = load i8, i8* %4
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 116
%54 = zext i1 %53 to i32
%55 = call %struct.cras_expr_expression* @new_boolean_literal(i32 %54)
store %struct.cras_expr_expression* %55, %struct.cras_expr_expression** %2
br label %182
56: ; preds = %43
%57 = load i32, i32* @LOG_ERR
%58 = load i8, i8* %4
%59 = sext i8 %58 to i32
%60 = call i32 (i32, i8*, ...) @syslog(i32 %57, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %59)
br label %61
61: ; preds = %56
store %struct.cras_expr_expression* null, %struct.cras_expr_expression** %2
br label %182
62: ; preds = %27
%63 = load i8**, i8*** %3
%64 = load i8*, i8** %63
%65 = load i8, i8* %64
%66 = call i64 @isdigit(i8 signext %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %81, label %68
68: ; preds = %62
%69 = load i8**, i8*** %3
%70 = load i8*, i8** %69
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 45
br i1 %73, label %74, label %87
74: ; preds = %68
%75 = load i8**, i8*** %3
%76 = load i8*, i8** %75
%77 = getelementptr inbounds i8, i8* %76, i64 1
%78 = load i8, i8* %77
%79 = call i64 @isdigit(i8 signext %78)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %87
81: ; preds = %74, %62
%82 = load i8**, i8*** %3
%83 = load i8*, i8** %82
%84 = load i8**, i8*** %3
%85 = call i32 @strtol(i8* %83, i8** %84, i32 10)
%86 = call %struct.cras_expr_expression* @new_integer_literal(i32 %85)
store %struct.cras_expr_expression* %86, %struct.cras_expr_expression** %2
br label %182
87: ; preds = %74, %68
%88 = load i8**, i8*** %3
%89 = load i8*, i8** %88
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 34
br i1 %92, label %93, label %115
93: ; preds = %87
%94 = load i8**, i8*** %3
%95 = load i8*, i8** %94
%96 = getelementptr inbounds i8, i8* %95, i64 1
store i8* %96, i8** %5
%97 = load i8*, i8** %5
%98 = call i8* @strchr(i8* %97, i8 signext 34)
store i8* %98, i8** %6
%99 = load i8*, i8** %6
%100 = icmp eq i8* %99, null
br i1 %100, label %101, label %107
101: ; preds = %93
%102 = load i32, i32* @LOG_ERR
%103 = call i32 (i32, i8*, ...) @syslog(i32 %102, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%104 = load i8*, i8** %5
store i8* %104, i8** %6
%105 = load i8*, i8** %5
%106 = load i8**, i8*** %3
store i8* %105, i8** %106
br label %111
107: ; preds = %93
%108 = load i8*, i8** %6
%109 = getelementptr inbounds i8, i8* %108, i64 1
%110 = load i8**, i8*** %3
store i8* %109, i8** %110
br label %111
111: ; preds = %107, %101
%112 = load i8*, i8** %5
%113 = load i8*, i8** %6
%114 = call %struct.cras_expr_expression* @new_string_literal(i8* %112, i8* %113)
store %struct.cras_expr_expression* %114, %struct.cras_expr_expression** %2
br label %182
115: ; preds = %87
%116 = load i8**, i8*** %3
%117 = load i8*, i8** %116
%118 = load i8, i8* %117
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 40
br i1 %120, label %121, label %157
121: ; preds = %115
%122 = load i8**, i8*** %3
%123 = load i8*, i8** %122
%124 = getelementptr inbounds i8, i8* %123, i32 1
store i8* %124, i8** %122
%125 = call %struct.cras_expr_expression* (...) @new_compound_expression()
store %struct.cras_expr_expression* %125, %struct.cras_expr_expression** %7
br label %126
126: ; preds = %121, %132
%127 = load i8**, i8*** %3
%128 = call %struct.cras_expr_expression* @parse_one_expr(i8** %127)
store %struct.cras_expr_expression* %128, %struct.cras_expr_expression** %8
%129 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %8
%130 = icmp eq %struct.cras_expr_expression* %129, null
br i1 %130, label %131, label %132
131: ; preds = %126
br label %136
132: ; preds = %126
%133 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %7
%134 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %8
%135 = call i32 @add_sub_expression(%struct.cras_expr_expression* %133, %struct.cras_expr_expression* %134)
br label %126
136: ; preds = %131
%137 = load i8**, i8*** %3
%138 = load i8*, i8** %137
%139 = load i8, i8* %138
%140 = sext i8 %139 to i32
%141 = icmp ne i32 %140, 41
br i1 %141, label %142, label %151
142: ; preds = %136
%143 = load i32, i32* @LOG_ERR
%144 = load i8**, i8*** %3
%145 = load i8*, i8** %144
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = call i32 (i32, i8*, ...) @syslog(i32 %143, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %147)
%149 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %7
%150 = call i32 @cras_expr_expression_free(%struct.cras_expr_expression* %149)
store %struct.cras_expr_expression* null, %struct.cras_expr_expression** %2
br label %182
151: ; preds = %136
%152 = load i8**, i8*** %3
%153 = load i8*, i8** %152
%154 = getelementptr inbounds i8, i8* %153, i32 1
store i8* %154, i8** %152
br label %155
155: ; preds = %151
%156 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %7
store %struct.cras_expr_expression* %156, %struct.cras_expr_expression** %2
br label %182
157: ; preds = %115
%158 = load i8**, i8*** %3
%159 = load i8*, i8** %158
%160 = load i8, i8* %159
%161 = call i64 @is_identifier_char(i8 signext %160)
%162 = icmp ne i64 %161, 0
br i1 %162, label %163, label %181
163: ; preds = %157
%164 = load i8**, i8*** %3
%165 = load i8*, i8** %164
store i8* %165, i8** %9
br label %166
166: ; preds = %172, %163
%167 = load i8**, i8*** %3
%168 = load i8*, i8** %167
%169 = load i8, i8* %168
%170 = call i64 @is_identifier_char(i8 signext %169)
%171 = icmp ne i64 %170, 0
br i1 %171, label %172, label %176
172: ; preds = %166
%173 = load i8**, i8*** %3
%174 = load i8*, i8** %173
%175 = getelementptr inbounds i8, i8* %174, i32 1
store i8* %175, i8** %173
br label %166
176: ; preds = %166
%177 = load i8*, i8** %9
%178 = load i8**, i8*** %3
%179 = load i8*, i8** %178
%180 = call %struct.cras_expr_expression* @new_variable(i8* %177, i8* %179)
store %struct.cras_expr_expression* %180, %struct.cras_expr_expression** %2
br label %182
181: ; preds = %157
store %struct.cras_expr_expression* null, %struct.cras_expr_expression** %2
br label %182
182: ; preds = %181, %176, %155, %142, %111, %81, %61, %47, %26
%183 = load %struct.cras_expr_expression*, %struct.cras_expr_expression** %2
ret %struct.cras_expr_expression* %183
}

LLVM IR (-O2):
%struct.cras_expr_expression = type { i32 }
@LOG_ERR = global i32 0
@.str = [30 x i8] c"unexpected char after #: '%c'\00"
@.str.1 = [14 x i8] c"no matching \22\00"
@.str.2 = [26 x i8] c"no matching ): found '%c'\00"
define %struct.cras_expr_expression* @parse_one_expr(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = load i8, i8* %2
%4 = tail call i64 @isspace(i8 signext %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %12, label %6
6: ; preds = %1, %6
%7 = load i8*, i8** %0
%8 = getelementptr inbounds i8, i8* %7, i64 1
store i8* %8, i8** %0
%9 = load i8, i8* %8
%10 = tail call i64 @isspace(i8 signext %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %6
12: ; preds = %6, %1
%13 = load i8*, i8** %0
%14 = load i8, i8* %13
switch i8 %14, label %27 [
i8 0, label %100
i8 35, label %15
]
15: ; preds = %12
%16 = getelementptr inbounds i8, i8* %13, i64 1
store i8* %16, i8** %0
%17 = load i8, i8* %16
switch i8 %17, label %23 [
i8 116, label %18
i8 102, label %18
]
18: ; preds = %15, %15
%19 = icmp eq i8 %17, 116
%20 = getelementptr inbounds i8, i8* %13, i64 2
store i8* %20, i8** %0
%21 = zext i1 %19 to i32
%22 = tail call %struct.cras_expr_expression* @new_boolean_literal(i32 %21)
br label %100
23: ; preds = %15
%24 = sext i8 %17 to i32
%25 = load i32, i32* @LOG_ERR
%26 = tail call i32 (i32, i8*, ...) @syslog(i32 %25, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %24)
br label %100
27: ; preds = %12
%28 = tail call i64 @isdigit(i8 signext %14)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %42
30: ; preds = %27
%31 = load i8*, i8** %0
%32 = load i8, i8* %31
%33 = icmp eq i8 %32, 45
br i1 %33, label %34, label %46
34: ; preds = %30
%35 = getelementptr inbounds i8, i8* %31, i64 1
%36 = load i8, i8* %35
%37 = tail call i64 @isdigit(i8 signext %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i8*, i8** %0
%41 = load i8, i8* %40
br label %46
42: ; preds = %34, %27
%43 = load i8*, i8** %0
%44 = tail call i32 @strtol(i8* %43, i8** %0, i32 10)
%45 = tail call %struct.cras_expr_expression* @new_integer_literal(i32 %44)
br label %100
46: ; preds = %39, %30
%47 = phi i8 [ %41, %39 ], [ %32, %30 ]
%48 = phi i8* [ %40, %39 ], [ %31, %30 ]
switch i8 %47, label %83 [
i8 34, label %49
i8 40, label %62
]
49: ; preds = %46
%50 = getelementptr inbounds i8, i8* %48, i64 1
%51 = tail call i8* @strchr(i8* %50, i8 signext 34)
%52 = icmp eq i8* %51, null
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, i32* @LOG_ERR
%55 = tail call i32 (i32, i8*, ...) @syslog(i32 %54, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %58
56: ; preds = %49
%57 = getelementptr inbounds i8, i8* %51, i64 1
br label %58
58: ; preds = %56, %53
%59 = phi i8* [ %57, %56 ], [ %50, %53 ]
%60 = phi i8* [ %51, %56 ], [ %50, %53 ]
store i8* %59, i8** %0
%61 = tail call %struct.cras_expr_expression* @new_string_literal(i8* %50, i8* %60)
br label %100
62: ; preds = %46
%63 = getelementptr inbounds i8, i8* %48, i64 1
store i8* %63, i8** %0
%64 = tail call %struct.cras_expr_expression* (...) @new_compound_expression()
%65 = tail call %struct.cras_expr_expression* @parse_one_expr(i8** %0)
%66 = icmp eq %struct.cras_expr_expression* %65, null
br i1 %66, label %72, label %67
67: ; preds = %62, %67
%68 = phi %struct.cras_expr_expression* [ %70, %67 ], [ %65, %62 ]
%69 = tail call i32 @add_sub_expression(%struct.cras_expr_expression* %64, %struct.cras_expr_expression* %68)
%70 = tail call %struct.cras_expr_expression* @parse_one_expr(i8** %0)
%71 = icmp eq %struct.cras_expr_expression* %70, null
br i1 %71, label %72, label %67
72: ; preds = %67, %62
%73 = load i8*, i8** %0
%74 = load i8, i8* %73
%75 = icmp eq i8 %74, 41
br i1 %75, label %81, label %76
76: ; preds = %72
%77 = sext i8 %74 to i32
%78 = load i32, i32* @LOG_ERR
%79 = tail call i32 (i32, i8*, ...) @syslog(i32 %78, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %77)
%80 = tail call i32 @cras_expr_expression_free(%struct.cras_expr_expression* %64)
br label %100
81: ; preds = %72
%82 = getelementptr inbounds i8, i8* %73, i64 1
store i8* %82, i8** %0
br label %100
83: ; preds = %46
%84 = tail call i64 @is_identifier_char(i8 signext %47)
%85 = icmp eq i64 %84, 0
br i1 %85, label %100, label %86
86: ; preds = %83
%87 = load i8*, i8** %0
%88 = load i8, i8* %87
%89 = tail call i64 @is_identifier_char(i8 signext %88)
%90 = icmp eq i64 %89, 0
br i1 %90, label %97, label %91
91: ; preds = %86, %91
%92 = load i8*, i8** %0
%93 = getelementptr inbounds i8, i8* %92, i64 1
store i8* %93, i8** %0
%94 = load i8, i8* %93
%95 = tail call i64 @is_identifier_char(i8 signext %94)
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %91
97: ; preds = %91, %86
%98 = load i8*, i8** %0
%99 = tail call %struct.cras_expr_expression* @new_variable(i8* %87, i8* %98)
br label %100
100: ; preds = %83, %76, %81, %18, %23, %12, %97, %58, %42
%101 = phi %struct.cras_expr_expression* [ %45, %42 ], [ %61, %58 ], [ %99, %97 ], [ null, %12 ], [ %22, %18 ], [ null, %23 ], [ null, %76 ], [ %64, %81 ], [ null, %83 ]
ret %struct.cras_expr_expression* %101
}