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

Trace visualizer #76

Open
feliperodri opened this issue May 12, 2023 · 1 comment
Open

Trace visualizer #76

feliperodri opened this issue May 12, 2023 · 1 comment
Labels
feature request Any request for new features

Comments

@feliperodri
Copy link
Contributor

I'd love to have a way to see the trace (values for each variable) and walk it through step by step as I debug a proof. This would also help me to check coverage of a proof by telling me which branches I take or not.

@feliperodri
Copy link
Contributor Author

Ideally, I’d like to see the value (from the counterexample) of a set of variables in a given context in the program.

So let’s say that I’m debugging the following program.

fn gcd(x: u64, y: u64) -> u64 {
    let mut x = x;
    let mut y = y;
    while y != 0 {
        let t = y;
        y = x % y;
        x = t;
    }
    x
}

fn foo(x: u64, y: u64, z: u64) {
    let coin : bool = kani::any();
    if coin {
        z = gcd(x,y);
    }
    assert!(!(gcd == 0) || (x == 0 && y == 0));
}

I want to see the value of t and x and y in every loop iteration without the noise of any out of context information (without the information of x and y outside the loop context.

@feliperodri feliperodri added the feature request Any request for new features label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Any request for new features
Projects
None yet
Development

No branches or pull requests

1 participant