File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ module Z3.Base (
105
105
, mkIntSort
106
106
, mkRealSort
107
107
, mkBvSort
108
+ , mkFiniteDomainSort
108
109
, mkArraySort
109
110
, mkTupleSort
110
111
, mkConstructor
@@ -743,7 +744,9 @@ mkBvSort c i
743
744
| i >= 0 = liftFun1 z3_mk_bv_sort c i
744
745
| otherwise = error " Z3.Base.mkBvSort: negative size"
745
746
746
- -- TODO: Z3_mk_finite_domain_sort
747
+ -- | Create a finite-domain type.
748
+ mkFiniteDomainSort :: Context -> Symbol -> Word64 -> IO Sort
749
+ mkFiniteDomainSort = liftFun2 z3_mk_finite_domain_sort
747
750
748
751
-- | Create an array type
749
752
--
Original file line number Diff line number Diff line change @@ -243,6 +243,10 @@ foreign import ccall unsafe "Z3_mk_int_sort"
243
243
foreign import ccall unsafe " Z3_mk_real_sort"
244
244
z3_mk_real_sort :: Ptr Z3_context -> IO (Ptr Z3_sort )
245
245
246
+ -- | Reference: <http://z3prover.github.io/api/html/group__capi.html#ga62166c0e3f9a8be4ba492eee5a52ce1b>
247
+ foreign import ccall unsafe " Z3_mk_finite_domain_sort"
248
+ z3_mk_finite_domain_sort :: Ptr Z3_context -> Ptr Z3_symbol -> CULLong -> IO (Ptr Z3_sort )
249
+
246
250
-- | Reference: <http://z3prover.github.io/api/html/group__capi.html#gaeed000a1bbb84b6ca6fdaac6cf0c1688>
247
251
foreign import ccall unsafe " Z3_mk_bv_sort"
248
252
z3_mk_bv_sort :: Ptr Z3_context -> CUInt -> IO (Ptr Z3_sort )
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ module Z3.Monad
64
64
, mkIntSort
65
65
, mkRealSort
66
66
, mkBvSort
67
+ , mkFiniteDomainSort
67
68
, mkArraySort
68
69
, mkTupleSort
69
70
, mkConstructor
@@ -657,6 +658,10 @@ mkRealSort = liftScalar Base.mkRealSort
657
658
mkBvSort :: MonadZ3 z3 => Int -> z3 Sort
658
659
mkBvSort = liftFun1 Base. mkBvSort
659
660
661
+ -- | Create a finite-domain type.
662
+ mkFiniteDomainSort :: MonadZ3 z3 => Symbol -> Word64 -> z3 Sort
663
+ mkFiniteDomainSort = liftFun2 Base. mkFiniteDomainSort
664
+
660
665
-- | Create an array type
661
666
--
662
667
-- Reference: <http://research.microsoft.com/en-us/um/redmond/projects/z3/group__capi.html#gafe617994cce1b516f46128e448c84445>
You can’t perform that action at this time.
0 commit comments