forked from niklasso/minisat
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from conp-solutions/wip-support
Wip support
- Loading branch information
Showing
12 changed files
with
165 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Check diversity configurations | ||
|
||
on: [push] | ||
|
||
jobs: | ||
Linux: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Install Packages | ||
run: sudo apt-get install zlib1g-dev make cmake picosat | ||
|
||
- uses: actions/checkout@v1 | ||
|
||
- name: run CI script | ||
env: | ||
RUNDIVERSIFY: 1 | ||
RUNFUZZ: 0 | ||
RUNSTAREXEC: 0 | ||
RUNIPASIR: 0 | ||
RUNOPENWBO: 0 | ||
run: ./tools/ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# | ||
# This script runs a set of configurations on a set of randomly generated CNF | ||
# formulas. | ||
|
||
# Formulas to test per iteration | ||
declare -i FORMULA_PER_CONFIG_RELEASE=1500 | ||
|
||
# Current directory | ||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
|
||
cd "$SCRIPT_DIR" | ||
|
||
declare -i overall_status=0 | ||
for RANK in {0..32}; do | ||
echo "" | ||
echo "test rank: $RANK" | ||
echo "../../build/release/bin/mergesat -diversify-rank=$RANK \$1" >check-solver-config.sh | ||
chmod u+x check-solver-config.sh | ||
|
||
status=0 | ||
|
||
# select number of formulas to test based on configuration | ||
FORMULA_PER_CONFIG="$FORMULA_PER_CONFIG_RELEASE" | ||
|
||
./fuzzcheck.sh ./check-solver-config.sh "$FORMULA_PER_CONFIG" || status=$? | ||
if [ "$status" -ne 0 ]; then | ||
echo "configuration failed!" | ||
overall_status=$status | ||
fi | ||
done | ||
|
||
exit $overall_status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# | ||
# Run mergesat with simplification, and emitting a proof. | ||
# The proof is written to the file in the directory specified in the second | ||
# argument, in a file called "proof.out". | ||
|
||
# call solver from the directory where this script is located | ||
SOLVERDIR="$(dirname "${BASH_SOURCE[0]}" )" | ||
|
||
TMPDIR=$2 | ||
if [ -n "${DEFAULT_MERGESAT_TMPDIR:-}" ] | ||
then | ||
TMPDIR=$(readlink -e "${DEFAULT_MERGESAT_TMPDIR:-}") | ||
fi | ||
|
||
# disable formula simplification, produce proofs | ||
"$SOLVERDIR"/mergesat "$1" -no-pre -verb=0 -drup-file="$TMPDIR"/proof.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# | ||
# Run mergesat with simplification, and emitting a proof. | ||
# The proof is written to the file in the directory specified in the second | ||
# argument, in a file called "proof.out". | ||
|
||
# call solver from the directory where this script is located | ||
SOLVERDIR="$(dirname "${BASH_SOURCE[0]}" )" | ||
|
||
TMPDIR=$2 | ||
if [ -n "${DEFAULT_MERGESAT_TMPDIR:-}" ] | ||
then | ||
TMPDIR=$(readlink -e "${DEFAULT_MERGESAT_TMPDIR:-}") | ||
fi | ||
|
||
# call the solver and disabling SLS and rephasing, no proof will be generated | ||
"$SOLVERDIR"/mergesat "$1" -verb=0 -no-use-ccnr -no-use-rephasing -drup-file="$TMPDIR"/proof.out |