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
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
Charles Southerland
frama-c
Commits
dd2cdf56
Commit
dd2cdf56
authored
6 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
synchronize with frama-c/frama-c!1936
parent
67d55641
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
src/plugins/e-acsl/main.ml
+1
-1
1 addition, 1 deletion
src/plugins/e-acsl/main.ml
src/plugins/e-acsl/misc.ml
+3
-3
3 additions, 3 deletions
src/plugins/e-acsl/misc.ml
src/plugins/e-acsl/tests/print.ml
+3
-3
3 additions, 3 deletions
src/plugins/e-acsl/tests/print.ml
with
7 additions
and
7 deletions
src/plugins/e-acsl/main.ml
+
1
−
1
View file @
dd2cdf56
...
@@ -64,7 +64,7 @@ let unmemoized_extend_ast () =
...
@@ -64,7 +64,7 @@ let unmemoized_extend_ast () =
let
register
s
=
let
register
s
=
File
.
pre_register
File
.
pre_register
(
File
.
NeedCPP
(
File
.
NeedCPP
(
s
,
(
Datatype
.
Filepath
.
of_string
s
,
ppc
ppc
^
Format
.
asprintf
" -I%s"
share
,
^
Format
.
asprintf
" -I%s"
share
,
ppk
))
ppk
))
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/misc.ml
+
3
−
3
View file @
dd2cdf56
...
@@ -35,10 +35,10 @@ let library_files () =
...
@@ -35,10 +35,10 @@ let library_files () =
"e_acsl.h"
]
"e_acsl.h"
]
let
normalized_library_files
=
let
normalized_library_files
=
lazy
(
List
.
map
Filepath
.
normalize
(
library_files
()
))
lazy
(
List
.
map
Datatype
.
Filepath
.
of_string
(
library_files
()
))
let
is_library_loc
(
loc
,
_
)
=
let
is_library_loc
(
loc
,
_
)
=
List
.
mem
loc
.
Lexing
.
pos_fname
(
Lazy
.
force
normalized_library_files
)
List
.
mem
loc
.
Filepath
.
pos_path
(
Lazy
.
force
normalized_library_files
)
let
library_functions
=
Datatype
.
String
.
Hashtbl
.
create
17
let
library_functions
=
Datatype
.
String
.
Hashtbl
.
create
17
let
register_library_function
vi
=
let
register_library_function
vi
=
...
@@ -111,7 +111,7 @@ let mk_e_acsl_guard ?(reverse=false) kind kf e p =
...
@@ -111,7 +111,7 @@ let mk_e_acsl_guard ?(reverse=false) kind kf e p =
Kernel
.
Unicode
.
without_unicode
Kernel
.
Unicode
.
without_unicode
(
Format
.
asprintf
"%a@?"
Printer
.
pp_predicate
)
p
(
Format
.
asprintf
"%a@?"
Printer
.
pp_predicate
)
p
in
in
let
line
=
(
fst
loc
)
.
Lexing
.
pos_lnum
in
let
line
=
(
fst
loc
)
.
Filepath
.
pos_lnum
in
let
e
=
let
e
=
if
reverse
then
e
else
Cil
.
new_exp
~
loc
:
e
.
eloc
(
UnOp
(
LNot
,
e
,
Cil
.
intType
))
if
reverse
then
e
else
Cil
.
new_exp
~
loc
:
e
.
eloc
(
UnOp
(
LNot
,
e
,
Cil
.
intType
))
in
in
...
...
This diff is collapsed.
Click to expand it.
src/plugins/e-acsl/tests/print.ml
+
3
−
3
View file @
dd2cdf56
...
@@ -27,9 +27,9 @@ module Printer_extension(X:Printer.PrinterClass) = struct
...
@@ -27,9 +27,9 @@ module Printer_extension(X:Printer.PrinterClass) = struct
method
!
global
fmt
g
=
method
!
global
fmt
g
=
let
loc
,
_
=
Cil_datatype
.
Global
.
loc
g
in
let
loc
,
_
=
Cil_datatype
.
Global
.
loc
g
in
let
file
=
loc
.
Lexing
.
pos_fname
in
let
file
=
loc
.
Filepath
.
pos_path
in
if
file
=
""
||
List
.
exists
if
file
=
Datatype
.
Filepath
.
dummy
||
List
.
exists
(
fun
s
->
Filepath
.
normalize
s
=
file
)
(
fun
s
->
Datatype
.
Filepath
.
of_string
s
=
file
)
(
Kernel
.
Files
.
get
()
)
(
Kernel
.
Files
.
get
()
)
then
super
#
global
fmt
g
then
super
#
global
fmt
g
...
...
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