Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
menhir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
POTTIER Francois
menhir
Commits
f18df990
Commit
f18df990
authored
Feb 01, 2019
by
Yann Regis-Gianas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Possible fix for CheckSafeParameterizedGrammar.
parent
c7bac4cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/CheckSafeParameterizedGrammar.ml
src/CheckSafeParameterizedGrammar.ml
+2
-1
No files found.
src/CheckSafeParameterizedGrammar.ml
View file @
f18df990
...
...
@@ -79,7 +79,7 @@ type edge =
|
Safe
|
Dangerous
let
successors_parameter
(
f
:
edge
->
formal
->
unit
)
x
(
param
:
parameter
)
=
let
rec
successors_parameter
(
f
:
edge
->
formal
->
unit
)
x
param
=
match
param
with
|
ParameterVar
_
->
(* This is not an application. No successors. *)
...
...
@@ -90,6 +90,7 @@ let successors_parameter (f : edge -> formal -> unit) x (param : parameter) =
then there is an edge to the formal [nt, i]. Whether it is a safe
or dangerous edge depends on whether [x] occurs shallow or deep. *)
List
.
iteri
(
fun
i
param
->
successors_parameter
f
x
param
;
if
Parameters
.
occurs_shallow
x
param
then
f
Safe
(
nt
,
i
)
else
if
Parameters
.
occurs_deep
x
param
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment