X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Futils%2Fptset.ml;h=f9bbd03eb6074f96d7d6148ec099b3b75ff47ebb;hp=3de13bc79467d4e652a1b42bb59fcd5db5abc4c8;hb=e4c67ab0a7c5d8f8ac51eabf84233dc375a06a30;hpb=1d78508dcb4d646f982e7ce09f8be00ec193cfda diff --git a/src/utils/ptset.ml b/src/utils/ptset.ml index 3de13bc..f9bbd03 100644 --- a/src/utils/ptset.ml +++ b/src/utils/ptset.ml @@ -15,7 +15,7 @@ (***********************************************************************) (* - Time-stamp: + Time-stamp: *) (* Modified by Kim Nguyen *) @@ -353,9 +353,9 @@ struct | Branch (p1,m1,l1,r1), Branch (p2,m2,l2,r2) -> if m1 == m2 && p1 == p2 then intersect l1 l2 || intersect r1 r2 - else if m1 < m2 && match_prefix p2 p1 m1 then + else if m1 > m2 && match_prefix p2 p1 m1 then intersect (if zero_bit p2 m1 then l1 else r1) s2 - else if m1 > m2 && match_prefix p1 p2 m2 then + else if m1 < m2 && match_prefix p1 p2 m2 then intersect s1 (if zero_bit p1 m2 then l2 else r2) else false