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

Method AppendComparison

lang/rust/pseudorust.cpp:254–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253
254void PseudoRustFunction::AppendComparison(const string& comparison, const HighLevelILInstruction& instr,
255 HighLevelILTokenEmitter& emitter, DisassemblySettings* settings, BNOperatorPrecedence precedence,
256 std::optional<bool> signedHint)
257{
258 const auto leftExpr = instr.GetLeftExpr();
259 const auto rightExpr = instr.GetRightExpr();
260
261 if (leftExpr.operation == HLIL_SPLIT)
262 AppendDefaultSplitExpr(leftExpr, emitter, settings, precedence);
263 else
264 GetExprText(leftExpr, emitter, settings, precedence, InnerExpression, signedHint);
265 emitter.Append(OperationToken, comparison);
266 if (rightExpr.operation == HLIL_SPLIT)
267 AppendDefaultSplitExpr(rightExpr, emitter, settings, precedence);
268 else
269 GetExprText(rightExpr, emitter, settings, precedence, InnerExpression, signedHint);
270}
271
272
273void PseudoRustFunction::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