arybo
arybo copied to clipboard
tritonast2arybo: unsupported node type 79 (BVSMOD)
Trying to go from Triton AST to LLVM IR by running some examples but getting unsupported node type 79 for BVSMOD
Is it possible to support this in arybo or is there a workaround?
I copied some code from TritonASTLLVMIRTranslator to arybo to hotfix-fix this:
def glue_for_bvsmod(lhs, rhs):
srem = lhs.srem(rhs)
add = srem.__add__(rhs)
return add.srem(rhs)
I wanted to submit a PR but the testsuite for the triton part is very outdated so bumping it to work with the most recent Triton takes a bit more time