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

Method AppendDefaultSplitExpr

lang/rust/pseudorust.cpp:560–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558
559
560void PseudoRustFunction::AppendDefaultSplitExpr(const BinaryNinja::HighLevelILInstruction& instr,
561 BinaryNinja::HighLevelILTokenEmitter& tokens, DisassemblySettings* settings, BNOperatorPrecedence precedence)
562{
563 const auto high = instr.GetHighExpr<HLIL_SPLIT>();
564 const auto low = instr.GetLowExpr<HLIL_SPLIT>();
565 if (precedence == EqualityOperatorPrecedence)
566 tokens.AppendOpenParen();
567 tokens.AppendOpenParen();
568 GetExprText(high, tokens, settings, precedence);
569 tokens.Append(OperationToken, " << ");
570 tokens.Append(IntegerToken, std::to_string(low.size * 8));
571 tokens.AppendCloseParen();
572 tokens.Append(OperationToken, " | ");
573 GetExprText(low, tokens, settings, precedence);
574 if (precedence == EqualityOperatorPrecedence)
575 tokens.AppendCloseParen();
576}
577
578
579bool PseudoRustFunction::IsMutable(const Variable& var) const

Callers

nothing calls this directly

Calls 3

AppendOpenParenMethod · 0.80
AppendCloseParenMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected