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

lib: Requalify: enable ctrl+click jumps for arch_requalify #812

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Xaphiosis
Copy link
Member

This uses a complex workaround to unify the parse location of the original name encoded in YXML with the name the user is actually aiming for. While intuitively one could think to use the position of the name we parsed, there appears to be no way to pass that location to read_const/read_type_name, as those expect to be fed the result of Parse.const and Parse.typ respectively.

🦆🦆🦆: aside: this also appears why the code does the weird (Parse.position (Scan.ahead parse_nm -- Parse.name)) setup that I couldn't make sense of before.

@Xaphiosis Xaphiosis added enhancement arch-split splitting proofs into generic and architecture dependent labels Aug 20, 2024
lib/Requalify.thy Outdated Show resolved Hide resolved
Copy link
Member

@corlewis corlewis left a comment

Choose a reason for hiding this comment

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

I can't say that I fully understand the internal details, but if it works then it looks good to me!

This uses a complex workaround to unify the parse location of the
original name encoded in YXML with the name the user is actually aiming
for. While intuitively one could think to use the position of the name we
parsed, there appears to be no way to pass that location to
read_const/read_type_name, as those expect to be fed the result of
Parse.const and Parse.typ respectively.

Signed-off-by: Rafal Kolanski <rafal.kolanski@proofcraft.systems>
Copy link
Member

@lsf37 lsf37 left a comment

Choose a reason for hiding this comment

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

I approve of these uses of deep magic.

@Xaphiosis Xaphiosis merged commit 92971ee into seL4:master Aug 20, 2024
14 checks passed
@Xaphiosis Xaphiosis deleted the arch_requalify branch August 20, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-split splitting proofs into generic and architecture dependent enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants