does Z3_mk_datatype
write to the constructors
argument?
#5761
-
In the api, the last parameter to If not, what does it mean? Sorry I couldn't figure this out myself by reading the source; my C++ is rusty. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
in-out-array: The elements of the array are initialized (with pointers). Then the function reads those elements and change (write) their state. In the two functions that use inout_array the elements don't change. They stay the same, but their internal state is changed. It is extremely unlikely the behavior will change. In fact other API wrapper build in this assumption. So you should be able to assume that the elements are unchanged. With this behavior you may be able to treat inout_array as just in_array. |
Beta Was this translation helpful? Give feedback.
in-out-array: The elements of the array are initialized (with pointers). Then the function reads those elements and change (write) their state. In the two functions that use inout_array the elements don't change. They stay the same, but their internal state is changed. It is extremely unlikely the behavior will change. In fact other API wrapper build in this assumption. So you should be able to assume that the elements are unchanged.
in-array: the elements are read by the function, but not changed.
out-array: the elements are un-initialized and they are set by the function.
With this behavior you may be able to treat inout_array as just in_array.