Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in sb_strPat.ml #66

Open
arjunguha opened this issue Dec 23, 2011 · 0 comments
Open

bug in sb_strPat.ml #66

arjunguha opened this issue Dec 23, 2011 · 0 comments

Comments

@arjunguha
Copy link
Member

Subtraction is backward in one of these cases (reported by Ben Lerner):

let subtract v1 v2 = match v1, v2 with
| Set s1, Set s2 -> Set (S.subtract s1 s2)
| Reg r1, Reg r2 -> Reg (R.subtract r1 r2)
| Set s, Reg r
| Reg r, Set s -> Reg (R.subtract r (S.to_nfa s))

case three seems to be backwards...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant