Skip to content

[analysis] Improve lattice fuzzer #6050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/analysis/lattices/inverted.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ template<FullLattice L> struct Inverted {
Element getBottom() const noexcept { return lattice.getTop(); }
Element getTop() const noexcept { return lattice.getBottom(); }
LatticeComparison compare(const Element& a, const Element& b) const noexcept {
return reverseComparison(lattice.compare(a, b));
return lattice.compare(b, a);
}
bool join(Element& self, Element other) const noexcept {
return lattice.meet(self, other);
Expand Down
1 change: 1 addition & 0 deletions src/analysis/lattices/lift.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ template<Lattice L> struct Lift {
};

L lattice;

Lift(L&& lattice) : lattice(std::move(lattice)) {}

Element getBottom() const noexcept { return {std::nullopt}; }
Expand Down
Loading