Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
LARA
inox
Commits
d7bb6e81
Commit
d7bb6e81
authored
12 years ago
by
Régis Blanc
Browse files
Options
Downloads
Patches
Plain Diff
Simplificator is no longer needed
parent
40eee30e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/scala/leon/Main.scala
+0
-1
0 additions, 1 deletion
src/main/scala/leon/Main.scala
src/main/scala/leon/Simplificator.scala
+0
-25
0 additions, 25 deletions
src/main/scala/leon/Simplificator.scala
with
0 additions
and
26 deletions
src/main/scala/leon/Main.scala
+
0
−
1
View file @
d7bb6e81
...
...
@@ -9,7 +9,6 @@ object Main {
xlang
.
EpsilonElimination
,
xlang
.
ImperativeCodeElimination
,
xlang
.
FunctionClosure
,
Simplificator
,
synthesis
.
SynthesisPhase
,
verification
.
AnalysisPhase
)
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/leon/Simplificator.scala
deleted
100644 → 0
+
0
−
25
View file @
40eee30e
package
leon
import
purescala.Common._
import
purescala.Definitions._
import
purescala.Trees._
import
purescala.TypeTrees._
import
purescala.TreeOps._
object
Simplificator
extends
TransformationPhase
{
val
name
=
"Simplificator"
val
description
=
"Some safe and minimal simplification"
def
apply
(
ctx
:
LeonContext
,
pgm
:
Program
)
:
Program
=
{
val
allFuns
=
pgm
.
definedFunctions
allFuns
.
foreach
(
fd
=>
{
fd
.
body
=
fd
.
body
.
map
(
simplifyLets
)
fd
.
precondition
=
fd
.
precondition
.
map
(
simplifyLets
)
fd
.
postcondition
=
fd
.
postcondition
.
map
(
simplifyLets
)
})
pgm
}
}
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