#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 prv_test_big_string();
int prv_test_empty();
int prv_test_fn_typed();
int prv_test_id_hash_var_upper_too_long();
int prv_test_int();
int prv_test_int_var_too_long();
int prv_test_int_vars();
int prv_test_keywords();
int prv_test_max_int_var();
int prv_test_max_real_var();
int prv_test_max_str_var();
int prv_test_number_too_large();
int prv_test_number_too_long();
int prv_test_operators();
int prv_test_proc_typed();
int prv_test_procedure_call();
int prv_test_push();
int prv_test_real();
int prv_test_real_var_too_long();
int prv_test_real_var_upper_too_long();
int prv_test_real_vars();
int prv_test_str_vars();
int prv_test_string();
int prv_test_string_hash_var_upper_too_long();
int prv_test_string_unterminated();
int prv_test_string_var_too_long();
int prv_test_string_var_upper_too_long();
int prv_test_unknown();
int lexer_test(void) {
  int failure = 0;
  failure |= prv_test_real_var_too_long();
  failure |= prv_test_string_var_too_long();
  failure |= prv_test_int_var_too_long();
  failure |= prv_test_max_int_var();
  failure |= prv_test_max_str_var();
  failure |= prv_test_max_real_var();
  failure |= prv_test_real_var_upper_too_long();
  failure |= prv_test_string_var_upper_too_long();
  failure |= prv_test_id_hash_var_upper_too_long();
  failure |= prv_test_string_hash_var_upper_too_long();
  failure |= prv_test_keywords();
  failure |= prv_test_procedure_call();
  failure |= prv_test_empty();
  failure |= prv_test_proc_typed();
  failure |= prv_test_fn_typed();
  failure |= prv_test_int();
  failure |= prv_test_real();
  failure |= prv_test_real_vars();
  failure |= prv_test_int_vars();
  failure |= prv_test_str_vars();
  failure |= prv_test_operators();
  failure |= prv_test_number_too_long();
  failure |= prv_test_number_too_large();
  failure |= prv_test_string();
  failure |= prv_test_string_unterminated();
  failure |= prv_test_big_string();
  failure |= prv_test_unknown();
  failure |= prv_test_push();
  return failure;
}


