Class Z3Solver

  • All Implemented Interfaces:
    Solver

    public final class Z3Solver
    extends SolverBase
    The Z3TextSolver class implements logic of a constraint solver that uses the Z3 tool by Microsoft Research. The constraint is translated to STM-LIB code that is then saved to a file and processed to the tool.
    • Constructor Detail

      • Z3Solver

        public Z3Solver()
    • Method Detail

      • getHeader

        protected java.util.List<java.lang.String> getHeader()
        Returns the list of solver-specific header lines.
        Returns:
        The list of solver-specific header lines.
      • invokeSolver

        public java.io.Reader invokeSolver​(java.lang.String path)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • solve

        public SolverResult solve​(Constraint constraint)
        Description copied from interface: Solver
        Solves the specified constraint.
        Parameters:
        constraint - A constraint object.
        Returns:
        Result of solving the constraint.