Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
9e7768b6
Commit
9e7768b6
authored
May 05, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify folded procedural branches
parent
fc9b0b59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/Convert/Traverse.hs
+2
-0
No files found.
src/Convert/Traverse.hs
View file @
9e7768b6
...
@@ -231,6 +231,8 @@ traverseSinglyNestedStmtsM fullMapper = cs
...
@@ -231,6 +231,8 @@ traverseSinglyNestedStmtsM fullMapper = cs
cs
(
DoWhile
e
stmt
)
=
fullMapper
stmt
>>=
return
.
DoWhile
e
cs
(
DoWhile
e
stmt
)
=
fullMapper
stmt
>>=
return
.
DoWhile
e
cs
(
Forever
stmt
)
=
fullMapper
stmt
>>=
return
.
Forever
cs
(
Forever
stmt
)
=
fullMapper
stmt
>>=
return
.
Forever
cs
(
Foreach
x
vars
stmt
)
=
fullMapper
stmt
>>=
return
.
Foreach
x
vars
cs
(
Foreach
x
vars
stmt
)
=
fullMapper
stmt
>>=
return
.
Foreach
x
vars
cs
(
If
NoCheck
(
Number
"1"
)
s
_
)
=
fullMapper
s
cs
(
If
NoCheck
(
Number
"0"
)
_
s
)
=
fullMapper
s
cs
(
If
u
e
s1
s2
)
=
do
cs
(
If
u
e
s1
s2
)
=
do
s1'
<-
fullMapper
s1
s1'
<-
fullMapper
s1
s2'
<-
fullMapper
s2
s2'
<-
fullMapper
s2
...
...
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