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 warning for unknown attribute #207

Merged
merged 3 commits into from
Mar 6, 2024
Merged

Add warning for unknown attribute #207

merged 3 commits into from
Mar 6, 2024

Conversation

Gbury
Copy link
Owner

@Gbury Gbury commented Feb 27, 2024

Instead of raising an unbound id error on unknown attributes, we know emit a warning. I'm still a bit undecided about whether the warning should be fatal or not.

cc @bobot

@Gbury Gbury force-pushed the unknown_annot_smtlib branch from 7056069 to b9eae74 Compare March 6, 2024 14:14
@Gbury Gbury merged commit 4637064 into master Mar 6, 2024
21 checks passed
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Mar 8, 2024
We are not compatible with the development release of Dolmen due to the
`implicit` field added in [1]. Further, we currently require that Dolmen
move trigger annotations in SMT-LIB format from the body of the formula
to the quantifier itself, but this was removed in [2].

Since both of these will be part of the next release of dolmen, let us
pre-emptively ensure that release won't break Alt-Ergo.

[1] : Gbury/dolmen#199
[2] : Gbury/dolmen#207
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Mar 8, 2024
In the native format, triggers are annotated on the quantifier itself,
but in SMT-LIB format they are on the body of the quantifier. Alt-Ergo
only looks on the quantifier, which was not a problem because Dolmen
used to copy triggers from the body to the quantifier.

Since Gbury/dolmen#207 Dolmen no longer performs
this copy, which means that we ignore triggers in SMT-LIB format.

This patch makes Alt-Ergo looks for trigger on both the quantifier and
its body, to be compatible with both modes of operations. It also adds a
specific test for this (although the Dolmen change breaks a bunch
of existing tests already).

This patch also bumps the Dolmen version for obvious reasons.
Halbaroth pushed a commit to OCamlPro/alt-ergo that referenced this pull request Mar 13, 2024
We are not compatible with the development release of Dolmen due to the
`implicit` field added in [1]. Further, we currently require that Dolmen
move trigger annotations in SMT-LIB format from the body of the formula
to the quantifier itself, but this was removed in [2].

Since both of these will be part of the next release of dolmen, let us
pre-emptively ensure that release won't break Alt-Ergo.

[1] : Gbury/dolmen#199
[2] : Gbury/dolmen#207
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Mar 13, 2024
In the native format, triggers are annotated on the quantifier itself,
but in SMT-LIB format they are on the body of the quantifier. Alt-Ergo
only looks on the quantifier, which was not a problem because Dolmen
used to copy triggers from the body to the quantifier.

Since Gbury/dolmen#207 Dolmen no longer performs
this copy, which means that we ignore triggers in SMT-LIB format.

This patch makes Alt-Ergo looks for trigger on both the quantifier and
its body, to be compatible with both modes of operations. It also adds a
specific test for this (although the Dolmen change breaks a bunch
of existing tests already).

This patch also bumps the Dolmen version for obvious reasons.
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Mar 13, 2024
In the native format, triggers are annotated on the quantifier itself,
but in SMT-LIB format they are on the body of the quantifier. Alt-Ergo
only looks on the quantifier, which was not a problem because Dolmen
used to copy triggers from the body to the quantifier.

Since Gbury/dolmen#207 Dolmen no longer performs
this copy, which means that we ignore triggers in SMT-LIB format.

This patch makes Alt-Ergo looks for trigger on both the quantifier and
its body, to be compatible with both modes of operations. It also adds a
specific test for this (although the Dolmen change breaks a bunch
of existing tests already).

This patch also bumps the Dolmen version for obvious reasons.
bclement-ocp added a commit to bclement-ocp/alt-ergo that referenced this pull request Mar 13, 2024
Triggers are annotated on the body of the quantifier, but Alt-Ergo looks
them up on the quantifier itself. This used to be OK, because Dolmen
used to copy tags from the body to the quantifier.

Since Gbury/dolmen#207 Dolmen no longer performs
this copy, which means that we now ignore triggers (or rather, we use
the triggers of the parent quantifier if it exists -- which is wrong).

This patch looks for trigger on the body instead, to be compatible with
future Dolmen releases.

This patch also bumps the Dolmen version for obvious reasons.
bclement-ocp added a commit to OCamlPro/alt-ergo that referenced this pull request Mar 14, 2024
Triggers are annotated on the body of the quantifier, but Alt-Ergo looks
them up on the quantifier itself. This used to be OK, because Dolmen
used to copy tags from the body to the quantifier.

Since Gbury/dolmen#207 Dolmen no longer performs
this copy, which means that we now ignore triggers (or rather, we use
the triggers of the parent quantifier if it exists -- which is wrong).

This patch looks for trigger on the body instead, to be compatible with
future Dolmen releases.

This patch also bumps the Dolmen version for obvious reasons.
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.

1 participant