#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(int, char *);
int /*<<< orphan*/ reset();
int /*<<< orphan*/ syntactically_correct(char);
void incorrect_tokens() {
  reset();
  assert(!syntactically_correct('m'),
         "'m' is a not valid token with no dwarf or sub");
  assert(!syntactically_correct('w'),
         "'w' is a not valid token with no dwarf or sub");
  assert(!syntactically_correct('d'),
         "'d' is a not valid token with no dwarf or sub");
  assert(!syntactically_correct('<'),
         "'>' is a not valid token with no dwarf or sub");
  assert(!syntactically_correct('>'),
         "'<' is a not valid token with no dwarf or sub");
  for (int i = 'a'; i <= 'z'; i++) {
    char message[26] = "' ' is not a valid token.";
    switch (i) {
    case '+':
    case '-':
    case 'm':
    case 'w':
    case 'd':
    case '<':
    case '>':
      break;
    default:
      message[1] = i;
      reset();
      assert(!syntactically_correct(i), message);
    }
  }
  reset();
  syntactically_correct('!');
  assert(!syntactically_correct('a'), "'!a' is not syntactically correct");
}


x86 assembly (clang, -O0):
<incorrect_tokens>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    $0x0,%al
call   1050 <reset@plt>
mov    $0x6d,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xea3(%rip),%rsi
call   1040 <assert@plt>
mov    $0x77,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xeae(%rip),%rsi
call   1040 <assert@plt>
mov    $0x64,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xeb9(%rip),%rsi
call   1040 <assert@plt>
mov    $0x3c,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xec4(%rip),%rsi
call   1040 <assert@plt>
mov    $0x3e,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xecf(%rip),%rsi
call   1040 <assert@plt>
movl   $0x61,-0x4(%rbp)
cmpl   $0x7a,-0x4(%rbp)
jg     12d5 <incorrect_tokens+0x1a5>
movups 0xf14(%rip),%xmm0
movups %xmm0,-0x16(%rbp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,-0x20(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
sub    $0x2b,%eax
je     128f <incorrect_tokens+0x15f>
jmp    1229 <incorrect_tokens+0xf9>
mov    -0x24(%rbp),%eax
sub    $0x2d,%eax
je     128f <incorrect_tokens+0x15f>
jmp    123a <incorrect_tokens+0x10a>
mov    -0x24(%rbp),%eax
sub    $0x3c,%eax
je     128f <incorrect_tokens+0x15f>
jmp    124b <incorrect_tokens+0x11b>
mov    -0x24(%rbp),%eax
sub    $0x3e,%eax
je     128f <incorrect_tokens+0x15f>
jmp    125c <incorrect_tokens+0x12c>
mov    -0x24(%rbp),%eax
sub    $0x64,%eax
je     128f <incorrect_tokens+0x15f>
jmp    126d <incorrect_tokens+0x13d>
mov    -0x24(%rbp),%eax
sub    $0x6d,%eax
je     128f <incorrect_tokens+0x15f>
jmp    127e <incorrect_tokens+0x14e>
mov    -0x24(%rbp),%eax
sub    $0x77,%eax
jne    1294 <incorrect_tokens+0x164>
jmp    128f <incorrect_tokens+0x15f>
jmp    12c2 <incorrect_tokens+0x192>
mov    -0x4(%rbp),%eax
mov    %al,-0x1f(%rbp)
mov    $0x0,%al
call   1050 <reset@plt>
mov    -0x4(%rbp),%eax
movsbl %al,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    -0x20(%rbp),%rsi
call   1040 <assert@plt>
jmp    12c7 <incorrect_tokens+0x197>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    11f5 <incorrect_tokens+0xc5>
mov    $0x0,%al
call   1050 <reset@plt>
mov    $0x21,%edi
call   1030 <syntactically_correct@plt>
mov    $0x61,%edi
call   1030 <syntactically_correct@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xde2(%rip),%rsi
call   1040 <assert@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<incorrect_tokens>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
xor    %eax,%eax
call   1050 <reset@plt>
mov    $0x6d,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xea7(%rip),%rsi
call   1040 <assert@plt>
mov    $0x77,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xeb7(%rip),%rsi
call   1040 <assert@plt>
mov    $0x64,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xec7(%rip),%rsi
call   1040 <assert@plt>
mov    $0x3c,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xed7(%rip),%rsi
call   1040 <assert@plt>
mov    $0x3e,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xee7(%rip),%rsi
call   1040 <assert@plt>
mov    $0x61,%ebx
movups 0xf38(%rip),%xmm0
movaps 0xf27(%rip),%xmm1
mov    %rsp,%r14
movabs $0x2000000000a0005,%r15
jmp    120e <incorrect_tokens+0xde>
nopl   0x0(%rax,%rax,1)
bt     %rax,%r15
jae    121f <incorrect_tokens+0xef>
add    $0x1,%ebx
cmp    $0x7b,%ebx
je     125c <incorrect_tokens+0x12c>
movups %xmm0,0xa(%rsp)
movaps %xmm1,(%rsp)
lea    -0x2b(%rbx),%eax
cmp    $0x39,%eax
jbe    1200 <incorrect_tokens+0xd0>
cmp    $0x6d,%ebx
je     1206 <incorrect_tokens+0xd6>
cmp    $0x77,%ebx
je     1206 <incorrect_tokens+0xd6>
mov    %bl,0x1(%rsp)
xor    %eax,%eax
call   1050 <reset@plt>
movsbl %bl,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
mov    %r14,%rsi
call   1040 <assert@plt>
movaps 0xebd(%rip),%xmm1
movups 0xec0(%rip),%xmm0
jmp    1206 <incorrect_tokens+0xd6>
xor    %eax,%eax
call   1050 <reset@plt>
mov    $0x21,%edi
call   1030 <syntactically_correct@plt>
mov    $0x61,%edi
call   1030 <syntactically_correct@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xe60(%rip),%rsi
call   1040 <assert@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [46 x i8] c"'m' is a not valid token with no dwarf or sub\00"
@.str.1 = [46 x i8] c"'w' is a not valid token with no dwarf or sub\00"
@.str.2 = [46 x i8] c"'d' is a not valid token with no dwarf or sub\00"
@.str.3 = [46 x i8] c"'>' is a not valid token with no dwarf or sub\00"
@.str.4 = [46 x i8] c"'<' is a not valid token with no dwarf or sub\00"
@__const.incorrect_tokens.message = [26 x i8] c"' ' is not a valid token.\00"
@.str.5 = [34 x i8] c"'!a' is not syntactically correct\00"
define void @incorrect_tokens() {
%1 = alloca i32
%2 = alloca [26 x i8]
%3 = call i32 (...) @reset()
%4 = call i32 @syntactically_correct(i8 signext 109)
%5 = icmp ne i32 %4, 0
%6 = xor i1 %5, true
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @syntactically_correct(i8 signext 119)
%10 = icmp ne i32 %9, 0
%11 = xor i1 %10, true
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @syntactically_correct(i8 signext 100)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 @syntactically_correct(i8 signext 60)
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
%22 = zext i1 %21 to i32
%23 = call i32 @assert(i32 %22, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @syntactically_correct(i8 signext 62)
%25 = icmp ne i32 %24, 0
%26 = xor i1 %25, true
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
store i32 97, i32* %1
br label %29
29: ; preds = %50, %0
%30 = load i32, i32* %1
%31 = icmp sle i32 %30, 122
br i1 %31, label %32, label %53
32: ; preds = %29
%33 = bitcast [26 x i8]* %2 to i8*
%34 = load i32, i32* %1
switch i32 %34, label %36 [
i32 43, label %35
i32 45, label %35
i32 109, label %35
i32 119, label %35
i32 100, label %35
i32 60, label %35
i32 62, label %35
]
35: ; preds = %32, %32, %32, %32, %32, %32, %32
br label %49
36: ; preds = %32
%37 = load i32, i32* %1
%38 = trunc i32 %37 to i8
%39 = getelementptr inbounds [26 x i8], [26 x i8]* %2, i64 0, i64 1
store i8 %38, i8* %39
%40 = call i32 (...) @reset()
%41 = load i32, i32* %1
%42 = trunc i32 %41 to i8
%43 = call i32 @syntactically_correct(i8 signext %42)
%44 = icmp ne i32 %43, 0
%45 = xor i1 %44, true
%46 = zext i1 %45 to i32
%47 = getelementptr inbounds [26 x i8], [26 x i8]* %2, i64 0, i64 0
%48 = call i32 @assert(i32 %46, i8* %47)
br label %49
49: ; preds = %36, %35
br label %50
50: ; preds = %49
%51 = load i32, i32* %1
%52 = add nsw i32 %51, 1
store i32 %52, i32* %1
br label %29
53: ; preds = %29
%54 = call i32 (...) @reset()
%55 = call i32 @syntactically_correct(i8 signext 33)
%56 = call i32 @syntactically_correct(i8 signext 97)
%57 = icmp ne i32 %56, 0
%58 = xor i1 %57, true
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [46 x i8] c"'m' is a not valid token with no dwarf or sub\00"
@.str.1 = [46 x i8] c"'w' is a not valid token with no dwarf or sub\00"
@.str.2 = [46 x i8] c"'d' is a not valid token with no dwarf or sub\00"
@.str.3 = [46 x i8] c"'>' is a not valid token with no dwarf or sub\00"
@.str.4 = [46 x i8] c"'<' is a not valid token with no dwarf or sub\00"
@__const.incorrect_tokens.message = [26 x i8] c"' ' is not a valid token.\00"
@.str.5 = [34 x i8] c"'!a' is not syntactically correct\00"
define void @incorrect_tokens() {
%1 = alloca [26 x i8]
%2 = tail call i32 (...) @reset()
%3 = tail call i32 @syntactically_correct(i8 signext 109)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @syntactically_correct(i8 signext 119)
%8 = icmp eq i32 %7, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @assert(i32 %9, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 @syntactically_correct(i8 signext 100)
%12 = icmp eq i32 %11, 0
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 @syntactically_correct(i8 signext 60)
%16 = icmp eq i32 %15, 0
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.3, i64 0, i64 0))
%19 = tail call i32 @syntactically_correct(i8 signext 62)
%20 = icmp eq i32 %19, 0
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%23 = getelementptr inbounds [26 x i8], [26 x i8]* %1, i64 0, i64 0
%24 = getelementptr inbounds [26 x i8], [26 x i8]* %1, i64 0, i64 1
br label %32
25: ; preds = %41
%26 = call i32 (...) @reset()
%27 = call i32 @syntactically_correct(i8 signext 33)
%28 = call i32 @syntactically_correct(i8 signext 97)
%29 = icmp eq i32 %28, 0
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
ret void
32: ; preds = %0, %41
%33 = phi i32 [ 97, %0 ], [ %42, %41 ]
switch i32 %33, label %34 [
i32 43, label %41
i32 45, label %41
i32 109, label %41
i32 119, label %41
i32 100, label %41
i32 60, label %41
i32 62, label %41
]
34: ; preds = %32
%35 = trunc i32 %33 to i8
store i8 %35, i8* %24
%36 = call i32 (...) @reset()
%37 = call i32 @syntactically_correct(i8 signext %35)
%38 = icmp eq i32 %37, 0
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39, i8* %23)
br label %41
41: ; preds = %32, %32, %32, %32, %32, %32, %32, %34
%42 = add nuw nsw i32 %33, 1
%43 = icmp eq i32 %42, 123
br i1 %43, label %25, label %32
}