Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eecs398-search
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
Model registry
Operate
Environments
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
vcday
eecs398-search
Commits
eaa9349d
Commit
eaa9349d
authored
6 years ago
by
jsclose
Browse files
Options
Downloads
Patches
Plain Diff
naive and working
parent
180a7eff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ISRAnd-tests
+0
-0
0 additions, 0 deletions
ISRAnd-tests
constraintSolver/ISRAnd.cpp
+4
-2
4 additions, 2 deletions
constraintSolver/ISRAnd.cpp
constraintSolver/tests/ISRAndTests.cpp
+1
-1
1 addition, 1 deletion
constraintSolver/tests/ISRAndTests.cpp
with
5 additions
and
3 deletions
ISRAnd-tests
+
0
−
0
View file @
eaa9349d
No preview for this file type
This diff is collapsed.
Click to expand it.
constraintSolver/ISRAnd.cpp
+
4
−
2
View file @
eaa9349d
...
...
@@ -101,9 +101,10 @@ Location ISRAnd::Seek( Location target )
//Get Document of the furthest ISR
//DocumentEnd->Seek( furthest );
if
(
nearestTerm
->
GetEndDocument
()
->
getCurrentDoc
().
docEndPosition
==
furthestTerm
->
GetEndDocument
()
->
getCurrentDoc
().
docEndPosition
)
{
cout
<<
"
MATCHING
"
<<
endl
;
cout
<<
"
Found Match
"
<<
endl
;
return
nearestTerm
->
GetEndDocument
()
->
getCurrentDoc
().
docEndPosition
;
}
...
...
@@ -120,7 +121,8 @@ Location ISRAnd::Seek( Location target )
else
{
//No Match yet, keep searching
target
=
lastDocStart
;
//docs before the fursther? may be hit
target
=
furthest
-
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
constraintSolver/tests/ISRAndTests.cpp
+
1
−
1
View file @
eaa9349d
...
...
@@ -43,7 +43,7 @@ int main ( )
/*
*
* moment and life
*
file3tweet151407709667856384
file3tweet151407709667856384
file5tweet151408405939093504
file9tweet151409353818255361
*
...
...
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