Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
frama-c
Commits
3d699c73
Commit
3d699c73
authored
5 months ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[doc] terminology loader/importer
parent
df7a1cc1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/userman/user-acsl.tex
+1
-1
1 addition, 1 deletion
doc/userman/user-acsl.tex
src/plugins/wp/Why3Import.ml
+2
-2
2 additions, 2 deletions
src/plugins/wp/Why3Import.ml
src/plugins/wp/doc/manual/wp_plugin.tex
+2
-2
2 additions, 2 deletions
src/plugins/wp/doc/manual/wp_plugin.tex
with
5 additions
and
5 deletions
doc/userman/user-acsl.tex
+
1
−
1
View file @
3d699c73
...
@@ -106,7 +106,7 @@ used, it is possible to have logic identifiers with an extended lexical format:
...
@@ -106,7 +106,7 @@ used, it is possible to have logic identifiers with an extended lexical format:
For instance,
\verb
+
Foo::bar'jazz
+
is a syntactically valid identifier.
For instance,
\verb
+
Foo::bar'jazz
+
is a syntactically valid identifier.
\end{itemize}
\end{itemize}
External module
load
ers are defined by plug-ins
\textit
{
via
}
the extension API,
External module
import
ers are defined by plug-ins
\textit
{
via
}
the extension API,
consult the plug-in manuals and the plug-in developer manual for more details.
consult the plug-in manuals and the plug-in developer manual for more details.
%%% Local Variables:
%%% Local Variables:
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/Why3Import.ml
+
2
−
2
View file @
3d699c73
...
@@ -345,7 +345,7 @@ module Env = WpContext.StaticGenerator
...
@@ -345,7 +345,7 @@ module Env = WpContext.StaticGenerator
add_builtins
env
;
env
add_builtins
env
;
env
end
)
end
)
let
load
er
(
ctxt
:
LT
.
module_builder
)
(
_
:
C
.
location
)
(
m
:
string
list
)
=
let
import
er
(
ctxt
:
LT
.
module_builder
)
(
_
:
C
.
location
)
(
m
:
string
list
)
=
begin
begin
L
.
debug
~
dkey
"Importing Why3 theory %s.@."
(
String
.
concat
"::"
m
)
;
L
.
debug
~
dkey
"Importing Why3 theory %s.@."
(
String
.
concat
"::"
m
)
;
let
thname
=
String
.
concat
"."
m
in
let
thname
=
String
.
concat
"."
m
in
...
@@ -360,7 +360,7 @@ let register () =
...
@@ -360,7 +360,7 @@ let register () =
if
not
!
registered
then
if
not
!
registered
then
begin
begin
registered
:=
true
;
registered
:=
true
;
Acsl_extension
.
register_module_importer
~
plugin
:
"wp"
"why3"
load
er
;
Acsl_extension
.
register_module_importer
~
plugin
:
"wp"
"why3"
import
er
;
end
end
let
()
=
Cmdline
.
run_after_extended_stage
register
let
()
=
Cmdline
.
run_after_extended_stage
register
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/doc/manual/wp_plugin.tex
+
2
−
2
View file @
3d699c73
...
@@ -1788,13 +1788,13 @@ by a link (`\user{link};'). The available tags are depicted on figure~\ref{wp-dr
...
@@ -1788,13 +1788,13 @@ by a link (`\user{link};'). The available tags are depicted on figure~\ref{wp-dr
\subsection
{
Importing Why3 Modules
}
\subsection
{
Importing Why3 Modules
}
\label
{
importer
}
\label
{
importer
}
The
\textsf
{
WP
}
plug-in provides an
\textsf
{
ACSL
}
module
load
er that
The
\textsf
{
WP
}
plug-in provides an
\textsf
{
ACSL
}
module
import
er that
can import
\textsf
{
Why3
}
theories and modules into
\textsf
{
ACSL
}
.
can import
\textsf
{
Why3
}
theories and modules into
\textsf
{
ACSL
}
.
See
\textsf
{
Frama-C
}
user manual, Section § 6.3 for details.
See
\textsf
{
Frama-C
}
user manual, Section § 6.3 for details.
Here is an example of use:
Here is an example of use:
\begin{lstlisting}
\begin{lstlisting}
//@ import why3: number::Gcd;
//@ import
\wp
::
why3: number::Gcd;
/*@
/*@
assigns
\nothing
;
assigns
\nothing
;
...
...
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