File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -339,15 +339,14 @@ mini_bddt mini_bdd_mgrt::mk(
339
339
}
340
340
}
341
341
342
- bool mini_bdd_mgrt::reverse_keyt:: operator <(
343
- const mini_bdd_mgrt::reverse_keyt &other) const
342
+ bool operator < ( const mini_bdd_mgrt::reverse_keyt &x,
343
+ const mini_bdd_mgrt::reverse_keyt &y)
344
344
{
345
- if (var<other.var || low<other.low )
346
- return true ;
347
- if (var>other.var || low>other.low )
348
- return false ;
349
-
350
- return high<other.high ;
345
+ if (x.var <y.var ) return true ;
346
+ if (x.var >y.var ) return false ;
347
+ if (x.low <y.low ) return true ;
348
+ if (x.low >y.low ) return false ;
349
+ return x.high <y.high ;
351
350
}
352
351
353
352
void mini_bdd_mgrt::DumpTable (std::ostream &out) const
Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ class mini_bdd_mgrt
123
123
unsigned var, low, high;
124
124
reverse_keyt (
125
125
unsigned _var, const mini_bddt &_low, const mini_bddt &_high);
126
-
127
- bool operator <(const reverse_keyt &other) const ;
128
126
};
129
127
128
+ friend bool operator <(const reverse_keyt &, const reverse_keyt &);
129
+
130
130
typedef std::map<reverse_keyt, mini_bdd_nodet *> reverse_mapt;
131
131
reverse_mapt reverse_map;
132
132
You can’t perform that action at this time.
0 commit comments