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

Fix polymorphism check and introduce the concept of PolymorphicInstanceSlot #381

Merged
merged 5 commits into from
Mar 1, 2022

Conversation

zcai1
Copy link

@zcai1 zcai1 commented Feb 7, 2022

  1. Check isPolymorphicQualifier with the real type factory for constant slot.
  2. Add createPolymorphicInstanceSlot to slot manager since it's not really a source variable. Currently, we are using source variable slot for polymorphic instance because it doesn't affect the inference result.
  3. A minor change for CFI setup: settings.gradle wasn't working properly under some environments.

Note: This PR is related to opprop/ontology#58 since it introduces the polymorphic annotation @Ontology(values={POLY})

Copy link
Member

@wmdietl wmdietl left a comment

Choose a reason for hiding this comment

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

Thanks! Just one small question.

src/checkers/inference/DefaultSlotManager.java Outdated Show resolved Hide resolved
@wmdietl wmdietl assigned zcai1 and unassigned wmdietl Feb 9, 2022
@zcai1 zcai1 assigned wmdietl and unassigned zcai1 Feb 9, 2022
settings.gradle Outdated
@@ -1,7 +1,7 @@
includeBuild ('../annotation-tools/annotation-file-utilities') {
if (!file('../annotation-tools/annotation-file-utilities').exists()) {
exec {
executable '.ci-build-without-test.sh'
executable './.ci-build-without-test.sh'
Copy link
Member

Choose a reason for hiding this comment

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

Hi @zcai1 could you break out this change so that we can merge it?
It looks like https://github.com/opprop/value-inference/pull/8/files is failing for this reason, too.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, let me open a new PR

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for #387

Copy link
Member

@wmdietl wmdietl left a comment

Choose a reason for hiding this comment

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

Thanks! I'll merge this after #385.

@wmdietl wmdietl disabled auto-merge March 1, 2022 21:53
@wmdietl wmdietl enabled auto-merge (squash) March 1, 2022 21:54
@wmdietl wmdietl merged commit 8a29a0e into opprop:master Mar 1, 2022
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.

2 participants