Skip to content

Commit

Permalink
Fix style and extend one comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
salome-eriksson committed Jul 4, 2024
1 parent 2a7ba56 commit 97c819a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/search/heuristics/relaxation_heuristic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,4 @@ void RelaxationHeuristic::add_options_to_feature(plugins::Feature &feature) {
"a potentially expensive precomputation.",
"false");
}

}
4 changes: 2 additions & 2 deletions src/search/landmarks/landmark_heuristic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ void LandmarkHeuristic::initialize(const plugins::Options &opts) {
&& dynamic_cast<tasks::NegatedAxiomsTask *>(task.get()) == nullptr) {
cerr << "The landmark heuristics currently only support "
<< "task transformations that modify the operator costs "
"or add negated axioms. See issues 845 and 686 "
"for details." << endl;
<< "or add negated axioms. See issues 845 and 686 "
<< "for details." << endl;
utils::exit_with(utils::ExitCode::SEARCH_UNSUPPORTED);
}

Expand Down
4 changes: 2 additions & 2 deletions src/search/tasks/negated_axioms_task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ unordered_set<int> NegatedAxiomsTask::collect_needed_negatively(
pair) doesn't depend on anything.
*/
if ((non_default) &&
(simple_default_axioms || var_to_scc[var]->size() > 1) ) {
(simple_default_axioms || var_to_scc[var]->size() > 1)) {
continue;
}

Expand Down Expand Up @@ -334,7 +334,7 @@ FactPair NegatedAxiomsTask::get_operator_precondition(

assert(fact_index == 0);
FactPair head = negated_axioms[op_index - negated_axioms_start_index].head;
return FactPair(head.var, 1-head.value);
return FactPair(head.var, 1 - head.value);
}

int NegatedAxiomsTask::get_num_operator_effects(int op_index, bool is_axiom) const {
Expand Down
1 change: 1 addition & 0 deletions src/search/tasks/negated_axioms_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Options;
that together represent ¬v <- ¬c_1 ^ ... ^ ¬c_n.
Notes:
- We assume that derived variables are binary.
- THE TRANSFORMATION CAN BE SLOW! The rule ¬v <- ¬c_1 ^ ... ^ ¬c_n must
be split up into axioms whose conditions are simple conjunctions. Since
all c_i are also simple conjunctions, this amounts to converting a CNF
Expand Down

0 comments on commit 97c819a

Please sign in to comment.