Skip to content

State escape with fizz_buzz #322

Description

@Ninja3047

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 [1284324+Ninja3047@users.noreply.github.com]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions