File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3957,6 +3957,7 @@ SCIP_RETCODE addWeakSBCsSubgroup(
3957
3957
{
3958
3958
/* add element from lexorder to hashmap.
3959
3959
* Use insert, as duplicate entries in lexorder is not permitted. */
3960
+ assert ((* lexorder )[k ] >= 0 );
3960
3961
assert ( ! SCIPhashmapExists (varsinlexorder , (void * ) (size_t ) (* lexorder )[k ]) ); /* Use int as pointer */
3961
3962
SCIP_CALL ( SCIPhashmapInsertInt (varsinlexorder , (void * ) (size_t ) (* lexorder )[k ], k ) );
3962
3963
}
@@ -3979,6 +3980,7 @@ SCIP_RETCODE addWeakSBCsSubgroup(
3979
3980
graphcomp = chosencomppercolor [j ];
3980
3981
graphcompsize = graphcompbegins [graphcomp + 1 ] - graphcompbegins [graphcomp ];
3981
3982
varidx = firstvaridxpercolor [j ];
3983
+ assert (varidx >= 0 );
3982
3984
3983
3985
/* if the first variable was already contained in another orbit or if there are no variables left anyway, skip the
3984
3986
* component */
@@ -4077,6 +4079,7 @@ SCIP_RETCODE addWeakSBCsSubgroup(
4077
4079
int varidx ;
4078
4080
4079
4081
varidx = orbit [activeorb ][0 ];
4082
+ assert (varidx >= 0 );
4080
4083
4081
4084
if ( * maxnvarsorder == 0 )
4082
4085
{
You can’t perform that action at this time.
0 commit comments