Class LeftShiftExpressionSolver
java.lang.Object
ghidra.app.plugin.assembler.sleigh.expr.AbstractExpressionSolver<LeftShiftExpression>
ghidra.app.plugin.assembler.sleigh.expr.AbstractBinaryExpressionSolver<LeftShiftExpression>
ghidra.app.plugin.assembler.sleigh.expr.LeftShiftExpressionSolver
Solves expressions of the form
A << 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 rval, MaskedLong goal) Compute the left-hand-side value given that the result and the right are knowncomputeRight
(MaskedLong lval, MaskedLong goal) Compute the right-hand-side value given that the result and the left are knownprotected AssemblyResolution
solveTwoSided
(AbstractAssemblyResolutionFactory<?, ?> factory, LeftShiftExpression exp, MaskedLong goal, Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) Methods inherited from class ghidra.app.plugin.assembler.sleigh.expr.AbstractBinaryExpressionSolver
getInstructionLength, getValue, solve, solveLeftSide, solveRightSide, valueForResolution
Methods inherited from class ghidra.app.plugin.assembler.sleigh.expr.AbstractExpressionSolver
register
-
Constructor Details
-
LeftShiftExpressionSolver
public LeftShiftExpressionSolver()
-
-
Method Details
-
compute
Description copied from class:AbstractBinaryExpressionSolver
Compute the result of applying the operator to the two given values- Specified by:
compute
in classAbstractBinaryExpressionSolver<LeftShiftExpression>
- Parameters:
lval
- the left-hand-side valuerval
- the right-hand-side value- Returns:
- the result
-
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<LeftShiftExpression>
- Parameters:
rval
- the right-hand-side valuegoal
- the result- Returns:
- the left-hand-side value solution
- Throws:
SolverException
- if the expression cannot be solved
-
computeRight
Description copied from class:AbstractBinaryExpressionSolver
Compute the right-hand-side value given that the result and the left are knownNOTE: Assumes commutativity by default
- Overrides:
computeRight
in classAbstractBinaryExpressionSolver<LeftShiftExpression>
- Parameters:
lval
- the left-hand-side valuegoal
- the result- Returns:
- the right-hand-side value solution
- Throws:
SolverException
- if the expression cannot be solved
-
solveTwoSided
protected AssemblyResolution solveTwoSided(AbstractAssemblyResolutionFactory<?, ?> factory, LeftShiftExpression exp, MaskedLong goal, Map<String, throws NeedsBackfillException, SolverExceptionLong> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) - Overrides:
solveTwoSided
in classAbstractBinaryExpressionSolver<LeftShiftExpression>
- Throws:
NeedsBackfillException
SolverException
-