Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
6bf1201c
Commit
6bf1201c
authored
11 months ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[printers] Ensure goal is in cnf before negating and printing it.
parent
3fe5ddfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/printers/vnnlib.ml
+4
-0
4 additions, 0 deletions
src/printers/vnnlib.ml
with
4 additions
and
0 deletions
src/printers/vnnlib.ml
+
4
−
0
View file @
6bf1201c
...
...
@@ -476,6 +476,10 @@ let print_prop_decl info fmt prop_kind pr t =
|
Decl
.
Plemma
->
assert
false
|
Decl
.
Paxiom
->
print_axiom
info
fmt
(
pr
,
t
)
|
Decl
.
Pgoal
->
let
t
=
(* Before negating the formula, make it in conjunctive normal form. *)
Why3
.
Split_goal
.
split_pos_full
t
|>
Why3
.
Term
.
t_and_l
in
let
negated_term
=
negate_term
info
t
in
print_goal
info
fmt
(
pr
,
negated_term
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment