Skip to content

Commit 1824e67

Browse files
committed
comments on FullLattice
1 parent c2d5f74 commit 1824e67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/analysis/lattice.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ concept FullLattice =
7070
Lattice<L> && requires(const L& lattice,
7171
const typename L::Element& constElem,
7272
typename L::Element& elem) {
73+
// Get the top element of this lattice.
7374
{ lattice.getTop() } noexcept -> std::same_as<typename L::Element>;
75+
// Modify `elem` in-place to be the meet (aka greatest lower bound) of
76+
// `elem` and `constEleme`, returning true iff `elem` was modified, i.e. if
77+
// it was not already a lower bound of `constElem`.
7478
{ lattice.meet(elem, constElem) } noexcept -> std::same_as<bool>;
7579
};
7680

0 commit comments

Comments
 (0)