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
daa33949
Commit
daa33949
authored
1 year ago
by
David Bühler
Browse files
Options
Downloads
Patches
Plain Diff
[Kernel] Persistent array: exports type 'a t instead of 'a array.
Avoids overloading stdlib types.
parent
06b9500d
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/kernel_services/analysis/filter/linear.ml
+1
-2
1 addition, 2 deletions
src/kernel_services/analysis/filter/linear.ml
src/libraries/utils/parray.ml
+2
-7
2 additions, 7 deletions
src/libraries/utils/parray.ml
src/libraries/utils/parray.mli
+7
-11
7 additions, 11 deletions
src/libraries/utils/parray.mli
with
10 additions
and
20 deletions
src/kernel_services/analysis/filter/linear.ml
+
1
−
2
View file @
daa33949
...
...
@@ -22,7 +22,6 @@
open
Nat
.
Types
open
Finite
.
Types
open
Parray
.
Types
...
...
@@ -31,7 +30,7 @@ module Space (Field : Field.S) = struct
open
Field
.
Types
module
Types
=
struct
type
(
'
n
,
'
m
)
m
=
{
data
:
scalar
array
;
rows
:
'
n
nat
;
cols
:
'
m
nat
}
type
(
'
n
,
'
m
)
m
=
{
data
:
scalar
P
array
.
t
;
rows
:
'
n
nat
;
cols
:
'
m
nat
}
type
(
'
n
,
'
m
)
matrix
=
M
:
(
'
n
succ
,
'
m
succ
)
m
->
(
'
n
succ
,
'
m
succ
)
matrix
type
'
n
vector
=
(
'
n
,
zero
succ
)
matrix
end
...
...
This diff is collapsed.
Click to expand it.
src/libraries/utils/parray.ml
+
2
−
7
View file @
daa33949
...
...
@@ -20,13 +20,8 @@
(* *)
(**************************************************************************)
module
Types
=
struct
type
'
a
memory
=
'
a
Array
.
t
type
'
a
array
=
'
a
data
ref
and
'
a
data
=
Memory
of
'
a
memory
|
Diff
of
int
*
'
a
*
'
a
array
end
open
Types
type
'
a
t
=
'
a
data
ref
and
'
a
data
=
Memory
of
'
a
array
|
Diff
of
int
*
'
a
*
'
a
t
let
init
n
f
=
ref
(
Memory
(
Array
.
init
n
f
))
...
...
This diff is collapsed.
Click to expand it.
src/libraries/utils/parray.mli
+
7
−
11
View file @
daa33949
...
...
@@ -24,19 +24,15 @@
Sylvain Conchon and Jean-Chistophe Filliâtre. For further details, see
https://www.lri.fr/~filliatr/ftp/publis/puf-wml07.pdf *)
module
Types
:
sig
type
'
a
array
end
type
'
a
t
open
Types
val
init
:
int
->
(
int
->
'
a
)
->
'
a
array
val
get
:
'
a
array
->
int
->
'
a
val
set
:
'
a
array
->
int
->
'
a
->
'
a
array
val
fold
:
(
int
->
'
a
->
'
b
->
'
b
)
->
'
a
array
->
'
b
->
'
b
val
map
:
(
'
a
->
'
a
)
->
'
a
array
->
'
a
array
val
init
:
int
->
(
int
->
'
a
)
->
'
a
t
val
get
:
'
a
t
->
int
->
'
a
val
set
:
'
a
t
->
int
->
'
a
->
'
a
t
val
fold
:
(
int
->
'
a
->
'
b
->
'
b
)
->
'
a
t
->
'
b
->
'
b
val
map
:
(
'
a
->
'
a
)
->
'
a
t
->
'
a
t
val
pretty
:
?
pp_sep
:
(
Format
.
formatter
->
unit
->
unit
)
->
(
Format
.
formatter
->
'
a
->
unit
)
->
Format
.
formatter
->
'
a
array
->
unit
Format
.
formatter
->
'
a
t
->
unit
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