Giter Site home page Giter Site logo

Comments (9)

arminbiere avatar arminbiere commented on June 30, 2024 1

I am not sure what you are after. A simple shell script could do that.

from kissat.

arminbiere avatar arminbiere commented on June 30, 2024 1

Yes, this is exactly what simple shell scripting would be able to do.
I give two options for solving the 'sqrt...' CNFs in 'test/cnf'.

  1. If you want to run kissat on all the CNFs separately but concat the output:
$ ls test/cnf/sqrt*.cnf|xargs -n 1 kissat

You can do this even say for 8 cores in parallel by adding -P 8 after -n 1.

  1. If on the other hand you want concatenate the CNFs, just filter out the clauses,
    add a dummy header before and tell Kissat to use relaxed parsing:
$ (echo 'p cnf 0 0'; sed -e '/^[chp]/d' test/cnf/sqrt*.cnf)|kissat --relaxed

from kissat.

arminbiere avatar arminbiere commented on June 30, 2024 1

There are ports by others (see also issue #33) and yes I also plan to have ports at one point in the main repro but probably not provide binaries.

from kissat.

DvonHolten avatar DvonHolten commented on June 30, 2024 1

well, the reasons against windows exe-files can be understood.
OTOH, it can be a PITA to setup a c compiler chain just to get some executable. Some people are just interested in running the SAT-solver as a black box. Some projects use makefile, others use cmake.

from kissat.

anhpham197 avatar anhpham197 commented on June 30, 2024

I wanna run multiple files cnf at once time, then I can export the result to a file.

from kissat.

anhpham197 avatar anhpham197 commented on June 30, 2024

Thanks a ton, @arminbiere . It's exactly what I want. Do you plan to implement Kissat on Windows?

from kissat.

anhpham197 avatar anhpham197 commented on June 30, 2024

Hope to see your addition soon. Have a nice weekend, @arminbiere

from kissat.

anhpham197 avatar anhpham197 commented on June 30, 2024

Cuz I'm using Sat4j library supporting Windows, then I've tested some problems by Kissat and found that Kissat is extremely good in terms of both solving time and the number of problems solved. Hence, I wanna find another version of Kissat on Windows to test.

from kissat.

gsgs2 avatar gsgs2 commented on June 30, 2024

I agree that this would be useful. I.e. for benchmark-sets.

I'm copying all the files into one file,
I wrote a program to read that big file
and extract one instance after the other,
to file kk
then call
system(" ./kissat -q kk >> ll");
and postprocess ll

from kissat.

Related Issues (20)

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.