MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / IsMutable

Method IsMutable

lang/rust/pseudorust.cpp:579–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577
578
579bool PseudoRustFunction::IsMutable(const Variable& var) const
580{
581 for (auto i : GetHighLevelILFunction()->GetVariableDefinitions(var))
582 {
583 auto expr = GetHighLevelILFunction()->GetExpr(i);
584 if (expr.operation == HLIL_VAR_DECLARE || expr.operation == HLIL_VAR_INIT)
585 continue;
586 return true;
587 }
588 return GetHighLevelILFunction()->GetAliasedVariables().count(var) != 0;
589}
590
591
592void PseudoRustFunction::GetExprText(const HighLevelILInstruction& instr, HighLevelILTokenEmitter& tokens,

Callers

nothing calls this directly

Calls 4

GetAliasedVariablesMethod · 0.80
GetExprMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected