#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*/ are_equal(char *, char *);
void lexer_tests() {
  are_equal("(set position (* 60 (+ initial rate)))",
            "[left_paren,(][symbol,set][symbol,position][left_paren,(]["
            "identifier,*][num,60][left_paren,(][identifier,+][symbol,initial]["
            "symbol,rate][right_paren,)][right_paren,)][right_paren,)]");
  are_equal("(+ 137 349)",
            "[left_paren,(][identifier,+][num,137][num,349][right_paren,)]");
  are_equal("(- 1000 334)",
            "[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]");
  are_equal("(* 5 99) ",
            "[left_paren,(][identifier,*][num,5][num,99][right_paren,)]");
  are_equal("(/ 10 5)",
            "[left_paren,(][identifier,/][num,10][num,5][right_paren,)]");
  are_equal("(+ 2.7 10 ) ",
            "[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]");
}


x86 assembly (clang, -O0):
<lexer_tests>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf05(%rip),%rsi
call   1030 <are_equal@plt>
lea    0xfaf(%rip),%rdi
lea    0xfb4(%rip),%rsi
call   1030 <are_equal@plt>
lea    0xfe6(%rip),%rdi
lea    0xfec(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x101f(%rip),%rdi
lea    0x1022(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x1051(%rip),%rdi
lea    0x1053(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x1082(%rip),%rdi
lea    0x1088(%rip),%rsi
call   1030 <are_equal@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lexer_tests>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xf08(%rip),%rsi
call   1030 <are_equal@plt>
lea    0xfb2(%rip),%rdi
lea    0xfb7(%rip),%rsi
call   1030 <are_equal@plt>
lea    0xfe9(%rip),%rdi
lea    0xfef(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x1022(%rip),%rdi
lea    0x1025(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x1054(%rip),%rdi
lea    0x1056(%rip),%rsi
call   1030 <are_equal@plt>
lea    0x1085(%rip),%rdi
lea    0x108b(%rip),%rsi
pop    %rax
jmp    1030 <are_equal@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"(set position (* 60 (+ initial rate)))\00"
@.str.1 = [182 x i8] c"[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]\00"
@.str.2 = [12 x i8] c"(+ 137 349)\00"
@.str.3 = [62 x i8] c"[left_paren,(][identifier,+][num,137][num,349][right_paren,)]\00"
@.str.4 = [13 x i8] c"(- 1000 334)\00"
@.str.5 = [63 x i8] c"[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]\00"
@.str.6 = [10 x i8] c"(* 5 99) \00"
@.str.7 = [59 x i8] c"[left_paren,(][identifier,*][num,5][num,99][right_paren,)]\00"
@.str.8 = [9 x i8] c"(/ 10 5)\00"
@.str.9 = [59 x i8] c"[left_paren,(][identifier,/][num,10][num,5][right_paren,)]\00"
@.str.10 = [13 x i8] c"(+ 2.7 10 ) \00"
@.str.11 = [61 x i8] c"[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]\00"
define void @lexer_tests() {
%1 = call i32 @are_equal(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @are_equal(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @are_equal(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @are_equal(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @are_equal(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 @are_equal(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"(set position (* 60 (+ initial rate)))\00"
@.str.1 = [182 x i8] c"[left_paren,(][symbol,set][symbol,position][left_paren,(][identifier,*][num,60][left_paren,(][identifier,+][symbol,initial][symbol,rate][right_paren,)][right_paren,)][right_paren,)]\00"
@.str.2 = [12 x i8] c"(+ 137 349)\00"
@.str.3 = [62 x i8] c"[left_paren,(][identifier,+][num,137][num,349][right_paren,)]\00"
@.str.4 = [13 x i8] c"(- 1000 334)\00"
@.str.5 = [63 x i8] c"[left_paren,(][identifier,-][num,1000][num,334][right_paren,)]\00"
@.str.6 = [10 x i8] c"(* 5 99) \00"
@.str.7 = [59 x i8] c"[left_paren,(][identifier,*][num,5][num,99][right_paren,)]\00"
@.str.8 = [9 x i8] c"(/ 10 5)\00"
@.str.9 = [59 x i8] c"[left_paren,(][identifier,/][num,10][num,5][right_paren,)]\00"
@.str.10 = [13 x i8] c"(+ 2.7 10 ) \00"
@.str.11 = [61 x i8] c"[left_paren,(][identifier,+][num,2.7][num,10][right_paren,)]\00"
define void @lexer_tests() {
%1 = tail call i32 @are_equal(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([182 x i8], [182 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @are_equal(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @are_equal(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @are_equal(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @are_equal(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @are_equal(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
ret void
}