File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -343,14 +343,14 @@ mini_bddt mini_bdd_mgrt::mk(
343
343
}
344
344
345
345
bool mini_bdd_mgrt::reverse_keyt::operator <(
346
- const mini_bdd_mgrt::reverse_keyt &other ) const
346
+ const mini_bdd_mgrt::reverse_keyt &y ) const
347
347
{
348
- if (var<other. var || low<other. low )
349
- return true ;
350
- if (var>other .var || low>other. low )
351
- return false ;
352
-
353
- return high<other .high ;
348
+ const reverse_keyt &x=* this ;
349
+ if (x. var <y. var ) return true ;
350
+ if (x. var >y .var ) return false ;
351
+ if (x. low <y. low ) return true ;
352
+ if (x. low >y. low ) return false ;
353
+ return x. high <y .high ;
354
354
}
355
355
356
356
void 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
124
124
reverse_keyt (
125
125
unsigned _var, const mini_bddt &_low, const mini_bddt &_high);
126
126
127
- bool operator <(const reverse_keyt &other ) const ;
127
+ bool operator <(const reverse_keyt &) const ;
128
128
};
129
129
130
130
typedef std::map<reverse_keyt, mini_bdd_nodet *> reverse_mapt;
You can’t perform that action at this time.
0 commit comments