-
Notifications
You must be signed in to change notification settings - Fork 2
/
jvm-verifier.cabal
259 lines (224 loc) · 5.29 KB
/
jvm-verifier.cabal
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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
Name: jvm-verifier
Version: 0.4
Author: Galois Inc.
Maintainer: jhendrix@galois.com, jstanley@galois.com
Build-type: Simple
Cabal-version: >= 1.8
Category: Formal Methods
Synopsis: Symbolic simulator for Java bytecode
License: BSD3
License-file: LICENSE
extra-source-files: saw/Java.sawcore
Flag build-library
description: Build the jvm-verifier library.
default: True
Flag build-jss
description: Build the JSS executable
default: True
Flag build-jvmgraph
description: Build the JVM cfg visualization tool.
default: False
Flag build-examples
description: Build the example executables
default: False
Flag build-benchmarks
description: Build the benchmark executables
default: True
Flag builtin-abc
description: Link with ABC as a static library
default: True
library
build-depends:
base >= 4 && < 5
, aig
, array
, containers
, directory
, exceptions
, filepath
, haskeline >= 0.7
, jvm-parser >= 0.3
, lens
, mtl >= 2.1
, pretty >= 1.1
, split >= 0.2
, transformers >= 0.3
, transformers-compat
, vector >= 0.7
, saw-core
, saw-core-aig
, cryptol-saw-core
hs-source-dirs: src
exposed-modules:
Data.JVM.Symbolic.AST
Data.JVM.Symbolic.Translation
Execution
Execution.JavaSemantics
Execution.Stepper
Verifier.Java.Backend
Verifier.Java.Codebase
Verifier.Java.Common
Verifier.Java.Debugger
Verifier.Java.SAWBackend
Verifier.Java.SAWImport
Verifier.Java.Simulator
Verifier.Java.Utils
Verifier.Java.WordBackend
Verifier.Java.TestInterface
Verinf.Symbolic
Verinf.Symbolic.Lit.DataTypes
other-modules:
Verinf.Symbolic.Common
Verinf.Symbolic.Dag
Verinf.Symbolic.Lit
Verinf.Symbolic.Lit.Functional
Verinf.Symbolic.OpCache
Verinf.Symbolic.Rewriter
Verinf.Symbolic.UnionFind
Verinf.Utils.CacheM
if !flag(build-library)
buildable: False
GHC-options: -Wall -fno-ignore-asserts -Wcompat
if impl(ghc == 8.0.1)
ghc-options: -Wno-redundant-constraints
if os(darwin)
-- fix the weird Trace/BPT trap: 5 bug on rail
ghc-options: -j1
executable jss
if !flag(build-jss)
buildable: False
build-depends:
array
, base >= 4
, cmdargs >= 0.6.1
, containers
, directory
, executable-path
, filepath
, jvm-parser >= 0.3
, jvm-verifier
, lens >= 3.8
, mtl >= 2.1
, parsec
, pretty >= 1.1
, transformers
, transformers-compat
, vector >= 0.7
other-modules:
Backends
Overrides
cpp-options: -DUseSAW
hs-source-dirs: jss
main-is: Main_jss.hs
if flag(builtin-abc)
cpp-options: -DUSE_BUILTIN_ABC
build-depends: abcBridge
extra-libraries: stdc++
ghc-options: -O2 -Wall -fno-ignore-asserts -pgmlc++ -Wcompat
other-modules:
Verinf.Symbolic.Lit.ABC
Verinf.Symbolic.Lit.ABC_GIA
else
build-depends: aig
ghc-options: -O2 -Wall -fno-ignore-asserts -Wcompat
executable jvmgraph
if !flag(build-jvmgraph)
buildable: False
build-depends:
base >= 4
, cmdargs
, pretty
, jvm-parser >= 0.3
hs-source-dirs : jvmgraph
main-is : Main.hs
ghc-options: -O2 -Wall -fno-ignore-asserts -Wcompat
test-suite test-java
type: exitcode-stdio-1.0
build-depends:
base >= 4
, array
, containers
, directory
, filepath
, haskeline >= 0.7
, jvm-parser >= 0.3
, lens >= 3.8
, mtl >= 2.1
, pretty
, process
, random >= 1.0.1.0
, transformers >= 0.3.0.0
, vector >= 0.7
, QuickCheck >= 2.4
, tasty
, tasty-ant-xml
, tasty-hunit
, tasty-quickcheck
, jvm-verifier
main-is : Tests.hs
hs-source-dirs : jss test/src
other-modules :
Backends
Overrides
Tests.Arrays
Tests.Common
Tests.Debugger
Tests.ExpectedErrors
Tests.JAPI
Tests.Lambda
Tests.PathStateMerges
Tests.PrimOps
Tests.RC564
Tests.Regressions
Tests.SHA384
if flag(builtin-abc)
cpp-options: -DUSE_BUILTIN_ABC
build-depends: abcBridge
extra-libraries: stdc++
ghc-options: -O2 -Wall -fno-ignore-asserts -pgmlc++ -Wcompat
other-modules:
Verinf.Symbolic.Lit.ABC
Verinf.Symbolic.Lit.ABC_GIA
else
build-depends: aig
ghc-options: -O2 -Wall -fno-ignore-asserts -Wcompat
benchmark Benchmarks
type: exitcode-stdio-1.0
if !flag(build-benchmarks)
buildable: False
build-depends:
base >= 4
, array
, containers
, statistics >= 0.10
, criterion >= 0.6
, directory
, filepath
, haskeline >= 0.7
, jvm-parser >= 0.3
, lens >= 3.8
, mtl >= 2.1
, pretty
, process
, random >= 1.0.1.0
, transformers >= 0.3.0.0
, vector >= 0.7
, QuickCheck >= 2.4
, tasty
, tasty-ant-xml
, tasty-hunit
, tasty-quickcheck
, jvm-verifier
main-is : Benchmarks.hs
hs-source-dirs : jss test/src
if flag(builtin-abc)
cpp-options: -DUSE_BUILTIN_ABC
build-depends: abcBridge
extra-libraries: stdc++
ghc-options: -O2 -Wall -fno-ignore-asserts -pgmlc++ -Wcompat
other-modules:
Verinf.Symbolic.Lit.ABC
Verinf.Symbolic.Lit.ABC_GIA
else
build-depends: aig
ghc-options: -O2 -Wall -fno-ignore-asserts -Wcompat