Giter Club home page Giter Club logo

wasp's Introduction

Wasp

Wasp is an ASP solver handling disjunctive logic programs under the stable model semantics. Wasp implements techniques originally introduced for SAT solving combined with optimization methods that have been specifically designed for ASP computation, such as source pointers enhancing unfounded sets computation and efficient techniques for stable model checking.

Wasp takes as input logic programs in the GRINGO format and SAT/MaxSAT formulas in DIMACS format.

Compilation

In order to compile wasp boost (http://www.boost.org/) and g++-4.6 (or more recent) are required.

If all libraries have been installed just type:

make

and pray!

Other compiling options are also available:

  • make BUILD=stats enables the usage of statistics
  • make BUILD=trace enables the possibility to trace the internal behavior of wasp
  • make BUILD=debug compiles wasp for debugging

Usage

In order to use wasp you need a grounder. You can use either GRINGO (http://potassco.sourceforge.net/) or I-DLV (https://github.com/DeMaCS-UNICAL/I-DLV/wiki).

If the grounder has been downloaded just type:

./gringo filename | ./wasp

or

./i-dlv filename | ./wasp

Team

  • Mario Alviano, University of Calabria
  • Carmine Dodaro, University of Calabria (main developer)
  • Francesco Ricca, University of Calabria

For any doubt or suggestion feel free to contact us at [email protected].

wasp's People

Contributors

alviano avatar dodaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wasp's Issues

Aging

void
BerkminHeuristic::onLearning()
{
numberOfConflicts++;
//TODO: Implement aging.
}

Compute **anytime** cautious reasoning

I am using wasp to compute cautious reasoning.
What is the command to compute anytime cautious reasoning using wasp? Is it enough to use the params --minimization-cautious-enum or --minimization-cautious with ./wasp command?

Thanks in advance.

Cant get WASP to work with a grounder

Hi,

When I try to use WASP with a grounder (gringo or idlv) it does not seem to work. It says that the output provided by the grounders is "unsupported rule type". I hope someone could help me fix this issue.

Sincerely,

Bo

Segfault on newer GCC versions

WASP produces a segfault when compiled with GCC 5.3.1 (on Fedora 23). This has been tested using graph coloring instances from ASPCOMP 2014, but it also fails most of the tests included with WASP.

The bug occurs when WASP is compiled with -O2 and above, but not with -O1. Compiling with -fno-strict-aliasing and -fsanitize=undefined sheds some light on the issue. As far as I understand, the call to memcpy in src/stl/Vector.h:83 is given a null pointer at some point. GCC assumes (in accordance to the standard, see C11 standard §7.1.4), that this function must never be passed a null pointer and optimizes the checks away at high enough optimization levels, eventually resulting in a segfault.

Some research suggests that the bug might occur with any GCC version > 4.9. See the porting guide for 4.9, in particular the section "Null pointer checks may be optimized away more aggressively". Indeed, the code does work on GCC 4.8.4.

I've attached an instance from ASPCOMP 2014 which produces the error for me.

graphcol.txt

Berkmin with cache

There is a new class BerkminHeuristicWithCache. Can you introduce a command.line option and run the experiment?

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.