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
56a5fcc4
Commit
56a5fcc4
authored
9 years ago
by
Manos Koukoutos
Browse files
Options
Downloads
Patches
Plain Diff
Update repair
Repair uses the same Cost as synthesis Fix repair rules ordering
parent
5f5c8c02
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/repair/RepairCostModel.scala
+0
-23
0 additions, 23 deletions
src/main/scala/leon/repair/RepairCostModel.scala
src/main/scala/leon/repair/Repairman.scala
+1
-6
1 addition, 6 deletions
src/main/scala/leon/repair/Repairman.scala
with
1 addition
and
29 deletions
src/main/scala/leon/repair/RepairCostModel.scala
deleted
100644 → 0
+
0
−
23
View file @
5f5c8c02
/* Copyright 2009-2015 EPFL, Lausanne */
package
leon
package
repair
import
synthesis._
import
synthesis.rules._
import
repair.rules._
case
class
RepairCostModel
(
cm
:
CostModel
)
extends
WrappedCostModel
(
cm
,
"Repair("
+
cm
.
name
+
")"
)
{
// FIXME: Implement this in repair strategy
/*override def andNode(an: AndNode, subs: Option[Seq[Cost]]) = {
val h = cm.andNode(an, subs).minSize
Cost(an.ri.rule match {
case Focus => -10
case CEGLESS => 0
case TEGLESS => 1
case _ => h+1
})
}*/
}
This diff is collapsed.
Click to expand it.
src/main/scala/leon/repair/Repairman.scala
+
1
−
6
View file @
56a5fcc4
...
@@ -192,12 +192,7 @@ class Repairman(ctx0: LeonContext, initProgram: Program, fd: FunDef, verifTimeou
...
@@ -192,12 +192,7 @@ class Repairman(ctx0: LeonContext, initProgram: Program, fd: FunDef, verifTimeou
val
soptions
=
so0
.
copy
(
val
soptions
=
so0
.
copy
(
functionsToIgnore
=
so0
.
functionsToIgnore
+
fd
,
functionsToIgnore
=
so0
.
functionsToIgnore
+
fd
,
costModel
=
RepairCostModel
(
so0
.
costModel
),
rules
=
Seq
(
Focus
,
CEGLESS
)
++
so0
.
rules
rules
=
(
so0
.
rules
++
Seq
(
Focus
,
CEGLESS
//TEGLESS
))
diff
Seq
(
ADTInduction
,
TEGIS
,
IntegerInequalities
,
IntegerEquation
)
)
)
new
Synthesizer
(
ctx
,
program
,
ci
,
soptions
)
new
Synthesizer
(
ctx
,
program
,
ci
,
soptions
)
...
...
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