-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More generic method improvements, update array offsets for x86_64, ad…
…d support for JA.
- Loading branch information
Sam Byass
committed
Feb 17, 2021
1 parent
01bd398
commit 1d35796
Showing
7 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Cpp2IL.Analysis.ResultModels; | ||
using Iced.Intel; | ||
|
||
namespace Cpp2IL.Analysis.Actions | ||
{ | ||
public class JumpIfGreaterThanAction : ConditionalJumpAction | ||
{ | ||
public JumpIfGreaterThanAction(MethodAnalysis context, Instruction instruction) : base(context, instruction) | ||
{ | ||
//All handled by base class | ||
} | ||
|
||
public override Mono.Cecil.Cil.Instruction[] ToILInstructions() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
protected override string GetPseudocodeCondition() | ||
{ | ||
//Invert condition, so <=, not > | ||
return $"({GetArgumentOnePseudocodeValue()} <= {GetArgumentTwoPseudocodeValue()})"; | ||
} | ||
|
||
protected override string GetTextSummaryCondition() | ||
{ | ||
if (associatedCompare == null) | ||
return "the compare showed that it was greater than"; | ||
|
||
return $"{associatedCompare.ArgumentOne} is greater than {associatedCompare.ArgumentTwo}"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters