| 528 | } |
| 529 | |
| 530 | static void addVars(ProgramMemory& pm, const ProgramMemory::Map& vars) |
| 531 | { |
| 532 | for (const auto& p:vars) { |
| 533 | const ValueFlow::Value &value = p.second; |
| 534 | pm.setValue(p.first.tok, value); |
| 535 | } |
| 536 | } |
| 537 | |
| 538 | void ProgramMemoryState::addState(const Token* tok, const ProgramMemory::Map& vars) |
| 539 | { |