Skip to content

Commit

Permalink
Fixing bug in printing only sat logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Nov 1, 2024
1 parent c2287c8 commit 349df52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/rotor.c
Original file line number Diff line number Diff line change
Expand Up @@ -5541,7 +5541,7 @@ uint64_t eval_property(uint64_t core, uint64_t* line, uint64_t bad) {
set_sat(line, SAT);
}
} else {
if (or(not(printing_only_sat), and(printing_unrolled_model, get_sat(line) == SAT)))
if (and(printing_unrolled_model, or(not(printing_only_sat), get_sat(line) == SAT)))
if (next_step - current_offset >= min_steps_to_bad_state) {
w = w + dprintf(output_fd, "; bad-start-%lu: %s\n\n", current_step - current_offset, get_comment(line));
if (not(printing_explicit_constraints))
Expand Down Expand Up @@ -5582,7 +5582,7 @@ uint64_t eval_property(uint64_t core, uint64_t* line, uint64_t bad) {
set_sat(line, SAT);
}
} else {
if (or(not(printing_only_sat), and(printing_unrolled_model, get_sat(line) == SAT))) {
if (and(printing_unrolled_model, or(not(printing_only_sat), get_sat(line) == SAT))) {
w = w + dprintf(output_fd, "; constraint-start-%lu: %s\n\n", current_step - current_offset, get_comment(line));
if (not(printing_explicit_constraints))
print_line_advancing_nid(line);
Expand Down

0 comments on commit 349df52

Please sign in to comment.