Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <time.h>
- #include <stdlib.h>
- int bar1(int a) {
- srand(time(NULL));
- return rand();
- }
- int bar2(int a) {
- srand(time(NULL));
- return rand();
- }
- void foo() {
- int a = 5;
- switch (bar1(a)) {
- case 1:
- bar1(a);
- break;
- case 2:
- bar2(a);
- break;
- }
- bar1(a);
- }
- int main() {
- }
- #include <time.h>
- #include <stdlib.h>
- int bar1(int a) {
- srand(time(NULL));
- return rand();
- }
- int bar2(int a) {
- srand(time(NULL));
- return rand();
- }
- void foo() {
- int a = 5;
- switch (bar1(a)) {
- case 1:
- bar1(a);
- break;
- case 2:
- bar2(a);
- break;
- }
- bar1(a);
- }
- int main() {
- }
- //./bin/parry foo some.c 23:store-26:store,20:load-26:load arm --output compiled.c --ccflags -D__arm__
- #include <time.h>
- #include <stdlib.h>
- int bar1(int a) {
- srand(time(NULL));
- return rand();
- }
- int bar2(int a) {
- srand(time(NULL));
- return rand();
- }
- void foo() {
- int a = 5;
- switch (bar1(a)) {
- case 1:
- bar1(a);
- __asm__ __volatile__ ("DMB" ::: "memory");
- break;
- case 2:
- bar2(a);
- __asm__ __volatile__ ("DMB ST" ::: "memory");
- break;
- }
- bar1(a);
- }
- int main() {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement