ZAM fixes for "for" loops that are only used to choose an element from a table/set

This commit is contained in:
Vern Paxson 2024-01-10 18:42:36 -08:00 committed by Arne Welzel
parent d1dffd3e1b
commit 6660738b7d
3 changed files with 30 additions and 9 deletions

View file

@ -88,6 +88,10 @@ public:
// Returns nil if this instruction doesn't have an associated constant.
ValPtr ConstVal() const;
// Returns true if this instruction represents a form of advancing
// a loop iteration, false otherwise.
bool IsLoopIterationAdvancement() const;
// Returns a string describing the constant.
std::string ConstDump() const;