lifting-bits / rellic

Rellic produces goto-free C output from LLVM bitcode
Apache License 2.0
537 stars 43 forks source link

check for the string arm64 in addition to aarch64 #295

Closed Ninja3047 closed 2 years ago

Ninja3047 commented 2 years ago

m1 macs for some reason use arm64 instead of aarch64 on linux

github-actions[bot] commented 2 years ago

See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/2921207277

### fizzbuzz.bc ```diff --- /dev/fd/63 2022-08-24 18:06:33.782952078 +0000 +++ /dev/fd/62 2022-08-24 18:06:33.786952110 +0000 @@ -11,7 +11,7 @@ var1 = 0U; while ((int)var1 < 30) { - if (!((int)var1 % 3 != 0U || (int)var1 % 5 == 0U) || (int)var1 % 3 != 0U) { + if ((int)var1 % 3 != 0U || !((int)var1 % 5 == 0U || (int)var1 % 3 != 0U)) { if ((int)var1 % 3 != 0U) { if ((int)var1 % 5 != 0U) { printf("%d\n", var1); ``` ### typedefs_of_typedefs.bc ```diff ``` ### switch_loop.bc ```diff ``` ### func_cond_zero_arg.bc ```diff ``` ### fcmp.bc ```diff ``` ### conflicting_names.bc ```diff ``` ### struct.bc ```diff ``` ### issue_183_literal_structs.bc ```diff ``` ### zeroinit.bc ```diff ``` ### issue_127_uint128_t_lit.bc ```diff ``` ### struct_swap.bc ```diff ``` ### init_list.bc ```diff ``` ### ret0.bc ```diff ``` ### bool.bc ```diff ``` ### short.bc ```diff ``` ### cast.bc ```diff ``` ### nullptr.bc ```diff ``` ### nested_struct.bc ```diff ``` ### array_swap.bc ```diff ``` ### binops.bc ```diff ``` ### bitmask.bc ```diff ``` ### loop.bc ```diff ``` ### float.bc ```diff ``` ### reg_test_structure_fields.bc ```diff ``` ### vectors.bc ```diff ``` ### funcptr.bc ```diff ``` ### goto_loop.bc ```diff ``` ### branch.bc ```diff ``` ### bitops.bc ```diff ``` ### trunc.bc ```diff ``` ### inttoptr.bc ```diff ``` ### issue_4.bc ```diff ``` ### issue_123_uint128_t.bc ```diff ``` ### fizzbuzz_stateful.bc ```diff ``` ### issue_94_strncmp.bc ```diff ``` ### global_using_function_decl.bc ```diff ``` ### byval_struct.bc ```diff ``` ### nested_while.bc ```diff ``` ### func_cond_two_arg.bc ```diff ``` ### conflicting_global.bc ```diff ``` ### assert.bc ```diff ``` ### zext.bc ```diff ``` ### switch.bc ```diff ``` ### template_parameter_pack.bc ```diff ``` ### byval_tail_nogep.ll ```diff ``` ### byval_tail_gep.ll ```diff ```