- Timestamp:
- 04/29/07 21:51:43 (2 years ago)
- Files:
-
- 06/libkombilo/search.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/search.cpp
r248 r250 1521 1521 movelist.push_back(ENDOFNODE); 1522 1522 movelist.push_back(0); 1523 } 1524 else { 1523 } else { 1525 1524 movelist[movelist.size()-2] |= ENDOFNODE; 1526 1525 } 1526 } else { 1527 movelist.push_back(ENDOFNODE); 1528 movelist.push_back(0); 1527 1529 } 1528 1530 } … … 1736 1738 // int nodeCtr = 0; 1737 1739 // for(int i=0; i<endMovelist/2; i++) { 1738 // if (movel[2*i] & BRANCHPOINT) printf("BP\n"); 1739 // if (movel[2*i] & ENDOFVARIATION) printf("EV\n"); 1740 // if (movel[2*i+1] & BLACK) printf("B"); 1741 // if (movel[2*i+1] & WHITE) printf("W"); 1742 // if (movel[2*i+1] & REMOVE) printf("C"); 1743 // printf("%c", (movel[2*i] & 31)+97); 1744 // printf("%c", (movel[2*i+1] & 31)+97); 1745 // if (movel[2*i] & ENDOFNODE) printf("\n%d ", nodeCtr++); 1740 // printf(" - "); 1741 // if (movel[2*i] & BRANCHPOINT) printf("BP\n"); 1742 // if (movel[2*i] & ENDOFVARIATION) printf("EV\n"); 1743 // if (movel[2*i+1] & BLACK) printf("B"); 1744 // if (movel[2*i+1] & WHITE) printf("W"); 1745 // if (movel[2*i+1] & REMOVE) printf("C"); 1746 // printf("%c", (movel[2*i] & 31)+97); 1747 // printf("%c", (movel[2*i+1] & 31)+97); 1748 // if (movel[2*i] & ENDOFNODE) printf("\n%d ", nodeCtr++); 1746 1749 // } 1747 1750 // printf("\n"); … … 5260 5263 int rc = sqlite3_prepare(db, "select data from snapshots where rowid = ?", -1, &ppStmt, 0); 5261 5264 if (rc != SQLITE_OK || ppStmt==0) { 5262 printf("%d\n", rc);5263 5265 throw DBError(); 5264 5266 } … … 5301 5303 int cl_size = snapshot.retrieve_int(); 5302 5304 for(int i=0; i<cl_size; i++) { 5303 currentList->push_back(make_pair(snapshot.retrieve_int(), snapshot.retrieve_int())); 5305 int i1 = snapshot.retrieve_int(); 5306 int i2 = snapshot.retrieve_int(); 5307 5308 currentList->push_back(make_pair(i1, i2)); 5309 // if ((*currentList)[currentList->size()-1].second >= all->size()) printf("ouch %d\n", (*currentList)[currentList->size()-1].second); 5304 5310 (*all)[(*currentList)[currentList->size()-1].second]->hits_from_snv(snapshot); 5305 5311 }
