-
Notifications
You must be signed in to change notification settings - Fork 25
/
reopt.cabal
272 lines (249 loc) · 5.29 KB
/
reopt.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
260
261
262
263
264
265
266
267
268
269
270
271
272
cabal-version: 2.2
name: reopt
version: 0.1.0
author: Galois, Inc.
maintainer: val@galois.com
build-type: Simple
license: BSD-3-Clause
license-file: LICENSE
common extensions
default-extensions:
ConstraintKinds
DataKinds
DeriveGeneric
DeriveTraversable
DerivingVia
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
PatternGuards
PatternSynonyms
RankNTypes
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
flag enable-hpc
Description: Collect HPC coverage information.
Default: False
flag enable-arm
Description: Enable support for ARM binaries
Default: False
library
import: extensions
default-language: Haskell2010
build-depends:
base >= 4,
aeson > 2 && < 3,
attoparsec,
attoparsec-aeson,
base64,
bytestring,
composition-extra,
containers,
directory,
elf-edit >= 0.40,
extra,
filepath,
flexdis86 >= 0.1.1,
effectful,
effectful-core,
galois-dwarf >= 0.2.2,
generic-lens,
hashable,
language-c >= 0.9.2,
lens,
llvm-pretty >= 0.12.0.0,
macaw-base >= 0.3.15.6,
macaw-x86 >= 0.3.1,
mtl,
parameterized-utils >= 2.1.3.0.100,
pretty,
prettyprinter,
process,
reopt-vcg-ann,
scientific,
temporary,
text,
transformers,
unix,
unordered-containers,
utf8-string,
vector,
GraphSCC
hs-source-dirs: src
exposed-modules:
Reopt
Reopt.CFG.FnRep
Reopt.CFG.FnRep.X86
Reopt.CFG.LLVM
Reopt.ELFArchInfo
Reopt.EncodeInvariants
Reopt.Events
Reopt.Events.Export
Reopt.ExternalTools
Reopt.Occam
Reopt.PLTParser
Reopt.Relinker.Binary
Reopt.Server
Reopt.TypeInference.ConstraintGen
Reopt.TypeInference.FunTypeMaps
Reopt.TypeInference.Pretty
Reopt.TypeInference.Solver
Reopt.TypeInference.Solver.Constraints
Reopt.TypeInference.Solver.Finalize
Reopt.TypeInference.Solver.Monad
Reopt.TypeInference.Solver.RowVariables
Reopt.TypeInference.Solver.Solver
Reopt.TypeInference.Solver.Types
Reopt.TypeInference.Solver.TypeVariables
Reopt.TypeInference.Solver.UnionFindMap
Reopt.Utils.Dir
Reopt.Utils.Exit
Reopt.X86
other-modules:
Reopt.Analysis.Domains.DiffEquations
Reopt.ArgResolver
Reopt.CFG.FunctionCheck
Reopt.CFG.LLVM.X86
Reopt.CFG.Recovery
Reopt.CFG.StackDepth
Reopt.FunUseMap
Reopt.Hints
Reopt.Relinker
Reopt.Relinker.Constants
Reopt.Relinker.NewBinary
Reopt.Relinker.NewLayout
Reopt.Relinker.NewSymtab
Reopt.Relinker.Redirection
Reopt.Relinker.Relations
Reopt.Relinker.Relocations
Reopt.TypeInference.DebugTypes
Reopt.TypeInference.Header
Reopt.TypeInference.HeaderTypes
Reopt.Utils.Flags
Reopt.Utils.Folds
Reopt.Utils.Hex
Reopt.Utils.Printf
if flag(enable-arm)
cpp-options: -DSUPPORT_ARM
build-depends:
hvex,
macaw-arm-vex >= 0.1.0
ghc-options: -Wall -Werror
ghc-prof-options: -O2 -fprof-auto-top
executable reopt
import: extensions
default-language: Haskell2010
build-depends:
base >= 4,
aeson,
bytestring >= 0.10.8.0,
containers,
directory,
elf-edit,
extra,
filepath,
generic-lens,
lens,
macaw-base,
macaw-x86,
mtl,
optparse-applicative >= 0.18.1.0,
parameterized-utils >= 0.1.6,
prettyprinter,
text,
unordered-containers,
reopt,
reopt-vcg-ann
hs-source-dirs: reopt
main-is: Main_reopt.hs
other-modules:
Paths_reopt
ghc-options: -Wall -Werror
if flag(enable-hpc)
ghc-options: -fhpc
ghc-prof-options: -O2 -fprof-auto-top
executable reopt-explore
import: extensions
default-language: Haskell2010
build-depends:
base >= 4,
bytestring,
containers,
directory,
elf-edit,
filepath,
flexdis86,
IntervalMap,
lens,
llvm-pretty,
macaw-base,
macaw-x86,
mtl,
optparse-applicative >= 0.18.1.0,
parameterized-utils >= 0.1.6,
prettyprinter,
reopt,
unix,
vector
hs-source-dirs: reopt-explore
main-is: Main_explore.hs
other-modules: Paths_reopt
, CommandLine
, Residual
, Residual.Recognizers
, LLVM
, Common
if flag(enable-hpc)
ghc-options: -fhpc
ghc-options: -Wall -Werror
ghc-prof-options: -O2 -fprof-auto-top
executable reopt-relink
import: extensions
default-language: Haskell2010
build-depends:
base >= 4,
cmdargs,
yaml,
reopt
hs-source-dirs: reopt-relink
main-is: Main_relink.hs
other-modules: Paths_reopt
if flag(enable-hpc)
ghc-options: -fhpc
ghc-options: -Wall
ghc-prof-options: -O2 -fprof-auto-top
test-suite reopt-tests
import: extensions
type: exitcode-stdio-1.0
default-language: Haskell2010
ghc-options: -Wall
main-is: Main.hs
other-modules:
ReoptTests
TyConstraintTests
hs-source-dirs: tests
build-depends:
base,
bytestring,
containers,
elf-edit,
exceptions,
filemanip,
filepath,
macaw-base,
prettyprinter,
reopt,
tasty,
tasty-hunit,
unordered-containers