3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-12 22:20:54 +00:00

print output file name

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2024-10-23 07:26:52 -07:00 committed by Lev Nachmanson
parent 8904a50103
commit 0db0efce9f
4 changed files with 178 additions and 139 deletions

View file

@ -64,6 +64,16 @@ void indexed_vector<T>::erase_from_index(unsigned j) {
m_index.erase(it);
}
template <typename T>
void indexed_vector<T>::erase(unsigned j) {
auto it = std::find(m_index.begin(), m_index.end(), j);
if (it != m_index.end()) {
m_data[j] = 0;
m_index.erase(it);
}
}
template <typename T>
void indexed_vector<T>::print(std::ostream & out) {
out << "m_index " << std::endl;