Skip to content
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

State escape with fizz_buzz #322

Open
Ninja3047 opened this issue Sep 9, 2022 · 0 comments
Open

State escape with fizz_buzz #322

Ninja3047 opened this issue Sep 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Ninja3047
Copy link
Contributor

C source

#include <stdio.h>

int fizz_buzz(int n) {
        for (int i = 0; i < n; i++) {
                if (i % 3 == 0) {
                        printf("Fizz");
                }
                if (i % 5 == 0) {
                        printf("Buzz");
                }
                if (i % 5 != 0 && i % 3 != 0) {
                        printf("%d", i);
                }
                puts("");
        }
        return 0;
}

int main(int argc, char* argv[]) {
        fizz_buzz(100);
        return 0;
}

Lifted LLVM
test-fizzbuzz-elf-x64.ll.txt

Spec
test-fizzbuzz-elf-x64.spec.json.txt

Anvill Version

anvill-decompile-json version unknown
Commit Hash: afa28937c6b85e848525d12b074aa7946a8134d4
Commit Date: 2022-09-02 21:19:27 -0400
Last commit by: Ninja3047 [[email protected]]
@Ninja3047 Ninja3047 added the bug Something isn't working label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant