Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
6
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
94a60883
Commit
94a60883
authored
8 years ago
by
Nicolas Voirol
Browse files
Options
Downloads
Patches
Plain Diff
Update some documentation
parent
a030410e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/scala/inox/ast/Expressions.scala
+2
-5
2 additions, 5 deletions
src/main/scala/inox/ast/Expressions.scala
src/main/scala/inox/ast/Paths.scala
+2
-2
2 additions, 2 deletions
src/main/scala/inox/ast/Paths.scala
with
4 additions
and
7 deletions
src/main/scala/inox/ast/Expressions.scala
+
2
−
5
View file @
94a60883
...
...
@@ -30,7 +30,7 @@ trait Expressions { self: Trees =>
}
}
/** Represents an expression in
Leon
. */
/** Represents an expression in
Inox
. */
abstract
class
Expr
extends
Tree
with
Typed
/** Trait which gets mixed-in to expressions without subexpressions */
...
...
@@ -326,9 +326,6 @@ trait Expressions { self: Trees =>
}
/** $encodingof `... ==> ...` (logical implication).
*
* This is not a standard Scala operator, but it results from an implicit
* conversion in the Leon library.
*
* @see [[Constructors.implies]]
*/
...
...
@@ -428,7 +425,7 @@ trait Expressions { self: Trees =>
*
* Division and Remainder follows Java/Scala semantics. Division corresponds
* to / operator on BigInt and Remainder corresponds to %. Note that in
* Java/Scala % is called remainder and the "mod" operator (Modulo in
Leon
) is also
* Java/Scala % is called remainder and the "mod" operator (Modulo in
Inox
) is also
* defined on BigInteger and differs from Remainder. The "mod" operator
* returns an always positive remainder, while Remainder could return
* a negative remainder. The following must hold:
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/inox/ast/Paths.scala
+
2
−
2
View file @
94a60883
...
...
@@ -128,7 +128,7 @@ trait Paths { self: SymbolOps with TypeOps with Constructors =>
* within a fixpoint computation where the `ids` set is iteratively computed
* by performing [[filterByIds]] calls on some (unchaning) base [[Path]].
*
* @see [[
leon.purescala
.FunctionClosure.
close
]] for an example usecase.
* @see [[
stainless.extraction.innerfuns
.FunctionClosure.
transform
]] for an example usecase.
*/
def
filterByIds
(
ids
:
Set
[
Identifier
])
:
Path
=
{
def
containsIds
(
ids
:
Set
[
Identifier
])(
e
:
Expr
)
:
Boolean
=
exprOps
.
exists
{
...
...
@@ -216,7 +216,7 @@ trait Paths { self: SymbolOps with TypeOps with Constructors =>
lazy
val
toClause
:
Expr
=
and
(
BooleanLiteral
(
true
))
/** Like [[toClause]] but doesn't simplify final path through constructors
* from [[
leon.purescala.
Constructors]] */
* from [[Constructors]] */
lazy
val
fullClause
:
Expr
=
fold
[
Expr
](
BooleanLiteral
(
true
),
Let
,
And
(
_
,
_
))(
elements
)
/** Folds the path into a boolean proposition where let-bindings are
...
...
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