Skip to content

Unexpected exception thrown #623

Description

@amenahh
let a = Smtml.Expr.symbol (Smtml.Symbol.make Smtml.Ty.Ty_bool "a")

let expr = Smtml.Expr.Bool.implies a Smtml.Expr.Bool.true_

module Altergo = Smtml.Solver.Batch (Smtml.Altergo_mappings)
let solver = Altergo.create ()

let () =
  match Altergo.check solver [ expr ]  with
  | `Sat -> Format.printf "SAT@\n"
  | `Unsat -> Format.printf "UNSAT@\n"
  | `Unknown -> Format.printf "UNKNOWN@\n"

For the following example an exception is thrown.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions