Skip to content
Snippets Groups Projects
Commit c44445c5 authored by Rajmund Hruška's avatar Rajmund Hruška Committed by Tomáš Pecka
Browse files

algo: covers: Simplify nested if statements

parent a9dda656
No related branches found
No related tags found
1 merge request!148Bp hruskaraj rebase
......@@ -83,13 +83,11 @@ void RelaxedApproximateEnhancedCoversComputation::processState ( const string::L
isFactor = true;
}
 
if ( ( currState->elements.size ( ) > 1 ) && ( currState->elements[0].depth == currState->depth ) ) {
if ( isFactor ) {
if ( ( currState->elements[currState->elements.size ( ) - 1].depth == x.getContent ( ).size ( ) ) && ( currState->depth > k ) )
updateEnhCov ( currState, covers, h );
if ( ( currState->elements.size ( ) > 1 ) && ( ( currState->elements[0].depth == currState->depth ) && isFactor ) ) {
if ( ( currState->elements[currState->elements.size ( ) - 1].depth == x.getContent ( ).size ( ) ) && ( currState->depth > k ) )
updateEnhCov ( currState, covers, h );
 
processState ( x, k, currState, covers, h );
}
processState ( x, k, currState, covers, h );
}
 
delete currState;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment