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
72a039f6
Commit
72a039f6
authored
2 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[interpretation] A pass of code formatting.
parent
b8848af1
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
bin/dune
+1
-2
1 addition, 2 deletions
bin/dune
lib/onnx/dune
+4
-1
4 additions, 1 deletion
lib/onnx/dune
src/interpretation.ml
+5
-3
5 additions, 3 deletions
src/interpretation.ml
src/main.ml
+12
-13
12 additions, 13 deletions
src/main.ml
tests/dune
+1
-2
1 addition, 2 deletions
tests/dune
with
23 additions
and
21 deletions
bin/dune
+
1
−
2
View file @
72a039f6
...
...
@@ -3,5 +3,4 @@
(section bin)
(files
(findmodule.py as findmodule.py)
(nnenum.sh as nnenum.sh))
)
(nnenum.sh as nnenum.sh)))
This diff is collapsed.
Click to expand it.
lib/onnx/dune
+
4
−
1
View file @
72a039f6
...
...
@@ -5,7 +5,10 @@
(synopsis "ONNX parser for CAISAR"))
(rule
(deps onnx_protoc.proto generate_onnx_interface.sh (package ocaml-protoc-plugin))
(deps
onnx_protoc.proto
generate_onnx_interface.sh
(package ocaml-protoc-plugin))
(targets onnx_protoc.ml)
(action
(run ./generate_onnx_interface.sh)))
This diff is collapsed.
Click to expand it.
src/interpretation.ml
+
5
−
3
View file @
72a039f6
...
...
@@ -118,13 +118,15 @@ let interpret_task ~cwd env task =
Fmt
.
pr
"%a : %a@.%a@."
Pretty
.
print_pr
(
Task
.
task_goal
task
)
Pretty
.
print_term
f
print_caisar_op
caisar_env
let
interpret
?
debug
?
format
~
loadpath
(
s
:
Verification
.
File
.
t
)
=
let
interpret
?
debug
?
format
~
loadpath
file
=
let
cwd
=
match
s
with
Stdin
->
Unix
.
getcwd
()
|
File
s
->
Caml
.
Filename
.
dirname
s
match
file
with
|
Verification
.
File
.
Stdin
->
Unix
.
getcwd
()
|
File
s
->
Caml
.
Filename
.
dirname
s
|
JSON
_
->
Unix
.
getcwd
()
(*todo *)
in
let
env
,
_config
,
mstr_theory
=
Verification
.
open_file
?
debug
?
format
~
loadpath
s
Verification
.
open_file
?
debug
?
format
~
loadpath
file
in
Wstdlib
.
Mstr
.
iter
(
fun
_
theory
->
...
...
This diff is collapsed.
Click to expand it.
src/main.ml
+
12
−
13
View file @
72a039f6
...
...
@@ -261,19 +261,18 @@ let timelimit =
Arg
.(
value
&
opt
(
some
string
)
None
&
info
[
"t"
;
"timelimit"
]
~
doc
~
docv
:
"TIME"
)
let
loadpath
=
let
doc
=
"Additional loadpath."
in
Arg
.(
value
&
opt_all
string
[
"."
]
&
info
[
"L"
;
"loadpath"
]
~
doc
)
let
format
=
let
doc
=
"File format."
in
Arg
.(
value
&
opt
(
some
string
)
None
&
info
[
"format"
]
~
doc
)
let
files
=
let
doc
=
"File to verify."
in
let
file_or_stdin
=
Arg
.
conv'
Verification
.
File
.(
of_string
,
pretty
)
in
Arg
.(
non_empty
&
pos_all
file_or_stdin
[]
&
info
[]
~
doc
~
docv
:
"FILE"
)
let
loadpath
=
let
doc
=
"Additional loadpath."
in
Arg
.(
value
&
opt_all
string
[
"."
]
&
info
[
"L"
;
"loadpath"
]
~
doc
)
let
format
=
let
doc
=
"File format."
in
Arg
.(
value
&
opt
(
some
string
)
None
&
info
[
"format"
]
~
doc
)
let
files
=
let
doc
=
"File to verify."
in
let
file_or_stdin
=
Arg
.
conv'
Verification
.
File
.(
of_string
,
pretty
)
in
Arg
.(
non_empty
&
pos_all
file_or_stdin
[]
&
info
[]
~
doc
~
docv
:
"FILE"
)
let
verify_cmd
=
let
cmdname
=
"verify"
in
...
...
This diff is collapsed.
Click to expand it.
tests/dune
+
1
−
2
View file @
72a039f6
...
...
@@ -11,6 +11,5 @@
bin/cvc5
bin/nnenum.sh
filter_tmpdir.sh
(glob_files "datasets/a/*")
)
(glob_files "datasets/a/*"))
(package caisar))
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