This function assigns given ranges to expressions in the DAEG. The argument `assignments` associates indices of sought expressions with their corresponding new ranges.
(&mut self, assignments: &[(usize, Interval)])
| 536 | /// The argument `assignments` associates indices of sought expressions |
| 537 | /// with their corresponding new ranges. |
| 538 | pub fn assign_intervals(&mut self, assignments: &[(usize, Interval)]) { |
| 539 | for (index, interval) in assignments { |
| 540 | let node_index = NodeIndex::from(*index as DefaultIx); |
| 541 | self.graph[node_index].interval = interval.clone(); |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | /// This function fetches ranges of expressions from the DAEG. The argument |
| 546 | /// `assignments` associates indices of sought expressions with their ranges, |