ahamez / caesar.sdd Goto Github PK
View Code? Open in Web Editor NEWAn implementation of caesar.bdd using SDD
License: BSD 2-Clause "Simplified" License
An implementation of caesar.bdd using SDD
License: BSD 2-Clause "Simplified" License
After doing:
mkdir -p caesar.sdd/_build
cd caesar.sdd/_build
cmake ..
i get:
$ make install
make: *** No rule to make target `install'. Stop.
When using the NUPN file available here: BuggyConcUnits.nupn.gz, caesar.sdd --concurrent-units
aborts and gives this error:
caesar.sdd: [...]/caesar.sdd/src/mc/units/concurrent_units.cc:70: pnmc::mc::units::{anonymous}::query_visitor::result_type pnmc::mc::units::{anonymous}::query_visitor::operator()(const sdd::one_terminalpnmc::mc::units::sdd_conf&, const order&, InputIterator, InputIterator, bool, bool) const [with InputIterator = __gnu_cxx::__normal_iterator<const unsigned int*, std::vector >; pnmc::mc::units::{anonymous}::query_visitor::result_type = pnmc::mc::units::{anonymous}::active; pnmc::mc::units::order = sdd::orderpnmc::mc::units::sdd_conf]: Assertion `false && "|1|"' failed.
Aborted
This bug is only triggered by the --concurrent-units
option and happen during the exploration of the SDD.
Before the crash, the following output is provided:
0
00
0
The first call of the query
method goes wrong, with units (i, j) = (2, 1)
.
The default SDD order is:
0 (3)
3 (2)
2 (1)
1 (0)
With cmake
(version 3.9.5), i get the following warning:
$ cmake ..
-- The C compiler identification is AppleClang 9.0.0.9000038
-- The CXX compiler identification is AppleClang 9.0.0.9000038
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- program_options
-- coroutine
-- context
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Boost Include: /usr/local/include
-- Boost Libraries: /usr/local/lib
-- Configuring done
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
Found relative path while evaluating include directories of "caesar.sdd":
"OFF"
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
Found relative path while evaluating include directories of "caesar.sdd":
"OFF"
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in src/CMakeLists.txt:
Policy CMP0021 is not set: Fatal error on relative paths in
INCLUDE_DIRECTORIES target property. Run "cmake --help-policy CMP0021" for
policy details. Use the cmake_policy command to set the policy and
suppress this warning.
Found relative path while evaluating include directories of "caesar.sdd":
"OFF"
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/alinard/Temporary/caesar.sdd/_build
When compiling in alpine
with the gcc
compiler, or under macos with clang
, i get the following error:
/caesar.sdd/src/mc/units/worker.cc: In function 'pnmc::mc::units::order pnmc::mc::units::mk_order(const pnmc::conf::pnmc_configuration&, const pnmc::pn::net&)':
/caesar.sdd/src/mc/units/worker.cc:104:18: error: no match for call to '(sdd::force::worker<pnmc::mc::units::sdd_conf>) ()'
return force();
The full docker file is:
FROM alpine
RUN true \
&& apk add --no-cache --virtual .build-deps \
build-base \
boost-dev \
cmake \
git \
&& apk add --no-cache \
bash \
libstdc++ \
&& git clone https://github.com/ahamez/libsdd.git \
&& cd libsdd \
&& cmake . \
&& make \
&& make install \
&& cd .. \
&& rm -rf libsdd \
&& git clone https://github.com/ahamez/caesar.sdd.git \
&& cd caesar.sdd \
&& cmake . \
&& make \
&& make install \
&& cd .. \
&& rm -rf caesar.sdd \
&& apk del .build-deps \
&& true
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.