Skip to content

assume works incorrectly with very negative integer #6

@joonazan

Description

@joonazan
use symex_lib::{any, assume};

fn main() {
    let x: i128 = i128::MIN;
    assume(x < 0);
    assert_eq!(-x.abs(), x);
}

This code produces Encountered an unsatisfiable assumption, ignoring this path, even though the smallest value of i128 is definitely less than zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions