| 289 | : root_(nullptr), current_(nullptr), subprogram_map_() {} |
| 290 | |
| 291 | ExecutionPath ProgramBuilder::FlattenMain() { |
| 292 | auto out = FlattenSubexpression(root_); |
| 293 | root_ = nullptr; |
| 294 | return out; |
| 295 | } |
| 296 | |
| 297 | std::vector<ExecutionPath> ProgramBuilder::FlattenSubexpressions() { |
| 298 | std::vector<ExecutionPath> out; |
no outgoing calls