File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -463,14 +463,20 @@ mini_bddt mini_bdd_mgrt::mk(
463463}
464464
465465bool mini_bdd_mgrt::reverse_keyt::operator <(
466- const mini_bdd_mgrt::reverse_keyt &other ) const
466+ const mini_bdd_mgrt::reverse_keyt &y ) const
467467{
468- if (var<other.var || low<other.low )
468+ const reverse_keyt &x=*this ;
469+
470+ if (x.var <y.var )
469471 return true ;
470- if (var>other .var || low>other. low )
472+ else if (x .var >y. var )
471473 return false ;
472-
473- return high<other.high ;
474+ else if (x.low <y.low )
475+ return true ;
476+ else if (x.low >y.low )
477+ return false ;
478+ else
479+ return x.high <y.high ;
474480}
475481
476482void mini_bdd_mgrt::DumpTable (std::ostream &out) const
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class mini_bdd_mgrt
124124 reverse_keyt (
125125 unsigned _var, const mini_bddt &_low, const mini_bddt &_high);
126126
127- bool operator <(const reverse_keyt &other ) const ;
127+ bool operator <(const reverse_keyt &) const ;
128128 };
129129
130130 typedef std::map<reverse_keyt, mini_bdd_nodet *> reverse_mapt;
You can’t perform that action at this time.
0 commit comments