Giter Club home page Giter Club logo

bill's People

Contributors

b1f6c1c4 avatar hriener avatar lee30sonia avatar marcelwa avatar msoeken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bill's Issues

Problem with solve after solve and single-literal assumptions

The following test case does not fail:

bill/tests/sat/sat.cpp

Lines 163 to 178 in e0b12ec

TEMPLATE_TEST_CASE("Solve after solve, no problem", "[sat][template]", SOLVER_TYPES)
{
TestType solver;
const auto zero = bill::lit_type{solver.add_variable()};
const auto a = bill::lit_type{solver.add_variable()};
const auto b = bill::lit_type{solver.add_variable()};
const auto f = bill::lit_type{solver.add_variable()};
solver.add_clause({~zero});
solver.add_clause({~a, b, f});
solver.add_clause({a, ~b, f});
solver.add_clause({a, b, ~f});
solver.add_clause({~a, ~b, ~f});
CHECK(solver.solve({zero}) == bill::result::states::unsatisfiable);
}

The following test case fails in the second check for glucose_41, ghack, and maple solvers:

bill/tests/sat/sat.cpp

Lines 180 to 196 in e0b12ec

TEMPLATE_TEST_CASE("Double assumptions, solve after solve", "[sat][template]", SOLVER_TYPES)
{
TestType solver;
const auto zero = bill::lit_type{solver.add_variable()};
const auto a = bill::lit_type{solver.add_variable()};
const auto b = bill::lit_type{solver.add_variable()};
const auto f = bill::lit_type{solver.add_variable()};
solver.add_clause({~zero});
solver.add_clause({~a, b, f});
solver.add_clause({a, ~b, f});
solver.add_clause({a, b, ~f});
solver.add_clause({~a, ~b, ~f});
CHECK(solver.solve({f}) == bill::result::states::satisfiable);
CHECK(solver.solve({zero}) == bill::result::states::unsatisfiable);
}

Bug was discovered by @lee30sonia in lsils/mockturtle#303.

Test case is in branch msoeken/bug

Incompatibility with Alpine Linux

Hi,

I started deploying my software, which uses the EPFL Logic Synthesis Libraries, via Docker. I want to use Alpine Linux for image size reasons. As its standard C library, Alpine Linux uses musl libc instead of glibc and, therefore, does not include certain headers that glibc provides. One of which is fpu_control.h that is used in the ghack SAT solver here.

Its include is guarded by an #if defined(__linux__), but should probably be #if defined(__GLIBC__) from features.h. I don't know whether that would break anything though.

I'm not using bill directly but since it's included in mockturtle, it is affecting me.

Thank you for your help!
-- Marcel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.