Giter Site home page Giter Site logo

ksmt's Introduction

KSMT

Kotlin API for various SMT solvers.

KSMT: build JitPack

Getting started

Install via JitPack and Gradle.

// JitPack repository
repositories {
    maven { url = uri("https://jitpack.io") }
}

// core 
implementation("com.github.UnitTestBot.ksmt:ksmt-core:0.2.1")
// z3 solver
implementation("com.github.UnitTestBot.ksmt:ksmt-z3:0.2.1")

Usage

Check out our Getting started guide and the example project. Also, check out the Java examples.

Features

Currently, KSMT supports the following SMT solvers:

SMT Solver Linux-x64 Windows-x64 MacOS-x64
Z3 ✔️ ✔️ ✔️
Bitwuzla ✔️ ✔️

KSMT can express formulas in the following theories:

Theory Z3 Bitwuzla
Bitvectors ✔️ ✔️
Arrays ✔️ ✔️
IEEE Floats ✔️ ✔️
Uninterpreted Functions ✔️ ✔️
Arithmetic ✔️

Check out our roadmap for detailed description of features and future plans.

Why KSMT?

Kotlin based DSL for SMT formulas

KSMT provides simple and concise DSL for expressions.

val array by mkArraySort(intSort, intSort)
val index by intSort
val value by intSort

val expr = (array.select(index - 1.intExpr) lt value) and
        (array.select(index + 1.intExpr) gt value)

Check out our example project for more complicated examples.

Solver agnostic SMT formula representation

KSMT provides a solver-independent formula representation with back and forth transformations to the solver's native representation. Such representation allows introspection of formulas and transformation of formulas independent of the solver.

Process based solver runner

KSMT provides a high-performant API for running SMT solvers in separate processes. This feature is important for implementing hard timeouts and solving using multiple solvers in portfolio mode.

ksmt's People

Contributors

saloed avatar korifey avatar caelmbleidd avatar olganaumenko 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.