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
fe56d1e0
Commit
fe56d1e0
authored
6 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[devman] fixes version in Change section + doc `status` flag in ACSL extensions
parent
282c5387
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/developer/advance.tex
+10
-1
10 additions, 1 deletion
doc/developer/advance.tex
doc/developer/changes.tex
+5
-0
5 additions, 0 deletions
doc/developer/changes.tex
src/kernel_services/ast_queries/logic_typing.mli
+1
-0
1 addition, 0 deletions
src/kernel_services/ast_queries/logic_typing.mli
with
16 additions
and
1 deletion
doc/developer/advance.tex
+
10
−
1
View file @
fe56d1e0
...
@@ -3926,7 +3926,7 @@ the corresponding list is traversed normally by the visitor
...
@@ -3926,7 +3926,7 @@ the corresponding list is traversed normally by the visitor
(see section~
\ref
{
adv:visitors
}
).
(see section~
\ref
{
adv:visitors
}
).
In order for the extension to be recognized by the parser, it must be
In order for the extension to be recognized by the parser, it must be
registered by one of the following functions, depending on its category
:
registered by one of the following functions, depending on its category
.
\begin{itemize}
\begin{itemize}
\item
\texttt
{
Logic
\_
typing.register
\_
behavior
\_
extension
}
%
\item
\texttt
{
Logic
\_
typing.register
\_
behavior
\_
extension
}
%
\scodeidx
{
Logic
\_
typing
}{
register
\_
behavior
\_
extension
}
\scodeidx
{
Logic
\_
typing
}{
register
\_
behavior
\_
extension
}
...
@@ -3941,6 +3941,15 @@ registered by one of the following functions, depending on its category:
...
@@ -3941,6 +3941,15 @@ registered by one of the following functions, depending on its category:
\item
\texttt
{
Logic
\_
typing.register
\_
code
\_
annot
\_
next
\_
both
\_
extension
}
%
\item
\texttt
{
Logic
\_
typing.register
\_
code
\_
annot
\_
next
\_
both
\_
extension
}
%
\scodeidx
{
Logic
\_
typing
}{
register
\_
code
\_
annot
\_
next
\_
loop
\_
extension
}
\scodeidx
{
Logic
\_
typing
}{
register
\_
code
\_
annot
\_
next
\_
loop
\_
extension
}
\end{itemize}
\end{itemize}
Each function takes three arguments:
\begin{itemize}
\item
\texttt
{
kw
}
the name of the extension,
\item
\texttt
{
status
}
, a boolean flag indicating whether the extended annotation
may have a validity status, and
\item
\texttt
{
f
}
the type-checking function itself.
\end{itemize}
After a call to the appropriate registration function,
After a call to the appropriate registration function,
a clause of the form
\verb
|
kw e1,...,en;
|
, where each
\verb
|
ei
|
can be
a clause of the form
\verb
|
kw e1,...,en;
|
, where each
\verb
|
ei
|
can be
any syntactically valid ACSL term or predicate,
any syntactically valid ACSL term or predicate,
...
...
This diff is collapsed.
Click to expand it.
doc/developer/changes.tex
+
5
−
0
View file @
fe56d1e0
...
@@ -7,7 +7,12 @@ This chapter summarizes the major changes in this documentation between each
...
@@ -7,7 +7,12 @@ This chapter summarizes the major changes in this documentation between each
\section*
{
Frama-C+dev
}
\section*
{
Frama-C+dev
}
\begin{itemize}
\begin{itemize}
\item
\textbf
{
ACSL Extension
}
: Document new
\texttt
{
status
}
flag for registration functions
\item
\textbf
{
Testing
}
: Document of usage
\texttt
{
@@
}
in a directive
\item
\textbf
{
Testing
}
: Document of usage
\texttt
{
@@
}
in a directive
\end{itemize}
\section*
{
18.0 Argon
}
\begin{itemize}
\item
\textbf
{
Logging Services
}
: Document
\texttt
{
error
}
and
\texttt
{
failure
}
behaviors.
\item
\textbf
{
Logging Services
}
: Document
\texttt
{
error
}
and
\texttt
{
failure
}
behaviors.
\item
\textbf
{
ACSL Extensions
}
: New extension categories, for global and plain code annotations
\item
\textbf
{
ACSL Extensions
}
: New extension categories, for global and plain code annotations
\end{itemize}
\end{itemize}
...
...
This diff is collapsed.
Click to expand it.
src/kernel_services/ast_queries/logic_typing.mli
+
1
−
0
View file @
fe56d1e0
...
@@ -172,6 +172,7 @@ type typing_context = {
...
@@ -172,6 +172,7 @@ type typing_context = {
@since Carbon-20101201
@since Carbon-20101201
@modify Silicon-20161101 change type of the function
@modify Silicon-20161101 change type of the function
@Frama-C+dev add [status] argument
*)
*)
val
register_behavior_extension
:
val
register_behavior_extension
:
string
->
bool
->
string
->
bool
->
...
...
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