Skip to content

Commit

Permalink
Fixes an off-by-one error in the rewriting of fomulas.
Browse files Browse the repository at this point in the history
  • Loading branch information
yav committed Mar 26, 2009
1 parent 338ba89 commit 69ffa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Integer/Presburger.hs
Expand Up @@ -79,7 +79,7 @@ pre n form = case form of

pre_ex :: (Bool,Int) -> [Name] -> Formula -> Form
pre_ex (top,n) xs form = case form of
Exists f -> pre_ex (top,n+1) (n:xs) (f (var (n+1)))
Exists f -> pre_ex (top,n+1) (n:xs) (f (var n))
f1 :\/: f2 -> or' (pre_ex (top,n) xs f1) (pre_ex (top,n) xs f2)
_ -> exists_many top xs (pre (False,n) form)

Expand Down

0 comments on commit 69ffa6d

Please sign in to comment.