diff options
Diffstat (limited to 'scripts/bmc3.sh')
-rw-r--r-- | scripts/bmc3.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/bmc3.sh b/scripts/bmc3.sh new file mode 100644 index 00000000..bba01e20 --- /dev/null +++ b/scripts/bmc3.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +abc_root() +{ + cwd="$(pwd)" + cd $(dirname "$1") + echo $(dirname "$(pwd)") + cd "${cwd}" +} + +abc_dir=$(abc_root "$0") +bin_dir="${abc_dir}"/bin +aig_file="$1" + +exec "${bin_dir}"/abc -c "/rf ${aig_file} ; /pushredirect ; /pushdtemp ; bmc3 ; /popdtemp ; /popredirect ; /print_aiger_result" |