mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
fix for ZAM printing of instructions that modify slots other than slot 1
This commit is contained in:
parent
54877e9dec
commit
ce6d77e2ce
2 changed files with 57 additions and 56 deletions
|
@ -92,6 +92,14 @@ public:
|
|||
// a loop iteration, false otherwise.
|
||||
bool IsLoopIterationAdvancement() const;
|
||||
|
||||
// True if the given instruction assigns to the frame location
|
||||
// given by slot 1 (v1).
|
||||
bool AssignsToSlot1() const;
|
||||
|
||||
// True if the given instruction assigns to the frame location
|
||||
// corresponding to the given slot.
|
||||
bool AssignsToSlot(int slot) const;
|
||||
|
||||
// Returns a string describing the constant.
|
||||
std::string ConstDump() const;
|
||||
|
||||
|
@ -219,14 +227,6 @@ public:
|
|||
// should not be pruned even if it has a dead assignment.
|
||||
bool HasSideEffects() const;
|
||||
|
||||
// True if the given instruction assigns to the frame location
|
||||
// given by slot 1 (v1).
|
||||
bool AssignsToSlot1() const;
|
||||
|
||||
// True if the given instruction assigns to the frame location
|
||||
// corresponding to the given slot.
|
||||
bool AssignsToSlot(int slot) const;
|
||||
|
||||
// True if the given instruction uses the value in the given frame
|
||||
// slot. (Assigning to the slot does not constitute using the value.)
|
||||
bool UsesSlot(int slot) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue