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
eec62576
Commit
eec62576
authored
10 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
Proper ordering for positions
parent
0303b636
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/synthesis/ChooseInfo.scala
+1
-1
1 addition, 1 deletion
src/main/scala/leon/synthesis/ChooseInfo.scala
src/main/scala/leon/utils/Positions.scala
+12
-3
12 additions, 3 deletions
src/main/scala/leon/utils/Positions.scala
with
13 additions
and
4 deletions
src/main/scala/leon/synthesis/ChooseInfo.scala
+
1
−
1
View file @
eec62576
...
@@ -35,6 +35,6 @@ object ChooseInfo {
...
@@ -35,6 +35,6 @@ object ChooseInfo {
}
}
}
}
results
.
sortBy
(
_
.
fd
.
id
.
toString
)
results
.
sortBy
(
_
.
source
.
getPos
)
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/scala/leon/utils/Positions.scala
+
12
−
3
View file @
eec62576
...
@@ -5,13 +5,22 @@ package utils
...
@@ -5,13 +5,22 @@ package utils
import
java.io.File
import
java.io.File
abstract
class
Position
{
abstract
class
Position
extends
Ordered
[
Position
]
{
val
line
:
Int
val
line
:
Int
val
col
:
Int
val
col
:
Int
val
file
:
File
val
file
:
File
def
<
(
that
:
Position
)
=
{
def
compare
(
that
:
Position
)
=
{
(
this
.
file
==
that
.
file
)
&&
(
this
.
line
<
that
.
line
||
this
.
col
<
that
.
col
)
if
(
this
.
file
==
that
.
file
)
{
val
ld
=
this
.
line
-
that
.
line
if
(
ld
==
0
)
{
this
.
col
-
that
.
col
}
else
{
ld
}
}
else
{
0
}
}
}
def
fullString
:
String
def
fullString
:
String
...
...
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