Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing binding for mk_seq_nth #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Z3/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ module Z3.Base (
, mkSeqExtract
, mkSeqReplace
, mkSeqAt
, mkSeqNth
, mkSeqLength
, mkSeqIndex
, mkStrToInt
Expand Down Expand Up @@ -2050,6 +2051,13 @@ mkSeqAt :: Context
-> IO AST
mkSeqAt = liftFun2 z3_mk_seq_at

-- | Retrieve from s the element positioned at position index.
mkSeqNth :: Context
-> AST -- ^ s
-> AST -- ^ index
-> IO AST
mkSeqNth = liftFun2 z3_mk_seq_nth

-- | Return the length of the sequence s.
mkSeqLength :: Context
-> AST -- ^ s
Expand Down
8 changes: 8 additions & 0 deletions src/Z3/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ module Z3.Monad
, mkSeqExtract
, mkSeqReplace
, mkSeqAt
, mkSeqNth
, mkSeqLength
, mkSeqIndex
, mkStrToInt
Expand Down Expand Up @@ -1822,6 +1823,13 @@ mkSeqAt :: MonadZ3 z3
-> z3 AST
mkSeqAt = liftFun2 Base.mkSeqAt

-- | Retrieve from s the element positioned at position index.
mkSeqNth :: MonadZ3 z3
=> AST -- ^ s
-> AST -- ^ index
-> z3 AST
mkSeqNth = liftFun2 Base.mkSeqNth

-- | Return the length of the sequence s.
mkSeqLength :: MonadZ3 z3 => AST -> z3 AST
mkSeqLength = liftFun1 Base.mkSeqLength
Expand Down