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

ADT Type Confusion #253

Open
FedericoAureliano opened this issue Jul 4, 2024 · 0 comments
Open

ADT Type Confusion #253

FedericoAureliano opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FedericoAureliano
Copy link
Contributor

Query generation fails in certain cases with multiple ADTs. The following is an example that makes the SMTLIB interface fail with [Assertion Failure]: Unexpected result from SMT solver: (error "line 12 column 38: unknown constant C")

module main {
    datatype adt1 = A() | B();
    datatype adt2 = C() | D();

    var y: adt1;
    var x: adt2;

    init {
        assert y == B();
        assert x == C();
    }


    control {
        bmc(0);
        check;
        print_results;
    }
}

I suspect the bug is also present in the Z3 interface but I haven't been able to trigger it.

@FedericoAureliano FedericoAureliano added the bug Something isn't working label Jul 4, 2024
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