We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Fix #763: Allow users to set alias on a symbolic variable
f53608d
>>> from triton import * >>> ctx = TritonContext() >>> ctx.setArchitecture(ARCH.X86_64) >>> var = ctx.convertRegisterToSymbolicVariable(ctx.registers.rax) >>> var.setAlias("rax") # set alias >>> inst = Instruction("\x48\x31\xd8") # xor rax, rbx >>> ctx.processing(inst) True >>> rax_ast = ctx.unrollAst(ctx.getRegisterAst(ctx.registers.rax)) >>> print rax_ast (bvxor rax (_ bv0 64)) >>> model = ctx.getModel(rax_ast == 0x41) >>> print model {0L: rax:64 = 0x41} >>> var.setAlias("") # reset alias >>> print rax_ast (bvxor SymVar_0 (_ bv0 64)) >>> print model {0L: SymVar_0:64 = 0x41}
Sorry, something went wrong.
JonathanSalwan
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: