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

Method AppendDefaultSplitExpr

lang/c/pseudoc.cpp:445–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443
444
445void PseudoCFunction::AppendDefaultSplitExpr(const BinaryNinja::HighLevelILInstruction& instr,
446 BinaryNinja::HighLevelILTokenEmitter& tokens, DisassemblySettings* settings, BNOperatorPrecedence precedence)
447{
448 const auto high = instr.GetHighExpr<HLIL_SPLIT>();
449 const auto low = instr.GetLowExpr<HLIL_SPLIT>();
450 if (precedence == EqualityOperatorPrecedence)
451 tokens.AppendOpenParen();
452 tokens.AppendOpenParen();
453 GetExprTextInternal(high, tokens, settings, precedence);
454 tokens.Append(OperationToken, " << ");
455 tokens.Append(IntegerToken, std::to_string(low.size * 8));
456 tokens.AppendCloseParen();
457 tokens.Append(OperationToken, " | ");
458 GetExprTextInternal(low, tokens, settings, precedence);
459 if (precedence == EqualityOperatorPrecedence)
460 tokens.AppendCloseParen();
461}
462
463
464void PseudoCFunction::AppendFieldTextTokens(const HighLevelILInstruction& var, uint64_t offset,

Callers

nothing calls this directly

Calls 3

AppendOpenParenMethod · 0.80
AppendCloseParenMethod · 0.80
AppendMethod · 0.45

Tested by

no test coverage detected