-
Notifications
You must be signed in to change notification settings - Fork 5
/
abcBridge.cabal
195 lines (164 loc) · 4.27 KB
/
abcBridge.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
Name: abcBridge
Version: 0.17.1
Synopsis: Bindings for ABC, A System for Sequential
Synthesis and Verification
Description: Bindings for ABC focused on creating And-Inverter
Graphs (AIG) and then performing synthesis and
equivalence checking.
License: BSD3
License-file: LICENSE
Author: Galois Inc.
Maintainer: jhendrix@galois.com, rdockins@galois.com
Copyright: (c) 2010-2015 Galois Inc.
Category: Data
build-type: Custom
cabal-Version: >= 1.18
extra-source-files:
include/*.h
cbits/*.c
scripts/*.sh
tests/eijk.S298.S.aig
flag enable-extra-tests
Description: Enable building the long-test and find-segfault utility progams
Default: False
flag enable-pthreads
Description: Turn on multithreading
Default: True
source-repository head
type: git
location: https://github.com/GaloisInc/abcBridge.git
custom-setup
setup-depends: base
, directory
, filepath
, Cabal >= 2.0 && < 4.0
library
Hs-source-dirs: src
Exposed-modules:
Data.ABC
Data.ABC.AIG
Data.ABC.GIA
Data.ABC.Internal.Field
Data.ABC.Internal.ABCGlobal
Data.ABC.Internal.VecInt
Data.ABC.Internal.VecPtr
Data.ABC.Internal.ABC
Data.ABC.Internal.Main
Data.ABC.Internal.FRAIG
Data.ABC.Internal.GIA
Data.ABC.Internal.CEC
Data.ABC.Internal.IO
Data.ABC.Internal.AIG
Data.ABC.Internal.GiaAig
Data.ABC.Internal.CNF
Data.ABC.Internal.Orphan
other-modules:
Data.ABC.Util
Default-Language: Haskell98
Default-Extensions: ForeignFunctionInterface,
FlexibleContexts,
MultiParamTypeClasses,
EmptyDataDecls
Ghc-options: -Wall -fno-ignore-asserts
if flag(enable-pthreads) {
Cc-options: -DABC_USE_PTHREADS
Extra-libraries: pthread
}
if os(darwin) {
-- -U__BLOCKS__ to work around https://github.com/haskell/c2hs/issues/29
-- has_attribute and has_features undefined for similar reasons...
CC-options: -U__BLOCKS__ -U__has_attribute -U__has_feature
}
if os(windows) {
if arch(x86_64) {
CC-options: -D_WIN64 -DHAVE_STRUCT_TIMESPEC
} else {
Cc-options: -D_WIN32 -DHAVE_STRUCT_TIMESPEC
}
}
if !os(windows) {
--Cc-options: -rdynamic
if arch(x86_64) {
Cc-options: -DLIN64
} else {
Cc-options: -DLIN
}
}
Include-dirs: include
Extra-libraries: stdc++
Build-depends:
base == 4.*,
base-compat >= 0.6.0,
aig >= 0.2.6,
containers,
directory,
vector
Extra-libraries: abc
Build-tools: c2hs
C-sources: cbits/abcbridge.c
cbits/abcbridge_qbf.c
cbits/cnfWriteHeader.c
cbits/abcBridgeGiaDup.c
cbits/pthread_stubs.c
test-suite abc-test
type: exitcode-stdio-1.0
hs-source-dirs: tests
ghc-options: -Wall -pgmlc++
default-Language: Haskell98
extra-libraries: stdc++
other-modules:
Tests.Basic
Tests.Operations
Tests.QBF
main-is:
abc-test.hs
build-depends:
base == 4.*,
base-compat >= 0.6.0,
abcBridge,
aig >= 0.2.6,
directory,
vector,
tasty,
tasty-ant-xml >= 1.1.0,
tasty-hunit,
tasty-quickcheck >= 0.8.1,
QuickCheck >= 2.7
Executable find-segfault
hs-source-dirs: tests
ghc-options: -Wall -pgmlc++
extra-libraries: stdc++
default-Language: Haskell2010
main-is:
find-segfault.hs
if !flag(enable-extra-tests)
buildable: False
else
buildable: True
build-depends:
base == 4.*,
base-compat >= 0.6.0,
abcBridge,
aig >= 0.2.6,
directory,
vector,
random,
tf-random,
unix >= 2.7,
tasty,
tasty-hunit,
tasty-quickcheck,
QuickCheck >= 2.7
Executable long-test
hs-source-dirs: tests
if !flag(enable-extra-tests)
buildable: False
ghc-options: -Wall -pgmlc++
extra-libraries: stdc++
default-Language: Haskell98
main-is:
long-test.hs
build-depends:
base == 4.*,
base-compat >= 0.6.0,
abcBridge