-
Notifications
You must be signed in to change notification settings - Fork 114
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
is_const_array and Distinct with &[impl Borrow<Self>] #250
Conversation
z3/src/ast.rs
Outdated
@@ -1525,6 +1528,26 @@ impl<'ctx> Array<'ctx> { | |||
}) | |||
} | |||
} | |||
|
|||
/// Returns true if the array is a const array(a.is_const_array() <=> exists v, forall i. select(a, i) == v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is coming from
Lines 520 to 522 in 3c97663
/// The constant array. For example, `select(const(v),i) = v` | |
/// holds for every `v` and `i`. The function is unary. | |
CONST_ARRAY = generated::Z3_decl_kind::Z3_OP_CONST_ARRAY as u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that was your concerned, I changed that comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I had commented while doing something else and from my phone away from home.
My concern was actually about the formatting and if that should be in the summary line at the top of the comment.
Should also have a blank line before the example header.
Could you squash the various commits for |
Thanks! |
&[&Self]
for which I would like to do a similar api relaxing like in Use Borrow in varop arrays #246.is_const_array(a)
function which I would like to propose here.