Skip to content

Commit

Permalink
Renamed option from 'babsr-heuristic' to 'babsr'
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjdavis committed Jan 22, 2025
1 parent ce03e4f commit fad1a47
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/configuration/OptionParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void OptionParser::initialize()
&( ( *_stringOptions )[Options::SPLITTING_STRATEGY] ) )
->default_value( ( *_stringOptions )[Options::SPLITTING_STRATEGY] ),
"The branching strategy "
"(earliest-relu/pseudo-impact/largest-interval/relu-violation/polarity/babsr-heuristic)."
"(earliest-relu/pseudo-impact/largest-interval/relu-violation/polarity/babsr)."
" pseudo-impact is specific to the DeepSoI (default) procedure and relu-violation is "
"specific to the Reluplex procedure.\n" )(
"soi-split-threshold",
Expand Down
4 changes: 2 additions & 2 deletions src/configuration/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ DivideStrategy Options::getDivideStrategy() const
return DivideStrategy::LargestInterval;
else if ( strategyString == "pseudo-impact" )
return DivideStrategy::PseudoImpact;
else if ( strategyString == "babsr-heuristic" )
return DivideStrategy::BaBsrHeuristic;
else if ( strategyString == "babsr" )
return DivideStrategy::BaBSR;
else
return DivideStrategy::Auto;
}
Expand Down
2 changes: 1 addition & 1 deletion src/engine/DivideStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
enum class DivideStrategy {
// Relu splitting
Polarity = 0, // Pick the ReLU with the polarity closest to 0 among the first K nodes
BaBsrHeuristic, // Pick the ReLU with the highest BaBSR score
BaBSR, // Pick the ReLU with the highest BaBSR score
EarliestReLU, // Pick a ReLU that appears in the earliest layer
ReLUViolation, // Pick the ReLU that has been violated for the most times
LargestInterval, // Pick the largest interval every K split steps, use ReLUViolation in other
Expand Down
2 changes: 1 addition & 1 deletion src/engine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2886,7 +2886,7 @@ PiecewiseLinearConstraint *Engine::pickSplitPLConstraint( DivideStrategy strateg
candidatePLConstraint = _smtCore.getConstraintsWithHighestScore();
}
}
else if ( strategy == DivideStrategy::BaBsrHeuristic )
else if ( strategy == DivideStrategy::BaBSR )
candidatePLConstraint = pickSplitPLConstraintBasedOnBaBsrHeuristic();
else if ( strategy == DivideStrategy::Polarity )
candidatePLConstraint = pickSplitPLConstraintBasedOnPolarity();
Expand Down
1 change: 0 additions & 1 deletion src/engine/SnCDivideStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ enum class SnCDivideStrategy {
// Relu splitting
Polarity, // Pick the ReLU with the polarity closest to 0 among the first K nodes
EarliestReLU,
BaBsrHeuristic, // Pick the ReLU with the highest BaBSR score

Auto
};
Expand Down

0 comments on commit fad1a47

Please sign in to comment.