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

Incorrect regular expression relations #1075

Closed
heshanpadmasiri opened this issue Sep 9, 2022 · 2 comments · Fixed by #1078
Closed

Incorrect regular expression relations #1075

heshanpadmasiri opened this issue Sep 9, 2022 · 2 comments · Fixed by #1078
Assignees
Labels
Type/Bug Something isn't working

Comments

@heshanpadmasiri
Copy link
Member

Following regular expression relations will produce an incorrect relationship (not equal) when the expected relationship is less than (tested both inside testerina and by directly running regex jar file)

  1. (JRBB(U(yeNTW)*W)*mlJQv)*xIZVP, (JRBB(U(yeNTW(CoePqmjQbZ)*)*W)*mlJQv)*xIZVP
  2. (JRBB(U(yeNTW(CoePqmjQbZ)*)*W)*mlJQv)*xIZVP, (JRBB(U(yeNTW(C(KCQCY)*oePqmjQbZ)*)*W)*mlJQv)*xIZVP

I haven't confirmed whether regex produces the correct types and the type checker is failing or regex is producing the wrong type. I will update this comment as new pairs are discovered with the same error

@heshanpadmasiri heshanpadmasiri added the Type/Bug Something isn't working label Sep 9, 2022
@jclark
Copy link
Contributor

jclark commented Sep 9, 2022

You could try the types with CDuce.

@heshanpadmasiri heshanpadmasiri self-assigned this Sep 9, 2022
@heshanpadmasiri
Copy link
Member Author

I think this is a bug in regex not in subtyping (confirmed by passing the expected semtype tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants