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
f0e1a665
Commit
f0e1a665
authored
2 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
fix minor typos
parent
b606eddb
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/kernel_services/ast_queries/ast_info.mli
+7
-7
7 additions, 7 deletions
src/kernel_services/ast_queries/ast_info.mli
with
7 additions
and
7 deletions
src/kernel_services/ast_queries/ast_info.mli
+
7
−
7
View file @
f0e1a665
...
...
@@ -30,37 +30,37 @@ open Cil_types
(** [true] iff the constant is an integer constant
(i.e. neither a float nor a string). Enum tags and chars
are integer constant
are integer constant
s.
*)
val
is_integral_const
:
constant
->
bool
(** returns the value of the corresponding integer literal or [None]
if the constant is not an integer (i.e. {!is_integral_const} returns false.
if the constant is not an integer (i.e. {!is_integral_const} returns false
)
.
*)
val
possible_value_of_integral_const
:
constant
->
Integer
.
t
option
(** returns the value of the corresponding integer constant expression
(** returns the value of the corresponding integer constant expression
, or
[None] if the expression is not a constant expression or does not
evaluate to an integer constant.
@before Frama-C+dev the function only returned [Some v] when the
expression was an integer literal (i.e. [Const c])
expression was an integer literal (i.e. [Const c])
.
*)
val
possible_value_of_integral_expr
:
exp
->
Integer
.
t
option
(** returns the value of the corresponding integer literal. It is
the responsability of the caller to ensure the constant is indeed
an integer constant. If unsure, use {!possible_value_of_integral_const}
an integer constant. If unsure, use {!possible_value_of_integral_const}
.
*)
val
value_of_integral_const
:
constant
->
Integer
.
t
(** returns the value of the corresponding integer constant expression. It
is the responsibility of the caller to ensure that the argument is indeed
an integer constant expression. If unsure, use
{!possible_value_of_integral_expr}
{!possible_value_of_integral_expr}
.
@before Frama-C+dev the function would fail if the expression was not an
integer literal (see {!possible_value_of_integral_expr})
integer literal (see {!possible_value_of_integral_expr})
.
*)
val
value_of_integral_expr
:
exp
->
Integer
.
t
...
...
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