mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
Warn on unused result (mainly for substitution::add)
This commit is contained in:
parent
8a5f1af3d1
commit
5d7833e65e
1 changed files with 5 additions and 5 deletions
|
@ -53,13 +53,13 @@ namespace polysat {
|
|||
|
||||
public:
|
||||
substitution(dd::pdd_manager& m);
|
||||
substitution add(pvar var, rational const& value) const;
|
||||
pdd apply_to(pdd const& p) const;
|
||||
[[nodiscard]] substitution add(pvar var, rational const& value) const;
|
||||
[[nodiscard]] pdd apply_to(pdd const& p) const;
|
||||
|
||||
bool contains(pvar var) const;
|
||||
bool value(pvar var, rational& out_value) const;
|
||||
[[nodiscard]] bool contains(pvar var) const;
|
||||
[[nodiscard]] bool value(pvar var, rational& out_value) const;
|
||||
|
||||
bool empty() const { return m_subst.is_one(); }
|
||||
[[nodiscard]] bool empty() const { return m_subst.is_one(); }
|
||||
|
||||
pdd const& to_pdd() const { return m_subst; }
|
||||
unsigned bit_width() const { return to_pdd().power_of_2(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue