Yannakakis
An algorithm to construct an adaptive distinguishing sequence for a mealy machine. If it does not exist, a partial sequence will be generated, which is still useful for generating a seperating set (in the sense of Lee and Yannakakis). The partial leaves will be augmented via ordinary seperating sequences. In effect, the resulting test method is an instantiation of the HSI- method, which tends towards the DS-method.
Most of the algorithms are found in the directory lib/
and their usage is best
illustrated in src/main.cpp
or src/methods.cpp
.
Currently states and inputs are encoded internally as integer values (because
this enables fast indexing). Only for I/O, maps are used to translate between
integers and strings. To reduce the memory footprint uint16_t
s are used, as
the range is big enough for our use cases (uint8_t
is clearly too small for
the number of states, but could be used for alphabets).
Building
There are two dependencies: docopt.cpp (for handling program options) and boost (for an optional type and string manipulations). The first dependency is a git submodule and can be obtained with:
git submodule update --init
Assuming boost is installed on your system, we can build the tool with cmake:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
Note that you'll need c++14, but clang in Mac
OSX will understand that (and if not, you'll have to update Xcode). The main
sourcefile (src/main.cpp
) can also be built with c++11 (this is tested on some
commits on both Windows and linux).
Java
For now the java code, which acts as a bridge between LearnLib and this c++ tool, is included here. But it should earn its own repo at some point. Also, my javanese is a bit rusty...
License
See LICENSE