-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
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
Fix handling of inline asm #337
Conversation
See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/8881118286 fizzbuzz.bctypedefs_of_typedefs.bcswitch_loop.bcfunc_cond_zero_arg.bcfcmp.bcconflicting_names.bcstruct.bcissue_183_literal_structs.bczeroinit.bcissue_127_uint128_t_lit.bcstruct_swap.bcglobal_using_function_decl.bcissue_333_inline_asm.bcinit_list.bcret0.bcgoto_loop.bctrunc.bcbitops.bccast.bcnullptr.bcnested_struct.bcarray_swap.bcbinops.bcbitmask.bcloop.bcfloat.bcreg_test_structure_fields.bcvectors.bcfuncptr.bcinttoptr.bcshort.bcissue_4.bcconflicting_global.bcissue_123_uint128_t.bcfizzbuzz_stateful.bcissue_94_strncmp.bcbool.bczext.bcbyval_struct.bcnested_while.bc--- /dev/fd/63 2024-04-29 15:23:44.076364505 +0000
+++ /dev/fd/62 2024-04-29 15:23:44.076364505 +0000
@@ -25,7 +25,7 @@
printf("loop2 x: %d\n", var1);
}
}
- if (((int)var1 >= 20 || (int)var1 <= 10) && (int)var1 >= 20) {
+ if ((int)var1 >= 20 && ((int)var1 >= 20 || (int)var1 <= 10)) {
return var0;
}
} func_cond_two_arg.bcassert.bcswitch.bcbranch.bctemplate_parameter_pack.bcbyval_tail_nogep.llbyval_tail_gep.ll |
See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/8881264011 fizzbuzz.bctypedefs_of_typedefs.bcswitch_loop.bcfunc_cond_zero_arg.bcfcmp.bcconflicting_names.bcstruct.bcissue_183_literal_structs.bczeroinit.bcissue_127_uint128_t_lit.bcstruct_swap.bcglobal_using_function_decl.bcissue_333_inline_asm.bc--- /dev/fd/63 2024-04-29 15:34:11.396253906 +0000
+++ /dev/fd/62 2024-04-29 15:34:11.396253906 +0000
@@ -0,0 +1,8 @@
+void a(void *arg0);
+void asm_1(void);
+void a(void *arg0) {
+ void *var0;
+ var0 = arg0;
+ asm_1();
+ return;
+} init_list.bcret0.bcgoto_loop.bctrunc.bcbitops.bccast.bcnullptr.bcnested_struct.bcarray_swap.bcbinops.bcbitmask.bcloop.bcfloat.bcreg_test_structure_fields.bcvectors.bcfuncptr.bcinttoptr.bcshort.bcissue_4.bcconflicting_global.bcissue_123_uint128_t.bcfizzbuzz_stateful.bcissue_94_strncmp.bcbool.bczext.bcbyval_struct.bcnested_while.bc--- /dev/fd/63 2024-04-29 15:34:14.180250355 +0000
+++ /dev/fd/62 2024-04-29 15:34:14.180250355 +0000
@@ -25,7 +25,7 @@
printf("loop2 x: %d\n", var1);
}
}
- if (((int)var1 >= 20 || (int)var1 <= 10) && (int)var1 >= 20) {
+ if ((int)var1 >= 20 && ((int)var1 >= 20 || (int)var1 <= 10)) {
return var0;
}
} func_cond_two_arg.bcassert.bcswitch.bcbranch.bctemplate_parameter_pack.bcbyval_tail_nogep.llbyval_tail_gep.ll |
See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/8881448413 fizzbuzz.bctypedefs_of_typedefs.bcswitch_loop.bcfunc_cond_zero_arg.bcfcmp.bcconflicting_names.bcstruct.bcissue_183_literal_structs.bczeroinit.bcissue_127_uint128_t_lit.bcstruct_swap.bcglobal_using_function_decl.bcissue_333_inline_asm.bc--- /dev/fd/63 2024-04-29 15:51:29.504490014 +0000
+++ /dev/fd/62 2024-04-29 15:51:29.504490014 +0000
@@ -0,0 +1,10 @@
+int main(int arg0, char **arg1);
+void asm_1(void);
+int main(int arg0, char **arg1) {
+ unsigned int var0;
+ void *var1;
+ var0 = arg0;
+ var1 = arg1;
+ asm_1();
+ return 0U;
+} init_list.bcret0.bcgoto_loop.bctrunc.bcbitops.bccast.bcnullptr.bcnested_struct.bcarray_swap.bcbinops.bcbitmask.bcloop.bcfloat.bcreg_test_structure_fields.bcvectors.bcfuncptr.bcinttoptr.bcshort.bcissue_4.bcconflicting_global.bcissue_123_uint128_t.bcfizzbuzz_stateful.bcissue_94_strncmp.bcbool.bczext.bcbyval_struct.bcnested_while.bc--- /dev/fd/63 2024-04-29 15:51:32.284467234 +0000
+++ /dev/fd/62 2024-04-29 15:51:32.284467234 +0000
@@ -25,7 +25,7 @@
printf("loop2 x: %d\n", var1);
}
}
- if ((int)var1 >= 20 && ((int)var1 >= 20 || (int)var1 <= 10)) {
+ if (((int)var1 >= 20 || (int)var1 <= 10) && (int)var1 >= 20) {
return var0;
}
} func_cond_two_arg.bcassert.bcswitch.bcbranch.bctemplate_parameter_pack.bcbyval_tail_nogep.llbyval_tail_gep.ll |
See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/8881657190 fizzbuzz.bctypedefs_of_typedefs.bcswitch_loop.bcfunc_cond_zero_arg.bcfcmp.bcconflicting_names.bcstruct.bcissue_183_literal_structs.bczeroinit.bcissue_127_uint128_t_lit.bcstruct_swap.bcglobal_using_function_decl.bcinit_list.bcret0.bcgoto_loop.bctrunc.bcbitops.bccast.bcnullptr.bcnested_struct.bcarray_swap.bcbinops.bcbitmask.bcloop.bcfloat.bcreg_test_structure_fields.bcvectors.bcfuncptr.bcinttoptr.bcshort.bcissue_4.bcconflicting_global.bcissue_123_uint128_t.bcfizzbuzz_stateful.bcissue_94_strncmp.bcbool.bczext.bcbyval_struct.bcnested_while.bc--- /dev/fd/63 2024-04-29 16:03:03.255740562 +0000
+++ /dev/fd/62 2024-04-29 16:03:03.255740562 +0000
@@ -25,7 +25,7 @@
printf("loop2 x: %d\n", var1);
}
}
- if ((int)var1 >= 20 && ((int)var1 >= 20 || (int)var1 <= 10)) {
+ if (((int)var1 >= 20 || (int)var1 <= 10) && (int)var1 >= 20) {
return var0;
}
} func_cond_two_arg.bcassert.bcswitch.bcbranch.bctemplate_parameter_pack.bcbyval_tail_nogep.llbyval_tail_gep.llissue_335_z3_ite.ll |
No description provided.