x86 assembly (clang, -O0):
<lexer_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   10e0 <prv_test_real_var_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1180 <prv_test_string_var_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10b0 <prv_test_int_var_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1170 <prv_test_max_int_var@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1190 <prv_test_max_str_var@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1150 <prv_test_max_real_var@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   11b0 <prv_test_real_var_upper_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10d0 <prv_test_string_var_upper_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1110 <prv_test_id_hash_var_upper_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1140 <prv_test_string_hash_var_upper_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   11e0 <prv_test_keywords@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <prv_test_procedure_call@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1090 <prv_test_empty@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   11c0 <prv_test_proc_typed@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10f0 <prv_test_fn_typed@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1080 <prv_test_int@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10c0 <prv_test_real@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1120 <prv_test_real_vars@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1060 <prv_test_int_vars@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   11d0 <prv_test_str_vars@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1160 <prv_test_operators@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <prv_test_number_too_long@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1070 <prv_test_number_too_large@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1130 <prv_test_string@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   11a0 <prv_test_string_unterminated@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1100 <prv_test_big_string@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1050 <prv_test_unknown@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10a0 <prv_test_push@plt>
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lexer_test>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   10e0 <prv_test_real_var_too_long@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1180 <prv_test_string_var_too_long@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   10b0 <prv_test_int_var_too_long@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1170 <prv_test_max_int_var@plt>
mov    %eax,%ebp
or     %r14d,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1190 <prv_test_max_str_var@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1150 <prv_test_max_real_var@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   11b0 <prv_test_real_var_upper_too_long@plt>
mov    %eax,%r14d
or     %ebx,%r14d
or     %ebp,%r14d
xor    %eax,%eax
call   10d0 <prv_test_string_var_upper_too_long@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1110 <prv_test_id_hash_var_upper_too_long@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1140 <prv_test_string_hash_var_upper_too_long@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   11e0 <prv_test_keywords@plt>
mov    %eax,%r15d
or     %ebx,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   1040 <prv_test_procedure_call@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1090 <prv_test_empty@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   11c0 <prv_test_proc_typed@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10f0 <prv_test_fn_typed@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1080 <prv_test_int@plt>
mov    %eax,%r14d
or     %ebx,%r14d
or     %r15d,%r14d
xor    %eax,%eax
call   10c0 <prv_test_real@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1120 <prv_test_real_vars@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1060 <prv_test_int_vars@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   11d0 <prv_test_str_vars@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1160 <prv_test_operators@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1030 <prv_test_number_too_long@plt>
mov    %eax,%r15d
or     %ebx,%r15d
or     %r14d,%r15d
xor    %eax,%eax
call   1070 <prv_test_number_too_large@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1130 <prv_test_string@plt>
mov    %eax,%ebx
or     %r14d,%ebx
xor    %eax,%eax
call   11a0 <prv_test_string_unterminated@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   1100 <prv_test_big_string@plt>
mov    %eax,%ebx
or     %ebp,%ebx
xor    %eax,%eax
call   1050 <prv_test_unknown@plt>
mov    %eax,%ebp
or     %ebx,%ebp
xor    %eax,%eax
call   10a0 <prv_test_push@plt>
or     %ebp,%eax
or     %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @lexer_test() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @prv_test_real_var_too_long()
%3 = load i32, i32* %1
%4 = or i32 %3, %2
store i32 %4, i32* %1
%5 = call i32 (...) @prv_test_string_var_too_long()
%6 = load i32, i32* %1
%7 = or i32 %6, %5
store i32 %7, i32* %1
%8 = call i32 (...) @prv_test_int_var_too_long()
%9 = load i32, i32* %1
%10 = or i32 %9, %8
store i32 %10, i32* %1
%11 = call i32 (...) @prv_test_max_int_var()
%12 = load i32, i32* %1
%13 = or i32 %12, %11
store i32 %13, i32* %1
%14 = call i32 (...) @prv_test_max_str_var()
%15 = load i32, i32* %1
%16 = or i32 %15, %14
store i32 %16, i32* %1
%17 = call i32 (...) @prv_test_max_real_var()
%18 = load i32, i32* %1
%19 = or i32 %18, %17
store i32 %19, i32* %1
%20 = call i32 (...) @prv_test_real_var_upper_too_long()
%21 = load i32, i32* %1
%22 = or i32 %21, %20
store i32 %22, i32* %1
%23 = call i32 (...) @prv_test_string_var_upper_too_long()
%24 = load i32, i32* %1
%25 = or i32 %24, %23
store i32 %25, i32* %1
%26 = call i32 (...) @prv_test_id_hash_var_upper_too_long()
%27 = load i32, i32* %1
%28 = or i32 %27, %26
store i32 %28, i32* %1
%29 = call i32 (...) @prv_test_string_hash_var_upper_too_long()
%30 = load i32, i32* %1
%31 = or i32 %30, %29
store i32 %31, i32* %1
%32 = call i32 (...) @prv_test_keywords()
%33 = load i32, i32* %1
%34 = or i32 %33, %32
store i32 %34, i32* %1
%35 = call i32 (...) @prv_test_procedure_call()
%36 = load i32, i32* %1
%37 = or i32 %36, %35
store i32 %37, i32* %1
%38 = call i32 (...) @prv_test_empty()
%39 = load i32, i32* %1
%40 = or i32 %39, %38
store i32 %40, i32* %1
%41 = call i32 (...) @prv_test_proc_typed()
%42 = load i32, i32* %1
%43 = or i32 %42, %41
store i32 %43, i32* %1
%44 = call i32 (...) @prv_test_fn_typed()
%45 = load i32, i32* %1
%46 = or i32 %45, %44
store i32 %46, i32* %1
%47 = call i32 (...) @prv_test_int()
%48 = load i32, i32* %1
%49 = or i32 %48, %47
store i32 %49, i32* %1
%50 = call i32 (...) @prv_test_real()
%51 = load i32, i32* %1
%52 = or i32 %51, %50
store i32 %52, i32* %1
%53 = call i32 (...) @prv_test_real_vars()
%54 = load i32, i32* %1
%55 = or i32 %54, %53
store i32 %55, i32* %1
%56 = call i32 (...) @prv_test_int_vars()
%57 = load i32, i32* %1
%58 = or i32 %57, %56
store i32 %58, i32* %1
%59 = call i32 (...) @prv_test_str_vars()
%60 = load i32, i32* %1
%61 = or i32 %60, %59
store i32 %61, i32* %1
%62 = call i32 (...) @prv_test_operators()
%63 = load i32, i32* %1
%64 = or i32 %63, %62
store i32 %64, i32* %1
%65 = call i32 (...) @prv_test_number_too_long()
%66 = load i32, i32* %1
%67 = or i32 %66, %65
store i32 %67, i32* %1
%68 = call i32 (...) @prv_test_number_too_large()
%69 = load i32, i32* %1
%70 = or i32 %69, %68
store i32 %70, i32* %1
%71 = call i32 (...) @prv_test_string()
%72 = load i32, i32* %1
%73 = or i32 %72, %71
store i32 %73, i32* %1
%74 = call i32 (...) @prv_test_string_unterminated()
%75 = load i32, i32* %1
%76 = or i32 %75, %74
store i32 %76, i32* %1
%77 = call i32 (...) @prv_test_big_string()
%78 = load i32, i32* %1
%79 = or i32 %78, %77
store i32 %79, i32* %1
%80 = call i32 (...) @prv_test_unknown()
%81 = load i32, i32* %1
%82 = or i32 %81, %80
store i32 %82, i32* %1
%83 = call i32 (...) @prv_test_push()
%84 = load i32, i32* %1
%85 = or i32 %84, %83
store i32 %85, i32* %1
%86 = load i32, i32* %1
ret i32 %86
}

