#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*/ syntax_check(char *);
void incorrect_syntax() {
  reset();
  assert(!syntax_check(""), "'' is not syntactically correct");
  assert(!syntax_check("m"), "'m' is not syntactically correct");
  assert(!syntax_check("-m"), "'-m' is not syntactically correct");
  assert(!syntax_check("+l"), "'+l' is not syntactically correct");
  assert(!syntax_check("!!comment!!"),
         "'!!comment!!' is not syntactically correct");
  assert(!syntax_check("!!+!!mmm"), "'!!+!!mmm' is not syntactically correct");
  assert(!syntax_check("m+"), "'m+' is not syntactically correct.");
}


x86 assembly (clang, -O0):
<incorrect_syntax>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <reset@plt>
lea    0xf54(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xea5(%rip),%rsi
call   1030 <assert@plt>
lea    0xedb(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xea0(%rip),%rsi
call   1030 <assert@plt>
lea    0xeb5(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xe9f(%rip),%rsi
call   1030 <assert@plt>
lea    0xeb5(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xe9f(%rip),%rsi
call   1030 <assert@plt>
lea    0xeb5(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xea8(%rip),%rsi
call   1030 <assert@plt>
lea    0xec7(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xeb7(%rip),%rsi
call   1030 <assert@plt>
lea    0xed3(%rip),%rdi
call   1050 <syntax_check@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
lea    0xebd(%rip),%rsi
call   1030 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<incorrect_syntax>:
push   %rax
xor    %eax,%eax
call   1040 <reset@plt>
lea    0xf57(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xead(%rip),%rsi
call   1030 <assert@plt>
lea    0xee3(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xead(%rip),%rsi
call   1030 <assert@plt>
lea    0xec2(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xeb1(%rip),%rsi
call   1030 <assert@plt>
lea    0xec7(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xeb6(%rip),%rsi
call   1030 <assert@plt>
lea    0xecc(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xec4(%rip),%rsi
call   1030 <assert@plt>
lea    0xee3(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xed8(%rip),%rsi
call   1030 <assert@plt>
lea    0xef4(%rip),%rdi
call   1050 <syntax_check@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
lea    0xee3(%rip),%rsi
pop    %rax
jmp    1030 <assert@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [32 x i8] c"'' is not syntactically correct\00"
@.str.2 = [2 x i8] c"m\00"
@.str.3 = [33 x i8] c"'m' is not syntactically correct\00"
@.str.4 = [3 x i8] c"-m\00"
@.str.5 = [34 x i8] c"'-m' is not syntactically correct\00"
@.str.6 = [3 x i8] c"+l\00"
@.str.7 = [34 x i8] c"'+l' is not syntactically correct\00"
@.str.8 = [12 x i8] c"!!comment!!\00"
@.str.9 = [43 x i8] c"'!!comment!!' is not syntactically correct\00"
@.str.10 = [9 x i8] c"!!+!!mmm\00"
@.str.11 = [40 x i8] c"'!!+!!mmm' is not syntactically correct\00"
@.str.12 = [3 x i8] c"m+\00"
@.str.13 = [35 x i8] c"'m+' is not syntactically correct.\00"
define void @incorrect_syntax() {
%1 = call i32 (...) @reset()
%2 = call i32 @syntax_check(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = icmp ne i32 %2, 0
%4 = xor i1 %3, true
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 %5, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @syntax_check(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp ne i32 %7, 0
%9 = xor i1 %8, true
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 %10, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%13 = icmp ne i32 %12, 0
%14 = xor i1 %13, true
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
%19 = xor i1 %18, true
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%22 = call i32 @syntax_check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%27 = call i32 @syntax_check(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
%29 = xor i1 %28, true
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%32 = call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [32 x i8] c"'' is not syntactically correct\00"
@.str.2 = [2 x i8] c"m\00"
@.str.3 = [33 x i8] c"'m' is not syntactically correct\00"
@.str.4 = [3 x i8] c"-m\00"
@.str.5 = [34 x i8] c"'-m' is not syntactically correct\00"
@.str.6 = [3 x i8] c"+l\00"
@.str.7 = [34 x i8] c"'+l' is not syntactically correct\00"
@.str.8 = [12 x i8] c"!!comment!!\00"
@.str.9 = [43 x i8] c"'!!comment!!' is not syntactically correct\00"
@.str.10 = [9 x i8] c"!!+!!mmm\00"
@.str.11 = [40 x i8] c"'!!+!!mmm' is not syntactically correct\00"
@.str.12 = [3 x i8] c"m+\00"
@.str.13 = [35 x i8] c"'m+' is not syntactically correct.\00"
define void @incorrect_syntax() {
%1 = tail call i32 (...) @reset()
%2 = tail call i32 @syntax_check(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @syntax_check(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @assert(i32 %8, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
%14 = tail call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%18 = tail call i32 @syntax_check(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 %20, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.9, i64 0, i64 0))
%22 = tail call i32 @syntax_check(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i32
%25 = tail call i32 @assert(i32 %24, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%26 = tail call i32 @syntax_check(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%27 = icmp eq i32 %26, 0
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0))
ret void
}