Skip to content

Use fully qualified paths to avoid harness name clash. - #1955

Merged
celinval merged 8 commits into
model-checking:mainfrom
YoshikiTakashima:661-different-harness-option2
Dec 8, 2022
Merged

celinval merged 8 commits into
model-checking:mainfrom
YoshikiTakashima:661-different-harness-option2

Conversation

@YoshikiTakashima

@YoshikiTakashima YoshikiTakashima commented Dec 2, 2022 •

Copy link
Copy Markdown
Contributor

Description of changes:

Changes kani_macros to export harnesses with fully qualified paths, not name of function. Adjusts concrete-playback since it relies on this path.

Resolved issues:

Partial resolution of #661 (full path, still has #[no_mangle])

Call-outs:

  • I don't know if the Kani team agreed on which of the 2 options are preferable. That needs to happen before merge.
  • kept #[no_mangle] b/c I though it was required for forcing codegen. TODO: Check if this is really the case.

Testing:

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@YoshikiTakashima
YoshikiTakashima requested a review from a team as a code owner December 2, 2022 17:22

@celinval celinval left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should eventually get rid of the [no_mangle] stuff. I think only the legacy linker depends on it now. That said, I think this is a small enough change that is an improvement. We can remove the export name once we get rid of [no_mangle].

My only ask is to add a similar test for concrete playback. Thanks

@YoshikiTakashima
YoshikiTakashima force-pushed the 661-different-harness-option2 branch from ade900b to a212111 Compare December 7, 2022 15:42
@YoshikiTakashima YoshikiTakashima changed the title [DRAFT, Needs Discussion] Use fully qualified paths to avoid harness name clash. Use fully qualified paths to avoid harness name clash. Dec 7, 2022
@YoshikiTakashima
YoshikiTakashima force-pushed the 661-different-harness-option2 branch from 87d1214 to bd71a35 Compare December 7, 2022 16:47
@YoshikiTakashima
YoshikiTakashima force-pushed the 661-different-harness-option2 branch from add4747 to 62e00af Compare December 7, 2022 21:38
@YoshikiTakashima
YoshikiTakashima force-pushed the 661-different-harness-option2 branch from 62e00af to bcbd79e Compare December 7, 2022 21:40
@YoshikiTakashima
YoshikiTakashima force-pushed the 661-different-harness-option2 branch from e18ddb1 to b1df1f5 Compare December 7, 2022 22:29
@YoshikiTakashima

YoshikiTakashima commented Dec 7, 2022 •

Copy link
Copy Markdown
Contributor Author

@celinval Modulo any major bugs, I think this should address the comments.

Also, I can't press the merge button, so please merge when you think it's ready.

@celinval
celinval merged commit 1aebd2f into model-checking:main Dec 8, 2022
@YoshikiTakashima
YoshikiTakashima deleted the 661-different-harness-option2 branch December 8, 2022 06:40
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