- for (auto const& elm : dp_objs_) {
- total += elm.second - elm.first->get_remaining();
- dp_objs_[elm.first] = elm.first->get_remaining();
+ for (auto const& [exec, flops] : dp_objs_) {
+ total += flops - exec->get_remaining();
+ dp_objs_[exec] = exec->get_remaining();