mirror of
https://github.com/Z3Prover/z3
synced 2026-03-31 08:39:01 +00:00
Fix apply_permutation to take perm by const reference
Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f81ba8ad-2875-4fcc-ba91-d502905756be Co-authored-by: levnach <5377127+levnach@users.noreply.github.com>
This commit is contained in:
parent
20548c08ec
commit
1f506ee242
1 changed files with 1 additions and 1 deletions
|
|
@ -958,7 +958,7 @@ namespace nlsat {
|
|||
|
||||
// Apply a permutation to a range of root_functions using swap cycles,
|
||||
// avoiding the bulk anum allocations that std::sort's move operations cause.
|
||||
void apply_permutation(std_vector<root_function>& rfs, unsigned offset, std_vector<unsigned>& perm) {
|
||||
void apply_permutation(std_vector<root_function>& rfs, unsigned offset, std_vector<unsigned> const& perm) {
|
||||
std_vector<bool> done(perm.size(), false);
|
||||
for (unsigned i = 0; i < perm.size(); ++i) {
|
||||
if (done[i] || perm[i] == i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue