Skip to content

Commit ae851e1

Browse files
committed
Fix CPROVER translation
1 parent e65a1fd commit ae851e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cex.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import re
2-
from pyparsing import (Word, alphanums, delimitedList, OneOrMore, ZeroOrMore,
3-
Forward, Suppress, Group, ParserElement, Keyword,
4-
dblQuotedString, removeQuotes, SkipTo, StringEnd, Regex,
5-
printables)
2+
from pyparsing import (
3+
LineEnd, LineStart, Word, alphanums, delimitedList, OneOrMore, ZeroOrMore,
4+
Forward, Suppress, Group, ParserElement, Keyword, dblQuotedString,
5+
removeQuotes, SkipTo, StringEnd, Regex, printables)
66
from pyparsing import pyparsing_common as ppc
7-
import time
7+
88

99
ATTR = re.compile(r"I\[([0-9]+)l?\]\[([0-9]+)l?\]")
1010
LSTIG = re.compile(r"Lvalue\[([0-9]+)l?\]\[([0-9]+)l?\]")
@@ -48,7 +48,7 @@
4848
ASGN = Regex(r'(?P<lhs>[^\s=]+)=(?P<rhs>.+)')
4949
TRACE = OneOrMore(Group(Group(HEADER) + SEP.suppress() + Group(ASGN))).ignore(OneOrMore(SKIP)) # noqa: E501
5050
TRACE_OLD = OneOrMore(Group(Group(HEADER_OLD) + SEP.suppress() + Group(ASGN))).ignore(OneOrMore(SKIP)) # noqa: E501
51-
PROP = Suppress(HEADER | HEADER_OLD) + STUFF + Suppress(SkipTo(StringEnd()))
51+
PROP = Suppress(SkipTo(LineEnd())) + Suppress(SkipTo(LineStart())) + STUFF + Suppress(SkipTo(StringEnd())) # noqa: E501
5252

5353

5454
def pprint_agent(info, tid):

0 commit comments

Comments
 (0)