forked from small-evil-beast/SAT_SMT_article
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
220 lines (184 loc) · 5.95 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
%\documentclass[a4paper,oneside]{book}
\documentclass{book}
%\usepackage{fontspec}
%\setmainfont{DejaVu Sans}
%\setmonofont{DejaVu Sans Mono}
\usepackage{polyglossia}
\ifdefined\ENGLISH
\setmainlanguage{english}
\setotherlanguage{russian}
\fi
\ifdefined\RUSSIAN
\setmainfont[Ligatures=TeX]{CMU Serif}
\newfontfamily{\cyrillicfonttt}{CMU Typewriter Text}
\setmainlanguage{russian}
\setotherlanguage{english}
%\newfontfamily{\cyrillicfonttt}{DejaVu Sans Mono}
\fi
\usepackage{cmap}
%\usepackage[russian,english]{babel}
%\usepackage[T2A]{fontenc}
%\usepackage[default]{sourcesanspro}
\usepackage{amsmath, amssymb, graphics, setspace}
\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor
\usepackage{listings}
\usepackage{longtable}
\usepackage{pmboxdraw}
\usepackage{url}
\usepackage[cm]{fullpage}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{color}
\usepackage{float}
\usepackage{tikz}
%\usepackage[margin=0.5in,headheight=12.5pt]{geometry}
\usepackage[footnote,printonlyused,withpage]{acronym}
\usetikzlibrary{arrows}
\usepackage[nottoc]{tocbibind}
%\usepackage{esint}
%\usepackage{charter}
%\usepackage[charter]{mathdesign}
\usepackage[]{hyperref} % should be last
\usepackage{epigraph}
\definecolor{lstbgcolor}{rgb}{0.94,0.94,0.94}
\definecolor{light-gray}{gray}{0.87}
\newcommand{\TT}[1]{\texttt{#1}}
%\newcommand*{\TT}[1]{\colorbox{light-gray}{\texttt{#1}}}
\EN{\newcommand{\TITLE}{SAT/SMT by Example}}
\RU{\newcommand{\TITLE}{SAT/SMT в примерах}}
\EN{\newcommand{\AUTHOR}{Dennis Yurichev \TT{<[email protected]>}}}
\RU{\newcommand{\AUTHOR}{Денис Юричев \TT{<[email protected]>}}}
\definecolor{linkcolor}{RGB}{10,0,190}
\hypersetup{
pdftex,
colorlinks=true,
allcolors=linkcolor,
%allcolors=darkblue,
pdfauthor={\AUTHOR},
pdftitle={\TITLE},
pdfpagemode=None
}
\lstset{
%backgroundcolor=\color{lstbgcolor},
%backgroundcolor=\color{light-gray},
%basicstyle=\ttfamily\small,
basicstyle=\ttfamily\normalsize,
%basicstyle=\ttfamily\large,
%basicstyle=\ttfamily\footnotesize,
literate={~} {$\sim$}{1},
breaklines=true,
frame=single,
%columns=fullflexible,keepspaces,
columns=keepspaces,
escapeinside=§§,
inputencoding=utf8
}
\definecolor{digits}{RGB}{0,0,0}
\definecolor{colkw}{RGB}{0,0,0}
%\definecolor{colstr}{RGB}{80,80,80}
%\definecolor{colid}{RGB}{80,80,80}
\definecolor{colstr}{RGB}{0,0,0}
\definecolor{colid}{RGB}{0,0,0}
\definecolor{colcomment}{RGB}{130,130,130}
%\definecolor{colcomment}{RGB}{170,170,170}
\definecolor{colbg}{RGB}{255,255,255}
\lstdefinestyle{custompy}{
language=Python,
showstringspaces=false,
backgroundcolor=\color{colbg},
keywordstyle=\color{colkw},
commentstyle=\color{colcomment},
identifierstyle=\color{colid},
stringstyle=\color{colstr}
}
\lstdefinestyle{customc}{
language=C,
showstringspaces=false,
backgroundcolor=\color{colbg},
keywordstyle=\color{colkw},
commentstyle=\color{colcomment},
identifierstyle=\color{colid},
stringstyle=\color{colstr}
}
% FIXME: doesn't work:
\lstdefinestyle{customsmt}{
morecomment=[l];%
showstringspaces=false,
backgroundcolor=\color{colbg},
keywordstyle=\color{colkw},
commentstyle=\color{colcomment},
identifierstyle=\color{colid},
stringstyle=\color{colstr}
}
% с fullflexible в русской версии "+-----+" выглядит длиннее! ХЗ, почему
\newcommand{\myhrule}{\begin{center}\rule{0.5\textwidth}{.4pt}\end{center}}
\author{\AUTHOR}
\title{\TITLE}
\begin{document}
\maketitle
\tableofcontents
\newcommand{\MathForProg}{Mathematics for Programmers\footnote{\url{https://yurichev.com/writings/Math-for-programmers.pdf}}}
\newcommand{\CURPATH}{NOTHING}
\newcommand{\GitHubURL}{https://github.com/DennisYurichev/SAT_SMT_by_example}
\newcommand{\GitHubBlobMasterURL}{\GitHubURL/blob/master}
\newcommand{\GitHubTreeMasterURL}{\GitHubURL/tree/master}
% chapters:
\input{parts}
\chapter{Acronyms used}
\begin{acronym}
\acro{GCD}{Greatest Common Divisor}
\acro{LCM}{Least Common Multiple}
\acro{CNF}{Conjunctive normal form}
\acro{DNF}{Disjunctive normal form}
\acro{DSL}{Domain-specific language}
\acro{CPRNG}{Cryptographically Secure Pseudorandom Number Generator}
\acro{SMT}{Satisfiability modulo theories}
\acro{SAT}{Boolean satisfiability problem}
\acro{LCG}{Linear congruential generator}
\acro{PL}{Programming Language}
\acro{OOP}{Object-oriented programming}
\acro{SSA}{Static single assignment form}
\acro{CPU}{Central processing unit}
\acro{FPU}{Floating-point unit}
\acro{PRNG}{Pseudorandom number generator}
\acro{CRT}{C runtime library}
\acro{CRC}{Cyclic redundancy check}
\acro{AST}{Abstract syntax tree}
\acro{AKA}{Also Known As}
\acro{CTF}{Capture the Flag}
\acro{ISA}{Instruction Set Architecture}
\acro{CSP}{Constraint satisfaction problem}
\acro{CS}{Computer science}
\acro{DAG}{Directed acyclic graph}
\acro{NOP}{No Operation}
\acro{JVM}{Java Virtual Machine}
\acro{VM}{Virtual Machine}
\acro{LZSS}{Lempel–Ziv–Storer–Szymanski}
\acro{RAM}{Random-access memory}
\acro{FPGA}{Field-programmable gate array}
\acro{EDA}{Electronic design automation}
\acro{MAC}{Message authentication code}
\acro{ECC}{Elliptic curve cryptography}
\acro{API}{Application programming interface}
\acro{NSA}{National Security Agency}
\acro{DPLL}{Davis–Putnam–Logemann–Loveland}
\acro{QF}{Quantifier Free}
\acro{LIA}{Linear Integer Arithmetic}
\acro{SGP}{Social Golfer Problem}
\acro{WBO}{Weighted Boolean Optimization}
\acro{PBO}{Pseudo-Boolean Optimization}
\acro{FSM}{Finite State Machine}
\acro{RE}{Regular Expression}
\acro{RSA}{Rivest–Shamir–Adleman cryptosystem}
\acro{ITE}{If-Then-Else}
\acro{DFA}{Deterministic finite automaton}
\acro{TAOCP}{The Art Of Computer Programming (Donald Knuth's book)}
\acro{DES}{Data Encryption Standard}
\acro{ALU}{Arithmetic logic unit}
\acro{EE}{Electrical engineering}
\acro{PCB}{Printed circuit board}
\acro{ETA}{Estimated time of arrival}
\acro{CDCL}{Conflict-driven clause learning}
\acro{MSB}{Most Significant Bit}
\end{acronym}
\end{document}