GithubHelp home page GithubHelp logo

tabster's People

Contributors

kool-beard-94 avatar zir0-93 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tabster's Issues

awaawd

s predicate expressions into the SMT Exchange format descriptions using ANTLRv4 Tree Listeners which can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.

Getting Started

Import Tabster jar from /target folder

fse

ich can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.
Getting Started

Import Tabster jar from /target fol

test

ng Started

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.
Converting a Tabular Expression to The SMT Exchange Format

        final ArrayList<SMTFunction> expressionVars = new ArrayList<SMTFunction>();
        // The input: A string representing the tabular expression to be translated
        final String unparsedExpression = "{?x:((x > 5) || (x - 3) > 6) && false = y && 3.77 < z}";
        // Specify types of the vars used in the expression ...
        expressionVars.add(new SMTFunction("x", null, FunctionType.INT));
        expressionVars.add(new SMTFunction("y", null, FunctionType.BOOL));
        expressionVars.add(new SMTFunction("z", null, FunctionType.REAL));
        final String smtLibDescription = TabularExpressi

fwefwefwfwef

wr

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.
Converting a Tabular Expression

Test

From Zir0-93-tabster-a211e88/tabster/src/main/java/com/tabster/SMTFunction.java
test

Test

From Zir0-93-tabster-a211e88/README.md

Ensure the z3 SMT Solver is installed on your machine, see instructions here. To build the project, run a maven build using goals:"clean package assembly:single" - this should generate the ANTLR dependencies and generate the Tabster jar in the /target folder. Or download the latest stable version of the jar from the releases page.

adw

test

ng Started

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.
Converting a Tabular Expression to The SMT Exchange Format

        final ArrayList<SMTFunction> expressionVars = new ArrayList<SMTFunction>();
        // The input: A string representing the tabular expression to be translated
        final String unparsedExpression = "{?x:((x > 5) || (x - 3) > 6) && false = y && 3.77 < z}";
        // Specify types of the vars used in the expression ...
        expressionVars.add(new SMTFunction("x", null, FunctionType.INT));
        expressionVars.add(new SMTFunction("y", null, FunctionType.BOOL));
        expressionVars.add(new SMTFunction("z", null, FunctionType.REAL));
        final String smtLibDescription = TabularExpressi

fwefwefwfwef

x

From Zir0-93-tabster-a211e88/README.md

T Solver is installed on your machine, see instructions here

awaawd

s predicate expressions into the SMT Exchange format descriptions using ANTLRv4 Tree Listeners which can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.

Getting Started

Import Tabster jar from /target folder

fse

From tabster-master/README.md

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.

Converting a Tabular Expression to The SMT Exch

d

n your machine.

Getting Started

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.

Converting a Tabular Expression to The SMT Exchange Format

weqwe

s if CVC4 is installed on your machine.
Getting Started

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this s

e

Translates predicate expressions into the SMT Exchange format descriptions using ANTLRv4 Tree Listeners which can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.
Getting Started

awaawd

s predicate expressions into the SMT Exchange format descriptions using ANTLRv4 Tree Listeners which can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.

Getting Started

Import Tabster jar from /target folder

tew

Started

Import Tabster jar from /target folder. To build, run a maven build using goals:"clean compile assembly:single", this should produce the jar in the /target folder. Moving artifacts to maven soon.
Converting a Tabular 

An Acutal Code Snippet

/**
     * Service class for parsing/solving tabular expressions.
     *
     * @author Muntazir Fadhel
     */
    public final class TabsterService {

        /**
         * Generates a SMT-LIB v2 compliant script for checking the satisfiability
         * and for getting the model of a given tabular expression.
         *
         * @param tabularExpression
         *            String containing a tabular expression.
         * @param inputs 
         *         List containing SMTFunction objects representing variable inputs in the tabular expression.
         * @return String representing the SMT-LIB script input to a SMT solver.
         * @throws Exception
         *             When generating the script encounters an error.
         */
        public static String extractSMTLibSolverScript(final String tabularExpression, 
                ArrayList<smtfunction> expressionVars, boolean checkSat, boolean getModel) {
            String result = null;
            try {
            SMTLIBDescription description = new SMTLIBDescription(expressionVars, tabularExpression, checkSat, getModel);
            PredicateExpressionLexer lexer = new PredicateExpressionLexer(new ANTLRInputStream(tabularExpression));
            final CommonTokenStream tokens = new CommonTokenStream(lexer);
            PredicateExpressionParser parser = new PredicateExpressionParser(tokens);
            parser.setErrorHandler(new BailErrorStrategy());
            final ParseTree tree = parser.compilationUnit();
            final ParseTreeWalker walker = new ParseTreeWalker();
            PredicateExpressionListener listener = new PredicateExpressionListener(description);
            walker.walk((ParseTreeListener) listener, tree);
            result = listener.getParseResult().toString();
            } catch (ParseCancellationException e) {
                System.out.println("Error while parsing input expression:: " + tabularExpression);
                e.printStackTrace();
            }
            return result;
        }

Yeah Sam do something about it mkay.

awd

e expressions into the SMT Exchange format descriptions using ANTLRv4 Tree Listeners which can be used as input to an SMT solver. Tabster can also solve these expressions if CVC4 is installed on your machine.
Getting Started

A diagram

/**
     * Service class for parsing/solving tabular expressions.
     *
     * @author Muntazir Fadhel
     */
    public final class TabsterService {

        /**
         * Generates a SMT-LIB v2 compliant script for checking the satisfiability
         * and for getting the model of a given tabular expression.
         *
         * @param tabularExpression
         *            String containing a tabular expression.
         * @param inputs 
         *         List containing SMTFunction objects representing variable inputs in the tabular expression.
         * @return String representing the SMT-LIB script input to a SMT solver.
         * @throws Exception
         *             When generating the script encounters an error.
         */
        public static String extractSMTLibSolverScript(final String tabularExpression, 
                ArrayList<smtfunction> expressionVars, boolean checkSat, boolean getModel) {
            String result = null;
            try {
            SMTLIBDescription description = new SMTLIBDescription(expressionVars, tabularExpression, checkSat, getModel);
            PredicateExpressionLexer lexer = new PredicateExpressionLexer(new ANTLRInputStream(tabularExpression));
            final CommonTokenStream tokens = new CommonTokenStream(lexer);
            PredicateExpressionParser parser = new PredicateExpressionParser(tokens);
            parser.setErrorHandler(new BailErrorStrategy());
            final ParseTree tree = parser.compilationUnit();
            final ParseTreeWalker walker = new ParseTreeWalker();
            PredicateExpressionListener listener = new PredicateExpressionListener(description);
            walker.walk((ParseTreeListener) listener, tree);
            result = listener.getParseResult().toString();
            } catch (ParseCancellationException e) {
                System.out.println("Error while parsing input expression:: " + tabularExpression);
                e.printStackTrace();
            }
            return result;
        }

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.