Skip to content

Commit

Permalink
Bugfix: during normalization we used the wrong term t1 instead of t1'
Browse files Browse the repository at this point in the history
  • Loading branch information
yav committed Apr 27, 2009
1 parent 3428887 commit 8065e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Integer/Presburger/Prop.hs
Expand Up @@ -47,7 +47,7 @@ norm x p = case prop p of
Divides n t1 Divides n t1
| k1 == 0 -> Ind p | k1 == 0 -> Ind p
| k1 > 0 -> Norm p { prop = CVarP k1 (NDivides n t1') } | k1 > 0 -> Norm p { prop = CVarP k1 (NDivides n t1') }
| otherwise -> Norm p { prop = CVarP (negate k1) (NDivides n (negate t1))} | otherwise -> Norm p { prop = CVarP (negate k1) (NDivides n (negate t1'))}
where(k1,t1') = split_term x t1 -- t1 = k1 * x + t1' where(k1,t1') = split_term x t1 -- t1 = k1 * x + t1'


FF -> Ind p FF -> Ind p
Expand Down

0 comments on commit 8065e8a

Please sign in to comment.