3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

add permutation unit tests (#7300)

* add permutation unit tests

* update test

* update

* Update permutation.cpp

fix macos build

---------

Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
LiviaSun 2024-08-01 12:56:26 -07:00 committed by GitHub
parent e7382d6ff9
commit 6ba25b888b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 92 additions and 73 deletions

View file

@ -38,6 +38,8 @@ public:
bool check_invariant() const;
};
void swap(unsigned i, unsigned j) noexcept;
inline std::ostream & operator<<(std::ostream & out, permutation const & p) {
p.display(out);
return out;