arybo icon indicating copy to clipboard operation
arybo copied to clipboard

tritonast2arybo: unsupported node type 79 (BVSMOD)

Open dvcrn opened this issue 5 years ago • 1 comments

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?

dvcrn avatar Jul 21 '20 02:07 dvcrn

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

dvcrn avatar Jul 22 '20 01:07 dvcrn