Skip to content

Conversation

RIvance
Copy link

@RIvance RIvance commented Sep 5, 2024

Add a missing commonly used Seq operation.

Operation Brief description
(seq.nth s offset) Element at offset in s. If offset is out of bounds the result is under-specified. In other words, it is treated as a fresh variable
def mkSeqNth(seq: Z3AST, n: Z3AST): Z3AST = {
  new Z3AST(Native.mkSeqNth(this.ptr, seq.ptr, n.ptr), this)
}

reference: https://microsoft.github.io/z3guide/docs/theories/Sequences/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant