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

Method AppendComparison

lang/c/pseudoc.cpp:231–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231void PseudoCFunction::AppendComparison(const string& comparison, const HighLevelILInstruction& instr,
232 HighLevelILTokenEmitter& emitter, DisassemblySettings* settings, BNOperatorPrecedence precedence,
233 std::optional<bool> signedHint)
234{
235 const auto leftExpr = instr.GetLeftExpr();
236 const auto rightExpr = instr.GetRightExpr();
237
238 if (leftExpr.operation == HLIL_SPLIT)
239 AppendDefaultSplitExpr(leftExpr, emitter, settings, precedence);
240 else
241 GetExprTextInternal(leftExpr, emitter, settings, precedence, false, signedHint);
242 emitter.Append(OperationToken, comparison);
243 if (rightExpr.operation == HLIL_SPLIT)
244 AppendDefaultSplitExpr(rightExpr, emitter, settings, precedence);
245 else
246 GetExprTextInternal(rightExpr, emitter, settings, precedence, false, signedHint);
247}
248
249
250void PseudoCFunction::AppendTwoOperand(const string& operand, const HighLevelILInstruction& instr,

Callers

nothing calls this directly

Calls 3

GetLeftExprMethod · 0.45
GetRightExprMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected