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
bcf82807
Commit
bcf82807
authored
10 years ago
by
Emmanouil (Manos) Koukoutos
Committed by
Etienne Kneuss
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Don't run correct examples
parent
203dcb85
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/RepairTrackingEvaluator.scala
+1
-1
1 addition, 1 deletion
src/main/scala/leon/repair/RepairTrackingEvaluator.scala
src/main/scala/leon/repair/Repairman.scala
+5
-18
5 additions, 18 deletions
src/main/scala/leon/repair/Repairman.scala
with
6 additions
and
19 deletions
src/main/scala/leon/repair/RepairTrackingEvaluator.scala
+
1
−
1
View file @
bcf82807
...
...
@@ -9,7 +9,7 @@ import leon.purescala.Definitions._
import
leon.LeonContext
import
leon.evaluators.RecursiveEvaluator
abstract
class
RepairTrackingEvaluator
(
ctx
:
LeonContext
,
prog
:
Program
)
extends
RecursiveEvaluator
(
ctx
,
prog
,
50000
)
{
class
RepairTrackingEvaluator
(
ctx
:
LeonContext
,
prog
:
Program
)
extends
RecursiveEvaluator
(
ctx
,
prog
,
50000
)
{
type
RC
=
CollectingRecContext
type
GC
=
GlobalContext
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/leon/repair/Repairman.scala
+
5
−
18
View file @
bcf82807
...
...
@@ -174,32 +174,19 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout
// We don't want tests whose invocation will call other failing tests.
// This is because they will appear erroneous,
// even though the error comes from the called test
val
testEval
:
RepairTrackingEvaluator
=
new
RepairTrackingEvaluator
(
ctx
,
program
)
{
def
withFilter
(
fi
:
FI
)
=
fi
.
_1
==
fd
}
val
passingTs
=
for
(
test
<-
passingTests
)
yield
InExample
(
test
.
ins
)
val
failingTs
=
for
(
test
<-
failingTests
)
yield
InExample
(
test
.
ins
)
(
failingTs
++
passingTs
)
foreach
{
ts
=>
val
testEval
=
new
RepairTrackingEvaluator
(
ctx
,
program
)
failingTests
foreach
{
ts
=>
testEval
.
eval
(
functionInvocation
(
fd
,
ts
.
ins
))
}
val
test2Tests
:
Map
[
FI
,
Set
[
FI
]]
=
testEval
.
fullCallGraph
//println("CALL GRAPH")
//for {
// ((fi, args), tos) <- test2Tests
// (tofi, toArgs) <- tos
//}{
// println(s"${fi.id}(${args mkString ", "}) ----> ${tofi.id}(${toArgs mkString ", "})")
//}
def
isFailing
(
fi
:
FI
)
=
!
testEval
.
fiStatus
(
fi
)
&&
(
fi
.
_1
==
fd
)
val
failing
=
test2Tests
filter
{
case
(
from
,
to
)
=>
isFailing
(
from
)
&&
(
to
forall
(!
isFailing
(
_
))
)
isFailing
(
from
)
&&
(
to
forall
(!
isFailing
(
_
))
)
}
failing
.
keySet
map
{
case
(
_
,
args
)
=>
InExample
(
args
)
}
}
...
...
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