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
134279e6
"scripts/scalacleon" did not exist on "78d9da12bf49e72b97974c372f8826f7af950750"
Commit
134279e6
authored
14 years ago
by
Ali Sinan Köksal
Browse files
Options
Downloads
Patches
Plain Diff
Separate VCs for each case class in induction tactic.
parent
f29384cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/purescala/InductionTactic.scala
+4
-4
4 additions, 4 deletions
src/purescala/InductionTactic.scala
with
4 additions
and
4 deletions
src/purescala/InductionTactic.scala
+
4
−
4
View file @
134279e6
...
@@ -74,12 +74,12 @@ class InductionTactic(reporter: Reporter) extends DefaultTactic(reporter) {
...
@@ -74,12 +74,12 @@ class InductionTactic(reporter: Reporter) extends DefaultTactic(reporter) {
})
})
Implies
(
And
(
inductiveHypothesis
),
withPrec
)
Implies
(
And
(
inductiveHypothesis
),
withPrec
)
}
}
Implies
(
CaseClassInstanceOf
(
ccd
,
argAsVar
),
conditionForChild
)
new
VerificationCondition
(
Implies
(
CaseClassInstanceOf
(
ccd
,
argAsVar
),
conditionForChild
)
,
funDef
,
VCKind
.
Postcondition
,
this
)
case
_
=>
error
(
"Abstract class has non-case class subtype."
)
case
_
=>
error
(
"Abstract class has non-case class subtype."
)
}))
}))
println
(
"Induction tactic yields the following
vc
:"
)
println
(
"Induction tactic yields the following
VCs
:"
)
println
(
And
(
conditionsForEachChild
))
println
(
conditionsForEachChild
.
map
(
vc
=>
vc
.
condition
).
mkString
(
"\n"
))
Seq
(
new
VerificationCondition
(
And
(
conditionsForEachChild
),
funDef
,
VCKind
.
Postcondition
,
this
))
conditionsForEachChild
}
}
case
None
=>
case
None
=>
reporter
.
warning
(
"Induction tactic currently supports exactly one argument of abstract class type"
)
reporter
.
warning
(
"Induction tactic currently supports exactly one argument of abstract class type"
)
...
...
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