Git Product home page Git Product logo

kino's Introduction

Kinō (帰納: induction, recursion) is an SMT-based, k-induction engine for transition systems.

NB: kino is not maintained anymore for now, for lack of time. If you are interested in this project please open an issue or contact me directly.

Code status

Build Status

  • builds: debug, release
  • platforms: linux, osx, windows
  • tests: none

About

kino is a re-implementation from scratch, in Rust, of the core verification engine of Kind 2 model-checker. Unlike Kind 2 however, kino does not read Lustre files: it deals with system expressed in the VMT-LIB standard (to be published).

Solvers

supported:

  • z3 -- 4.4.2+, not guaranteed to work for older versions

future:

  • CVC4

Techniques

implemented:

  • Bounded Model Checking (bmc)
  • K-induction (kind)
  • 2-induction (twind)
  • template-based invariant generation (tig)
    • one-state candidates only
    • bool candidates only
  • invariant pruner (pruner)

future:

  • invariant generation
    • two-state candidates
    • arith candidates

Build and run

To run kinō you need a SMT solver installed and in your path. For now, only Z3 is supported. It must be in your path with command z3, although you can tell kinō to use your own using the CLAs.

Building running etc. follows the standard cargo workflow. A few example systems can be found in rsc/simple/ and rsc/from_kind. For instance

> cargo run rsc/simple/modular_four.vmt

(This will run kinō in debug mode, which is extremely slower than in release because of all the runtime checks performed in debug.)

Tests

(Almost) all systems in rsc are associated with a test in tests/. However currently cargo behaves oddly with kinō, and is very much non-deterministic. This seems to come from the heavy use of parallelism in kinō.

NB

As of right now kino is not deterministic. This is due to the hashing algorithm (sip) which is the only stable one in Rust right now. The hashconsing crate relies on this algorithm to hashcons symbols, terms, etc. and this algorithm is not deterministic.

As a result, terms (in particular properties) may not be printed in the same order whenever printing is done by iterating over a set / hash map. This causes a very slightly different problem to be given to the solver, which might cause the solver to return different models. (This is known to happen for z3.)

License

Copyright 2016 Adrien Champion. See the COPYRIGHT file at the top-level directory of this distribution.

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.

kino's People

Contributors

adrienchampion avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.