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
f9daa0d7
Commit
f9daa0d7
authored
8 years ago
by
Nicolas Voirol
Browse files
Options
Downloads
Patches
Plain Diff
Ordering on characters
parent
a81517e5
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/inox/ast/Expressions.scala
+12
-4
12 additions, 4 deletions
src/main/scala/inox/ast/Expressions.scala
src/main/scala/inox/ast/Printers.scala
+1
-0
1 addition, 0 deletions
src/main/scala/inox/ast/Printers.scala
with
13 additions
and
4 deletions
src/main/scala/inox/ast/Expressions.scala
+
12
−
4
View file @
f9daa0d7
...
@@ -466,25 +466,33 @@ trait Expressions { self: Trees =>
...
@@ -466,25 +466,33 @@ trait Expressions { self: Trees =>
/** $encodingof `... < ...`*/
/** $encodingof `... < ...`*/
case
class
LessThan
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
case
class
LessThan
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
Untyped
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
if
(
lhs
.
getType
==
CharType
&&
rhs
.
getType
==
CharType
)
BooleanType
else
Untyped
}
}
/** $encodingof `... > ...`*/
/** $encodingof `... > ...`*/
case
class
GreaterThan
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
case
class
GreaterThan
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
Untyped
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
if
(
lhs
.
getType
==
CharType
&&
rhs
.
getType
==
CharType
)
BooleanType
else
Untyped
}
}
/** $encodingof `... <= ...`*/
/** $encodingof `... <= ...`*/
case
class
LessEquals
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
case
class
LessEquals
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
Untyped
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
if
(
lhs
.
getType
==
CharType
&&
rhs
.
getType
==
CharType
)
BooleanType
else
Untyped
}
}
/** $encodingof `... >= ...`*/
/** $encodingof `... >= ...`*/
case
class
GreaterEquals
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
case
class
GreaterEquals
(
lhs
:
Expr
,
rhs
:
Expr
)
extends
Expr
with
CachingTyped
{
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
protected
def
computeType
(
implicit
s
:
Symbols
)
:
Type
=
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
Untyped
if
(
numericType
(
lhs
.
getType
,
rhs
.
getType
)
!=
Untyped
)
BooleanType
else
if
(
lhs
.
getType
==
CharType
&&
rhs
.
getType
==
CharType
)
BooleanType
else
Untyped
}
}
...
...
This diff is collapsed.
Click to expand it.
src/main/scala/inox/ast/Printers.scala
+
1
−
0
View file @
f9daa0d7
...
@@ -254,6 +254,7 @@ trait Printers {
...
@@ -254,6 +254,7 @@ trait Printers {
case
BagAdd
(
b
,
e
)
=>
p
"$b + $e"
case
BagAdd
(
b
,
e
)
=>
p
"$b + $e"
case
MultiplicityInBag
(
e
,
b
)
=>
p
"$b($e)"
case
MultiplicityInBag
(
e
,
b
)
=>
p
"$b($e)"
case
MapApply
(
m
,
k
)
=>
p
"$m($k)"
case
MapApply
(
m
,
k
)
=>
p
"$m($k)"
case
MapUpdated
(
m
,
k
,
v
)
=>
p
"$m.updated($k, $v)"
case
Not
(
expr
)
=>
p
"\u00AC$expr"
case
Not
(
expr
)
=>
p
"\u00AC$expr"
...
...
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