arbrad / ic3ref Goto Github PK
View Code? Open in Web Editor NEWIC3 reference implementation: a short, simple, fairly competitive implementation of IC3. Read it, tune it, extend it, play with it.
License: Other
IC3 reference implementation: a short, simple, fairly competitive implementation of IC3. Read it, tune it, extend it, play with it.
License: Other
IC3 reference implementation: a short, simple, fairly competitive implementation of IC3. Read it, tune it, extend it, play with it. Copyright 2013, Aaron R. Bradley 1. Obtain the latest version of Minisat at https://github.com/niklasso/minisat Unpack it into ic3ref/minisat (so that Solver.h is at ic3ref/minisat/minisat/core/Solver.h). Make. 2. Obtain the AIGER utilities (aiger-1.9.4.tar.gz) at http://fmv.jku.at/aiger/ Unpack it into ic3/aiger (so that aiger.c is at ic3ref/aiger/aiger.c). DO NOT MAKE. 3. At ic3ref, make. 4. Run ./IC3 [<option>|<property ID>]* < <AIGER file> where -v: enables verbose output -s: enables output of runtime statistics -r: randomizes execution to better indicate performance -b: uses basic generalization <property ID>: an integer specifying a property index in the AIGER file, which defaults to 0. If 'B' is non-0, prefers 'B' to 'O' (see AIGER 1.9 format). <AIGER file>: AIGER formatted file with .aig or .aag extension
Issues (1) and (2) are quick to fix, although I'm not currently maintaining the code.
Issues (3) and (4) are somewhat fundamental to the implementation.
Hi, again:) The following `corner-case' file causes IC3 to crash with segfault:
aag 5 2 0 1 3
2
4
7
6 9 11
8 2 4
10 3 5
i0 i
i1 controllable
c
G(i <-> c)
special case -- no latches
realizable
gdb ./IC3
run < eq.aag
Program received signal SIGSEGV, Segmentation fault.
value (p=..., this=) at ./minisat/core/Solver.h:351
351 inline lbool Solver::value (Lit p) const { return assigns[var(p)] ^ sign(p); }
Despite the compilation process succeeding without any issues, running the command ./IC3 with the specified parameters produces nothing. The process must be killed in order to exit. I traced down the bug to this line in aiger.c: aiger_read_header
aiger_next_ch (reader);
if (reader->ch != 'a')
return aiger_error_u (private,
"line %u: expected 'a' as first character",
reader->lineno);
The aiger files being run were the benchmarks that were run in the original IC3 paper. It seems that the aiger files are not being read/parsed properly, despite providing proper ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.