Class XorExpressionSolver
java.lang.Object
ghidra.app.plugin.assembler.sleigh.expr.AbstractExpressionSolver<XorExpression>
ghidra.app.plugin.assembler.sleigh.expr.AbstractBinaryExpressionSolver<XorExpression>
ghidra.app.plugin.assembler.sleigh.expr.XorExpressionSolver
Solves expressions of the form
A $xor B
-
Field Summary
Fields inherited from class ghidra.app.plugin.assembler.sleigh.expr.AbstractExpressionSolver
dbg, solver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(MaskedLong lval, MaskedLong rval) Compute the result of applying the operator to the two given valuescomputeLeft
(MaskedLong other, MaskedLong goal) Compute the left-hand-side value given that the result and the right are knownMethods inherited from class ghidra.app.plugin.assembler.sleigh.expr.AbstractBinaryExpressionSolver
computeRight, getInstructionLength, getValue, solve, solveLeftSide, solveRightSide, solveTwoSided, valueForResolution
Methods inherited from class ghidra.app.plugin.assembler.sleigh.expr.AbstractExpressionSolver
register
-
Constructor Details
-
XorExpressionSolver
public XorExpressionSolver()
-
-
Method Details
-
computeLeft
Description copied from class:AbstractBinaryExpressionSolver
Compute the left-hand-side value given that the result and the right are known- Specified by:
computeLeft
in classAbstractBinaryExpressionSolver<XorExpression>
- Parameters:
other
- the right-hand-side valuegoal
- the result- Returns:
- the left-hand-side value solution
-
compute
Description copied from class:AbstractBinaryExpressionSolver
Compute the result of applying the operator to the two given values- Specified by:
compute
in classAbstractBinaryExpressionSolver<XorExpression>
- Parameters:
lval
- the left-hand-side valuerval
- the right-hand-side value- Returns:
- the result
-