LLVM IR (-O2):
define i32 @lexer_test() {
%1 = tail call i32 (...) @prv_test_real_var_too_long()
%2 = tail call i32 (...) @prv_test_string_var_too_long()
%3 = or i32 %2, %1
%4 = tail call i32 (...) @prv_test_int_var_too_long()
%5 = or i32 %3, %4
%6 = tail call i32 (...) @prv_test_max_int_var()
%7 = or i32 %5, %6
%8 = tail call i32 (...) @prv_test_max_str_var()
%9 = or i32 %7, %8
%10 = tail call i32 (...) @prv_test_max_real_var()
%11 = or i32 %9, %10
%12 = tail call i32 (...) @prv_test_real_var_upper_too_long()
%13 = or i32 %11, %12
%14 = tail call i32 (...) @prv_test_string_var_upper_too_long()
%15 = or i32 %13, %14
%16 = tail call i32 (...) @prv_test_id_hash_var_upper_too_long()
%17 = or i32 %15, %16
%18 = tail call i32 (...) @prv_test_string_hash_var_upper_too_long()
%19 = or i32 %17, %18
%20 = tail call i32 (...) @prv_test_keywords()
%21 = or i32 %19, %20
%22 = tail call i32 (...) @prv_test_procedure_call()
%23 = or i32 %21, %22
%24 = tail call i32 (...) @prv_test_empty()
%25 = or i32 %23, %24
%26 = tail call i32 (...) @prv_test_proc_typed()
%27 = or i32 %25, %26
%28 = tail call i32 (...) @prv_test_fn_typed()
%29 = or i32 %27, %28
%30 = tail call i32 (...) @prv_test_int()
%31 = or i32 %29, %30
%32 = tail call i32 (...) @prv_test_real()
%33 = or i32 %31, %32
%34 = tail call i32 (...) @prv_test_real_vars()
%35 = or i32 %33, %34
%36 = tail call i32 (...) @prv_test_int_vars()
%37 = or i32 %35, %36
%38 = tail call i32 (...) @prv_test_str_vars()
%39 = or i32 %37, %38
%40 = tail call i32 (...) @prv_test_operators()
%41 = or i32 %39, %40
%42 = tail call i32 (...) @prv_test_number_too_long()
%43 = or i32 %41, %42
%44 = tail call i32 (...) @prv_test_number_too_large()
%45 = or i32 %43, %44
%46 = tail call i32 (...) @prv_test_string()
%47 = or i32 %45, %46
%48 = tail call i32 (...) @prv_test_string_unterminated()
%49 = or i32 %47, %48
%50 = tail call i32 (...) @prv_test_big_string()
%51 = or i32 %49, %50
%52 = tail call i32 (...) @prv_test_unknown()
%53 = or i32 %51, %52
%54 = tail call i32 (...) @prv_test_push()
%55 = or i32 %53, %54
ret i32 %55
}