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

Core: debug nits #3683

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/syntax/print/FStarC.Syntax.Print.fst
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ instance showable_ctx_uvar_meta = {
| Ctx_uvar_meta_attr attr -> "Ctx_uvar_meta_attr " ^ show attr
| Ctx_uvar_meta_tac r -> "Ctx_uvar_meta_tac " ^ show r);
}
instance showable_bqual = { show = (fun b -> bqual_to_string (Some b)); } // really silly but OK
instance showable_aqual = { show = aqual_to_string; }

let tscheme_to_string ts =
Expand Down
1 change: 1 addition & 0 deletions src/syntax/print/FStarC.Syntax.Print.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ instance val showable_ctxu : showable ctx_uvar
instance val showable_binding : showable binding
instance val showable_subst_elt : showable subst_elt
instance val showable_branch : showable branch
instance val showable_bqual : showable binder_qualifier
instance val showable_aqual : showable aqual
instance val showable_qualifier : showable qualifier
instance val showable_pat : showable pat
Expand Down
8 changes: 3 additions & 5 deletions src/typechecker/FStarC.TypeChecker.Core.fst
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,10 @@ let check_bqual (b0 b1:bqual)
return ()
| Some Equality, Some Equality ->
return ()
| Some (Meta t1), Some (Meta t2) ->
if equal_term t1 t2
then return ()
else fail "Binder qualifier mismatch"
| Some (Meta t1), Some (Meta t2) when equal_term t1 t2 ->
return ()
| _ ->
fail "Binder qualifier mismatch"
fail (BU.format2 "Binder qualifier mismatch, %s vs %s" (show b0) (show b1))

let check_aqual (a0 a1:aqual)
: result unit
Expand Down
Loading