Skip to content

Commit

Permalink
[fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
misonijnik committed Feb 23, 2024
1 parent 82adb9a commit 5aceb66
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions include/klee/ADT/SparseStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,14 @@ struct PersistentArray : public StorageAdapter<ValueType, Eq> {
ValueType defaultValue;

public:
persistent_array_iterator(storage_ty it, size_t index, size_t size,
const ValueType &defaultValue)
: it(it), index(index), size(size), defaultValue(defaultValue) {}
persistent_array_iterator(storage_ty _it, size_t _index, size_t _size,
const ValueType &_defaultValue)
: it(_it), index(_index), size(_size), defaultValue(_defaultValue) {
while (index < size && eq(*it, defaultValue)) {
++it;
++index;
}
}
StorageIteratorKind getKind() const override {
return StorageIteratorKind::PersistenArray;
}
Expand Down

0 comments on commit 5aceb66

Please sign in to comment.