Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump aiger version and support arbitrary initialization functions in btor2aiger #20

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions setup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ rm -rf deps
mkdir -p deps

# Setup AIGER
rm -rf aiger-1.9.4.tar.gz
wget http://fmv.jku.at/aiger/aiger-1.9.4.tar.gz
tar xf aiger-1.9.4.tar.gz
mv aiger-1.9.4 deps/aiger
rm -rf aiger-1.9.18.tar.gz
wget https://github.com/arminbiere/aiger/archive/refs/tags/rel-1.9.18.tar.gz
tar xf rel-1.9.18.tar.gz
mv aiger-rel-1.9.18 deps/aiger


# Setup Boolector
Expand Down
8 changes: 1 addition & 7 deletions src/btor2aiger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,16 +414,10 @@ add_state_to_aiger (Btor *btor,

for (size_t i = 0; i < nbits; ++i)
{
if (init_bits && init_bits[i] != 0 && init_bits[i] != 1)
{
/* Note: BTOR2 supports arbitrary initialization functions, but AIGER
* only supports 0/1/undefined. */
die ("Found non-constant initialization");
}
sym = boolector_aig_get_symbol (amgr, state_bits[i]);
if (next_bits)
{
reset_val = init_bits ? init_bits[i] : state_bits[i];
reset_val = init_bits && init_bits[i] <= 1 ? init_bits[i] : state_bits[i];
aiger_add_latch (aig, state_bits[i], next_bits[i], sym);
aiger_add_reset (aig, state_bits[i], reset_val);
}
Expand Down
Loading