Skip to content

Commit

Permalink
Changed a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oskari1 committed Nov 24, 2023
1 parent 920fd7f commit 824eb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smt-log-parser/src/parsers/z3/inst_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ impl InstGraph {
// descending order of the cost.
// In case two instantiations have the same cost, the instantiation with the lower
// line number comes first in the order (is greater), or mathematically:
// inst_b > inst_a iff (cost_b > cost_a or (cost_b = cost_a and line_nr_b < line_nr_a))
// This is a total order since the line numbers are always guaranteed to be distinct
// integers.
// inst_b > inst_a iff (cost_b > cost_a or (cost_b = cost_a and line_nr_b < line_nr_a))
let mut most_costly_insts: Vec<NodeIndex> = self.inst_graph.node_indices().collect();
most_costly_insts.sort_by(|node_a, node_b| {
let node_a_data = self.inst_graph.node_weight(*node_a).unwrap();
Expand Down

0 comments on commit 824eb11

Please sign in to comment.