3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-18 06:34:22 +00:00

Eliminate unnecessary copy operations in function parameters and range-based loops (#8589)

This commit is contained in:
Copilot 2026-02-11 21:14:32 +00:00 committed by GitHub
parent f76c30b3bd
commit 20fef3f449
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 34 additions and 34 deletions

View file

@ -1193,11 +1193,11 @@ namespace nlsat {
m_ism.set_seed(saved_ism_seed);
}
void log_lemma(std::ostream& out, clause const& cls, std::string annotation) {
void log_lemma(std::ostream& out, clause const& cls, const std::string& annotation) {
log_lemma(out, cls.size(), cls.data(), true, annotation);
}
void log_lemma(std::ostream& out, unsigned n, literal const* cls, bool is_valid, std::string annotation) {
void log_lemma(std::ostream& out, unsigned n, literal const* cls, bool is_valid, const std::string& annotation) {
bool_vector used_vars(num_vars(), false);
bool_vector used_bools(usize(m_atoms), false);
var_vector vars;