Skip to content

Commit a350775

Browse files
committed
cleanup and fixed spacing issues
1 parent 53e0a93 commit a350775

File tree

3 files changed

+108
-84
lines changed

3 files changed

+108
-84
lines changed

language/listing-style.tex

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
\lstset{
2-
basicstyle=\ttfamily,
2+
basicstyle=\ttfamily\color{black!80!white},
33
captionpos=b,
44
extendedchars=true,
55
tabsize=2,
66
columns=fixed,
77
keepspaces=true,
88
showstringspaces=false,
99
breaklines=true,
10-
commentstyle=\color{gray},
11-
keywordstyle=[1]\color{blue!72!black},
12-
keywordstyle=[2]\color{orange!64!black},
13-
keywordstyle=[3]\color{teal!80!black},
14-
keywordstyle=[4]\color{red!64!black},
15-
keywordstyle=[5]\color{green!40!black},
16-
keywordstyle=[6]\color{purple!96!black},
10+
commentstyle=\color{gray!90!white},
11+
keywordstyle=[1]\color{blue!75!black},
12+
keywordstyle=[2]\color{orange!75!black},
13+
keywordstyle=[3]\color{teal!90!black},
14+
keywordstyle=[4]\color{red!65!black},
15+
keywordstyle=[5]\color{green!45!black},
16+
keywordstyle=[6]\color{purple!95!black},
17+
keywordstyle=[7]\color{black},
1718
sensitive=true,
1819
numbers=left,
1920
numberblanklines=false,
2021
numbersep=8pt,
21-
numberstyle=\ttfamily\fontsize{8pt}{8.5}\selectfont\color{gray},
22+
numberstyle=\ttfamily\fontsize{8pt}{8.5}\selectfont\color{gray!60!white},
2223
xleftmargin=2em,
2324
}
2425

@@ -28,17 +29,29 @@
2829

2930
\lstdefinelanguage{SyGuS}{
3031
alsoletter={\_,-,+,*,=,>,<,:},
31-
escapeinside={([}{])},
3232
mathescape=true,
3333
texcl=true,
3434
morecomment=[l]{;},
3535
morestring=[b]",
36-
keywords=[1]{check-synth, set-feature, set-logic, set-option},
37-
keywords=[2]{BV, CHC, CHC_, CHC_QF_, DTLIA, DTNIA, Inv, Inv_, Inv_QF_, LIA, LRA, NIA, PBE, PBE_, QF_, S, SLIA, CHC_LIA, Inv\_LIA, PBE\_SLIA},
38-
keywords=[3]{declare-var, declare-datatype, declare-datatypes, declare-sort, define-fun, define-sort},
39-
keywords=[4]{assume, chc-constraint, constraint, inv-constraint},
40-
keywords=[5]{synth-fun, synth-inv, synth-pred},
41-
keywords=[6]{:fwd-decls, :grammars, :oracles, :recursion}
36+
keywords=[1]{check-synth, %
37+
set-feature, set-logic, set-option},
38+
keywords=[2]{BV, CHC, CHC_, CHC_QF_, CHC_LIA, DTLIA, DTNIA, %
39+
Inv, Inv_, Inv_QF_, Inv\_LIA, LIA, LRA, NIA, %
40+
PBE, PBE_, PBE\_SLIA, QF_, S, SLIA},
41+
keywords=[3]{declare-var, %
42+
declare-datatype, declare-datatypes, %
43+
declare-sort, %
44+
define-fun, define-sort},
45+
keywords=[4]{assume, %
46+
chc-constraint, constraint, inv-constraint},
47+
keywords=[5]{synth-fun},
48+
keywords=[6]{oracle-assume, oracle-constraint, %
49+
declare-oracle-fun, %
50+
declare-correctness-oracle, declare-correctness-cex-oracle, %
51+
oracle-constraint-cex, oracle-constraint-io, %
52+
oracle-constraint-membership, %
53+
oracle-constraint-poswitness, oracle-constraint-negwitness}
54+
keywords=[7]{:fwd-decls, :grammars, :oracles, :recursion}
4255
}
4356

44-
\global\long\def\sygusinline{\lstinline[language=SyGuS,mathescape]}
57+
\global\long\def\code{\lstinline[language=SyGuS]}

language/sygus-macros.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
\global\long\def\attribute{\left\langle Attr\right\rangle }
122122

123-
\global\long\def\constdeclkwd{\texttt{declare-const}}
123+
%\global\long\def\constdeclkwd{\texttt{declare-const}}
124124

125125

126126
\global\long\def\dtdeclkwd{\texttt{declare-datatype}}
@@ -135,8 +135,8 @@
135135
\global\long\def\recfunsdefkwd{\texttt{define-funs-rec}}
136136

137137
\global\long\def\setlogickwd{\texttt{set-logic}}
138-
\global\long\def\setlogicinputkwd{\texttt{set-logic-input}}
139-
\global\long\def\setlogicoutputkwd{\texttt{set-logic-output}}
138+
% \global\long\def\setlogicinputkwd{\texttt{set-logic-input}}
139+
% \global\long\def\setlogicoutputkwd{\texttt{set-logic-output}}
140140
\global\long\def\setinfokwd{\texttt{set-info}}
141141

142142

@@ -154,7 +154,7 @@
154154

155155
\global\long\def\fundeclkwd{\texttt{declare-fun}}
156156

157-
%TODO: Switch to \global\long\def\synthfunkwd{\text{\sygusinline|synth-fun|}}
157+
%TODO: Switch to \global\long\def\synthfunkwd{\text{\code|synth-fun|}}
158158
\global\long\def\synthfunkwd{\texttt{synth-fun}}
159159

160160
\global\long\def\synthinvkwd{\texttt{synth-inv}}

0 commit comments

Comments
 (0)