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

Add covariant List and Option to the library #1402

Merged
merged 1 commit into from Apr 26, 2023

Conversation

mario-bucev
Copy link
Collaborator

As requested by @vkuncak.
Removes the CovariantList benchmark since it is now in the library.

@@ -23,7 +23,7 @@ abstract class AbstractLibrarySuite(opts: Seq[inox.OptionValue[_]]) extends AnyF
}

protected def keep(tr: ast.Trees)(fd: tr.FunDef): Boolean = fd match {
case fd if fd.flags.exists(_.name == "unchecked") => false
case fd if fd.flags.exists(f => f.name == "unchecked" || f.name == "synthetic") => false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synthetic functions are filtered out before being passed to the type checker when using the usual filter. Since the LibrarySuite is using a custom filter, removing synthetic option was also intended?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe @samarion would have a clue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context, the type checker says that ObjectPrimitiveSize does not have visibility on Object (since it is mutually recursive with it - probably due to the encoding of ::).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea, sorry :) Maybe @jad-hamza ?

@vkuncak vkuncak merged commit b5d994d into epfl-lara:main Apr 26, 2023
2 checks passed
@mario-bucev mario-bucev deleted the covcollection branch April 26, 2023 07:16
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

Successfully merging this pull request may close these issues.

None yet

3 participants